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

Commit e0fad55

Browse files
authored
Merge pull request #26 from oganexon/develop
3.0.2
2 parents b0e4ee6 + a016594 commit e0fad55

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
## [Unreleased]
1616

17+
## [3.0.2] - 2019-08-30
18+
19+
### Fixed
20+
- Default standard when none is provided.
21+
1722
## [3.0.1] - 2019-08-30
1823

1924
### Security

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "secure-rm",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "Completely erases files by making recovery impossible.",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/secure-rm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function unlink(path: string, options?: Options | Callback, callback?: Ca
3131
options = { standard: 'secure' }
3232
}
3333
// Define standard if none is provided
34-
if (typeof (options as Options).standard === undefined) (options as Options).standard = 'secure'
34+
if ((options as Options).standard === undefined) (options as Options).standard = 'secure'
3535

3636
if (callback) unlinkCallback(path, options as ParsedOptions, (err: NodeJS.ErrnoException | null, path: string) => callback!(err, path))
3737
else return unlinkPromise(path, options as ParsedOptions)

0 commit comments

Comments
 (0)