Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #27 from oganexon/develop
Browse files Browse the repository at this point in the history
3.0.3
  • Loading branch information
SteelAlloy authored Aug 30, 2019
2 parents e0fad55 + 7201c9b commit 32d4d75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.0.3] - 2019-08-30

### Fixed
- Default standard when none is provided. (Tests are now a priority)

## [3.0.2] - 2019-08-30

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "secure-rm",
"version": "3.0.2",
"version": "3.0.3",
"description": "Completely erases files by making recovery impossible.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/secure-rm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function unlink(path: string, options?: Options | Callback, callback?: Ca
options = { standard: 'secure' }
}
// Define standard if none is provided
if (options === undefined) options = { standard: 'secure' }
if ((options as Options).standard === undefined) (options as Options).standard = 'secure'

if (callback) unlinkCallback(path, options as ParsedOptions, (err: NodeJS.ErrnoException | null, path: string) => callback!(err, path))
Expand Down

0 comments on commit 32d4d75

Please sign in to comment.