Socket
Socket
Sign inDemoInstall

fsevents

Package Overview
Dependencies
Maintainers
5
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fsevents - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

fsevents.d.ts

6

fsevents.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc