jscrambler
Advanced tools
Comparing version 5.5.34 to 5.5.35
@@ -12,6 +12,2 @@ #!/usr/bin/env node | ||
var _glob = require('glob'); | ||
var _glob2 = _interopRequireDefault(_glob); | ||
var _path = require('path'); | ||
@@ -35,2 +31,4 @@ | ||
var _utils = require('../utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -176,3 +174,5 @@ | ||
if (globSrc && globSrc.length) { | ||
filesSrc = []; | ||
// this will be translated to real files in the updateApplicationSources method | ||
filesSrc = globSrc; | ||
var nSources = 0; | ||
// Iterate `globSrc` to build a list of source files into `filesSrc` | ||
@@ -189,5 +189,3 @@ for (var i = 0, l = globSrc.length; i < l; i += 1) { | ||
var tmpGlob = _glob2.default.sync(globSrc[i], { | ||
dot: true | ||
}); | ||
var tmpGlob = (0, _utils.getMatchedFiles)(globSrc[i]); | ||
@@ -209,5 +207,5 @@ if (config.werror && tmpGlob.length === 0) { | ||
} | ||
filesSrc = filesSrc.concat(tmpGlob); | ||
nSources += tmpGlob.length; | ||
} | ||
if (filesSrc.length === 0) { | ||
if (nSources === 0) { | ||
console.error('No files matched.'); | ||
@@ -214,0 +212,0 @@ process.exit(1); |
{ | ||
"name": "jscrambler", | ||
"description": "Jscrambler API client.", | ||
"version": "5.5.34", | ||
"version": "5.5.35", | ||
"homepage": "https://github.com/jscrambler/jscrambler", | ||
@@ -6,0 +6,0 @@ "author": { |
Sorry, the diff of this file is too big to display
169370
17
3544
11