Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dac

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dac - npm Package Compare versions

Comparing version 0.7.5 to 0.7.6

15

engines/cmd.js
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc