Comparing version 1.1.1 to 1.1.2
@@ -20,2 +20,4 @@ const nodeVersionMatches = require('node-version-matches') | ||
/** | ||
* A synchronous method to rename files in bulk. | ||
* | ||
* @param {object} options - The renamer options | ||
@@ -22,0 +24,0 @@ * @param {string[]} [options.files] - One or more glob patterns or filenames to process. |
@@ -67,3 +67,3 @@ /** | ||
} | ||
if (!(t.isFunction(createPlugin) && !t.isClass(createPlugin))) { | ||
if (!(typeof createPlugin === 'function' && !t.isClass(createPlugin))) { | ||
throw new Error('Invalid plugin: plugin module must export a function') | ||
@@ -70,0 +70,0 @@ } |
{ | ||
"name": "renamer", | ||
"description": "Rename files in bulk", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
@@ -32,11 +32,11 @@ "bin": "bin/cli.js", | ||
"dependencies": { | ||
"array-back": "^3.0.1", | ||
"chalk": "^2.4.1", | ||
"command-line-args": "^5.0.2", | ||
"command-line-plugin": "^0.1.2", | ||
"array-back": "^3.1.0", | ||
"chalk": "^2.4.2", | ||
"command-line-args": "^5.1.1", | ||
"command-line-plugin": "^0.2.0", | ||
"command-line-usage": "^5.0.5", | ||
"fast-diff": "^1.2.0", | ||
"glob": "^7.1.3", | ||
"glob": "^7.1.4", | ||
"global-modules": "^2.0.0", | ||
"load-module": "^1.0.0", | ||
"load-module": "^2.0.1", | ||
"node-version-matches": "^1.0.1", | ||
@@ -46,13 +46,13 @@ "printj": "^1.2.1", | ||
"reduce-unique": "^2.0.1", | ||
"stream-read-all": "^1.0.1", | ||
"typical": "^3.0.0" | ||
"stream-read-all": "^2.0.0", | ||
"typical": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "^3.0.2", | ||
"jsdoc-to-markdown": "^4.0.1", | ||
"coveralls": "^3.0.3", | ||
"jsdoc-to-markdown": "^5.0.0", | ||
"mkdirp2": "^1.0.4", | ||
"nyc": "^13.1.0", | ||
"rimraf": "^2.6.2", | ||
"test-runner": "^0.5.1" | ||
"nyc": "^14.1.1", | ||
"rimraf": "^2.6.3", | ||
"test-runner": "^0.6.0" | ||
} | ||
} |
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
25056
497
+ Addedarray-back@4.0.2(transitive)
+ Addedcommand-line-plugin@0.2.0(transitive)
+ Addedload-module@2.0.2(transitive)
+ Addedstream-read-all@2.0.0(transitive)
+ Addedtypical@5.2.0(transitive)
- Removedcommand-line-plugin@0.1.2(transitive)
- Removedload-module@1.0.0(transitive)
- Removedstream-read-all@1.0.1(transitive)
- Removedtypical@3.0.2(transitive)
Updatedarray-back@^3.1.0
Updatedchalk@^2.4.2
Updatedcommand-line-args@^5.1.1
Updatedcommand-line-plugin@^0.2.0
Updatedglob@^7.1.4
Updatedload-module@^2.0.1
Updatedstream-read-all@^2.0.0
Updatedtypical@^5.0.0