Comparing version 2.0.5 to 2.0.7
@@ -194,2 +194,3 @@ var esprima = require('esprima'); | ||
}, | ||
compact: true, | ||
newLine: '' | ||
@@ -204,3 +205,3 @@ } | ||
if (isOptimizer) { | ||
content = content.replace(/[;,][\s\n\r]*(?=[;,])/gi, ""); | ||
content = content.replace(/([;,][\s\n\r]*(?=[;,]))/gi, "").replace(/(,[\s\n\r]*(?=(var)))/gi, ";"); | ||
} else { | ||
@@ -421,4 +422,5 @@ content = content.replace(/([\s\n\r]+);/gi, ""); | ||
regExp = new RegExp('@?\\b' + word + '\\b\\s*\\(\\s*[\'\"]{1}([^\'\"]+)[\'\"]{1}\\s*\\);*', 'gi'); | ||
regExp = new RegExp('@?\\b' + word + '\\b\\s*[\'\"]{1}([^\'\"]+)[\'\"]{1}\\s*;*', 'gi'); | ||
content = content.replace(regExp, function () { | ||
@@ -425,0 +427,0 @@ var args = [].slice.call(arguments, 0), |
{ | ||
"name": "alpaca-sm", | ||
"version": "2.0.5", | ||
"version": "2.0.7", | ||
"description": "分析Html文件依赖的js文件和css文件", | ||
@@ -27,5 +27,4 @@ "main": "index.js", | ||
"colors": "^1.1.2", | ||
"commander": "*", | ||
"escodegen": "*", | ||
"esprima": "*", | ||
"escodegen": "^1.8.0", | ||
"esprima": "^2.7.2", | ||
"estraverse": "4.1.0", | ||
@@ -32,0 +31,0 @@ "iconv-lite": "^0.4.13" |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 3 instances in 1 package
50809
5
1305
1
+ Addeddeep-is@0.1.4(transitive)
+ Addedescodegen@1.14.3(transitive)
+ Addedesprima@2.7.3(transitive)
+ Addedestraverse@4.3.0(transitive)
+ Addedfast-levenshtein@2.0.6(transitive)
+ Addedlevn@0.3.0(transitive)
+ Addedoptionator@0.8.3(transitive)
+ Addedprelude-ls@1.1.2(transitive)
+ Addedtype-check@0.3.2(transitive)
+ Addedword-wrap@1.2.5(transitive)
- Removedcommander@*
- Removedcommander@12.1.0(transitive)
- Removedescodegen@2.1.0(transitive)
- Removedestraverse@5.3.0(transitive)
Updatedescodegen@^1.8.0
Updatedesprima@^2.7.2