Comparing version 1.0.15 to 1.0.16
@@ -8,3 +8,4 @@ 'use strict'; | ||
var path = require('path'); | ||
var _ = require('lodash'); | ||
var _isInteger = require('lodash.isinteger'); | ||
var _isUndefined = require('lodash.isundefined'); | ||
@@ -50,7 +51,7 @@ var _private = {}; | ||
if (_.isInteger(debounceMS)) { | ||
if (_isInteger(debounceMS)) { | ||
if (debounceMS < 1) { | ||
throw new Error('Minimum debounce is 1ms.'); | ||
} | ||
} else if (_.isUndefined(debounceMS)) { | ||
} else if (_isUndefined(debounceMS)) { | ||
debounceMS = 500; | ||
@@ -61,3 +62,3 @@ } else { | ||
if (_.isUndefined(errorCallback)) { | ||
if (_isUndefined(errorCallback)) { | ||
errorCallback = function errorCallback(nsfwError) { | ||
@@ -64,0 +65,0 @@ throw nsfwError; |
{ | ||
"name": "nsfw", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "A simple file watcher for Node", | ||
@@ -32,3 +32,4 @@ "main": "lib/src/index.js", | ||
"fs-extra": "^0.26.5", | ||
"lodash": "^4.6.1", | ||
"lodash.isinteger": "^4.0.4", | ||
"lodash.isundefined": "^3.0.1", | ||
"nan": "^2.0.0", | ||
@@ -35,0 +36,0 @@ "promisify-node": "^0.3.0" |
Sorry, the diff of this file is not supported yet
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
197511
53
633
116
5
+ Addedlodash.isinteger@^4.0.4
+ Addedlodash.isundefined@^3.0.1
+ Addedlodash.isinteger@4.0.4(transitive)
+ Addedlodash.isundefined@3.0.1(transitive)
- Removedlodash@^4.6.1
- Removedlodash@4.17.21(transitive)