Comparing version 2.1.1 to 2.1.2
@@ -27,4 +27,6 @@ /* | ||
return () => { | ||
const result = instance ? Promise.resolve(instance).then(Native.stop) : null; | ||
instance = null; | ||
const result = instance | ||
? Promise.resolve(instance).then(Native.stop) | ||
: Promise.resolve(undefined); | ||
instance = undefined; | ||
return result; | ||
@@ -31,0 +33,0 @@ }; |
{ | ||
"name": "fsevents", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Native Access to MacOS FSEvents", | ||
"main": "fsevents.js", | ||
"types": "fsevents.d.ts", | ||
"os": [ | ||
"darwin" | ||
], | ||
"files": ["fsevents.js", "fsevents.node"], | ||
"files": [ | ||
"fsevents.d.ts", | ||
"fsevents.js", | ||
"fsevents.node" | ||
], | ||
"engines": { | ||
@@ -11,0 +16,0 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" |
@@ -33,3 +33,3 @@ # fsevents [![NPM](https://nodei.co/npm/fsevents.png)](https://nodei.co/npm/fsevents/) | ||
###### `fsevents.watch(dirname: string, (path: string, flags: number, id: string) => void): Function` | ||
###### `fsevents.watch(dirname: string, (path: string, flags: number, id: string) => void): () => Promise<undefined>` | ||
@@ -39,5 +39,5 @@ * `path: string` - the item in the filesystem that have been changed | ||
* `id: string` - an unique-id identifying this specific event | ||
Returns closer callback. | ||
Returns closer callback which when called returns a Promise resolving when the watcher process has been shut down. | ||
###### `fsevents.getInfo(path: string, flags: number, id: string): FsEventInfo` | ||
@@ -52,3 +52,3 @@ | ||
/** | ||
* @typedef {'created'|'modified'|'deleted'|'moved'|'root-changed'|'unknown'} FsEventsEvent | ||
* @typedef {'created'|'modified'|'deleted'|'moved'|'root-changed'|'cloned'|'unknown'} FsEventsEvent | ||
* @typedef {'file'|'directory'|'symlink'} FsEventsType | ||
@@ -70,2 +70,8 @@ */ | ||
## Engine compatibility | ||
- v2 supports node 8.16+ | ||
- v1.2.8 supports node 6+ | ||
- v1.2.7 supports node 4+ | ||
## License | ||
@@ -72,0 +78,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44807
6
124
78