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 #26 from oganexon/develop
Browse files Browse the repository at this point in the history
3.0.2
  • Loading branch information
SteelAlloy authored Aug 30, 2019
2 parents b0e4ee6 + a016594 commit e0fad55
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 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.2] - 2019-08-30

### Fixed
- Default standard when none is provided.

## [3.0.1] - 2019-08-30

### Security
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.1",
"version": "3.0.2",
"description": "Completely erases files by making recovery impossible.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/secure-rm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function unlink(path: string, options?: Options | Callback, callback?: Ca
options = { standard: 'secure' }
}
// Define standard if none is provided
if (typeof (options as Options).standard === undefined) (options as 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))
else return unlinkPromise(path, options as ParsedOptions)
Expand Down

0 comments on commit e0fad55

Please sign in to comment.