@node-minify/core
Advanced tools
Comparing version 5.3.0 to 6.0.0
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _glob = _interopRequireDefault(require("glob")); | ||
var _globby = _interopRequireDefault(require("globby")); | ||
@@ -133,8 +133,18 @@ var _utils = require("@node-minify/utils"); | ||
let output = {}; | ||
let isWildcardsPresent = false; | ||
output.input = input; // Transform all wildcards to path file | ||
input.forEach(item => { | ||
output.input = output.input.concat(getFilesFromWildcards(item, publicFolder)); | ||
}); // Remove all wildcards from array | ||
const inputWithPublicFolder = input.map(item => { | ||
if (item.indexOf('*') > -1) { | ||
isWildcardsPresent = true; | ||
} | ||
return (publicFolder || '') + item; | ||
}); | ||
if (isWildcardsPresent) { | ||
output.input = _globby.default.sync(inputWithPublicFolder); | ||
} // Remove all wildcards from array | ||
for (let i = 0; i < output.input.length; i++) { | ||
@@ -162,3 +172,3 @@ if (output.input[i].indexOf('*') > -1) { | ||
if (input.indexOf('*') > -1) { | ||
output = _glob.default.sync((publicFolder || '') + input, null); | ||
output = _globby.default.sync((publicFolder || '') + input); | ||
} | ||
@@ -165,0 +175,0 @@ |
{ | ||
"name": "@node-minify/core", | ||
"version": "5.3.0", | ||
"version": "6.0.0", | ||
"description": "core of @node-minify", | ||
@@ -15,3 +15,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": ">=10.0.0" | ||
}, | ||
@@ -36,7 +36,7 @@ "directories": { | ||
"dependencies": { | ||
"@node-minify/utils": "^5.3.0", | ||
"glob": "7.1.6", | ||
"mkdirp": "0.5.1" | ||
"@node-minify/utils": "^6.0.0", | ||
"globby": "11.0.1", | ||
"mkdirp": "1.0.4" | ||
}, | ||
"gitHead": "82898314fcff85e28501e33767ae095ca2d28cd1" | ||
"gitHead": "5b17d0f80d0db5c18c64fab4dd0c70f035d6079d" | ||
} |
13106
358
+ Addedglobby@11.0.1
+ Added@node-minify/utils@6.4.0(transitive)
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Addedarray-union@2.1.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addedfast-glob@3.3.3(transitive)
+ Addedfastq@1.18.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedglobby@11.0.1(transitive)
+ Addedgzip-size@6.0.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedslash@3.0.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
- Removedglob@7.1.6
- Removed@node-minify/utils@5.3.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.1.6(transitive)
- Removedgzip-size@5.1.1(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@0.0.8(transitive)
- Removedmkdirp@0.5.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpify@4.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@node-minify/utils@^6.0.0
Updatedmkdirp@1.0.4