Comparing version 2.0.0 to 2.0.1
@@ -49,2 +49,4 @@ const { version } = require('./package.json'); | ||
function gatherFileNames (dir, options = {}) { | ||
checkOptions(options); | ||
const { extension = null, stripDirPath = false } = options; | ||
@@ -56,3 +58,3 @@ | ||
function getFileContent (filePathList, objMode = true, stripFileExtensions = true, baseDir = null) { | ||
function getFileContents (filePathList, objMode = true, stripFileExtensions = true, baseDir = null) { | ||
return filePathList.reduce((output, filePath) => { | ||
@@ -95,9 +97,13 @@ const fullPath = path.resolve(baseDir || '', filePath); | ||
gatherFileNames, | ||
getFileContent, | ||
getFileContents, | ||
getFileContent: (...args) => { | ||
zaq.warn('colleqtor.getFileContent is deprecated and will be removed. Please use .getFileContents (plural) instead.'); | ||
return getFileContents(...args); | ||
}, | ||
collect, | ||
requireAll, | ||
require: (...args) => { | ||
zaq.warn('colleqtor.require() is deprecated and will be removed in future versions of colleqtor. Please use colleqtor.requireAll() instead.') | ||
zaq.warn('colleqtor.require() is deprecated and will be removed in future versions of colleqtor. Please use .requireAll() instead.') | ||
return requireAll(...args); | ||
} | ||
}; |
{ | ||
"name": "colleqtor", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Seize the directory.", | ||
"main": "colleqtor.js", | ||
"scripts": { | ||
"build": "uglifyjs colleqtor.js -o colleqtor.min.js" | ||
}, | ||
"scripts": {}, | ||
"repository": { | ||
@@ -10,0 +8,0 @@ "type": "git", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
108
0
2
12403
15