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.5.8 to 0.5.9

24

engines/tpl.js

@@ -19,5 +19,6 @@ var helper = require("../lib/util");

var compiled = juicer(tpl)._render.toString().replace(/^function anonymous[^{]*?{\n?([\s\S]*?)\n?}$/img, function ($, fn_body) {
fn_body = fn_body.replace(/(['"])use strict\1;?\n?/g, '');
fn_body = fn_body.replace(/\s{0,}\'\s{0,}/g, "'");
fn_body = fn_body.replace(/>\s{1,}</g, "><");
fn_body = fn_body
.replace(/(['"])use strict\1;?\n?/g, '')
.replace(/\s{0,}\';/g, "';").replace(/=\'\s{0,}/g, "='")
.replace(/>\s{1,}</g, "><");

@@ -58,13 +59,16 @@ var escapehtml = [], flag = false;

if (wrapper) {
result = wrapper + '(';
if (!anonymous) {
result += packageName + ',';
}
if (wrapper == "define") {
result = "define(function(require,exports,module){module.exports=" + compiled + "});";
result += "function(require,exports,module){module.exports=";
}
else {
if (anonymous) {
result = wrapper + "(function(){return " + compiled + "});";
}
else {
result = wrapper + '(' + packageName + ",function(){return " + compiled + "});";
}
result += "function(){return ";
}
result += compiled + "});";
}

@@ -71,0 +75,0 @@ else {

{
"name": "dac",
"version": "0.5.8",
"version": "0.5.9",
"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