includejs
Advanced tools
Comparing version 0.5.7 to 0.5.8
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"bin": { | ||
@@ -12,0 +12,0 @@ "includejs": "includejs" |
@@ -16,2 +16,4 @@ /** | ||
'shell', | ||
'project-import', | ||
'project-reference', | ||
'custom'], | ||
@@ -36,7 +38,9 @@ program = require('commander'), | ||
}]; | ||
parseOverrides(program, cfg[0]); | ||
parseFile(cfg[0]); | ||
parseType(cfg[0]); | ||
cfg.state = 4; | ||
global.config = cfg; | ||
@@ -48,3 +52,3 @@ return; | ||
if (file.exists() == false) { | ||
@@ -54,3 +58,3 @@ console.error('File doesnt exists (404)', file.uri.toLocalFile()); | ||
} | ||
switch(file.uri.extension){ | ||
@@ -74,9 +78,9 @@ case 'config': | ||
action: 'build' | ||
} | ||
} | ||
break; | ||
} | ||
config = global.config; | ||
if (config instanceof Array === false) { | ||
@@ -129,4 +133,4 @@ config = [config]; | ||
key, value, x; | ||
for (; i < length; i++) { | ||
@@ -140,15 +144,15 @@ x = array[i]; | ||
var c = value[0]; | ||
if (c == '"' || c == "'"){ | ||
value = value.substring(1, value.length - 1); | ||
} | ||
config[key] = value; | ||
continue; | ||
} | ||
config[key] = true; | ||
config[key] = true; | ||
continue; | ||
} | ||
if (actionFound){ | ||
@@ -159,8 +163,8 @@ var c = x[0]; | ||
} | ||
(config.args || (config.args = [])).push(x); | ||
continue; | ||
} | ||
if (x == action){ | ||
@@ -174,2 +178,2 @@ actionFound = true; | ||
include.exports = (global.config = config); | ||
}); | ||
}); |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
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
506386
102
8569
3
15
8