Comparing version 1.13.0 to 1.13.2
15
index.js
@@ -1646,14 +1646,13 @@ const EventEmitter = require('events') | ||
} else { | ||
let eventType | ||
const path = this._encoding === 'buffer' | ||
? Buffer.from(filename) | ||
: Buffer.from(filename).toString(this._encoding) | ||
if (events & binding.UV_RENAME) { | ||
eventType = 'rename' | ||
} else if (events & binding.UV_CHANGE) { | ||
eventType = 'change' | ||
this.emit('change', 'rename', path) | ||
} | ||
this.emit('change', eventType, this._encoding === 'buffer' | ||
? Buffer.from(filename) | ||
: Buffer.from(filename).toString(this._encoding) | ||
) | ||
if (events & binding.UV_CHANGE) { | ||
this.emit('change', 'change', path) | ||
} | ||
} | ||
@@ -1660,0 +1659,0 @@ } |
{ | ||
"name": "bare-fs", | ||
"version": "1.13.0", | ||
"version": "1.13.2", | ||
"description": "Native file system for Javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
117126
1447