Comparing version 0.7.5 to 0.7.6
var helper = require("../lib/util"); | ||
module.exports = function (absPath, reqOpt, param, cb) { | ||
var anonymous = param.anonymous; | ||
var packageName = '"' + helper.filteredUrl(reqOpt.path, param.filter) + '",'; | ||
var content = helper.getUnicode(absPath); | ||
var js = "define(" + (anonymous ? '' : packageName) + "function(require,exports,module){\n" + | ||
helper.getUnicode(absPath) + | ||
"\n});"; | ||
cb(null, js, absPath, "application/javascript"); | ||
var regxStr = "define\\(" + (param.ignore ? ('|' + param.ignore) : ''); | ||
if (new RegExp(regxStr).test(content) || !param.enable) { | ||
cb({msg: "PASS Engine"}); | ||
} | ||
else { | ||
cb(null, "define(function(require,exports,module){\n" + content + "\n});", absPath, "application/javascript"); | ||
} | ||
}; |
{ | ||
"name": "dac", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"description": "Dynamic Assets Compiler", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
11851
351