can-compile
Advanced tools
Comparing version 0.3.2 to 0.4.0
@@ -12,2 +12,3 @@ 'use strict'; | ||
'http://canjs.com/release/' + version + '/can.jquery.js', | ||
'http://canjs.com/release/' + version + '/can.ejs.js', | ||
'http://canjs.com/release/' + version + '/can.view.mustache.js' ], | ||
@@ -14,0 +15,0 @@ function (error, win) { |
{ | ||
"name": "can-compile", | ||
"description": "Compile CanJS Mustache and EJS views for lightning fast production apps", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"homepage": "http://daffl.github.com/can-compile", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -47,5 +47,3 @@ # can-compile | ||
out: 'production/views.production.js', | ||
options: { | ||
wrapper: '!function() { {{{content}}} }();' | ||
} | ||
wrapper: '!function() { {{{content}}} }();' | ||
}, | ||
@@ -55,5 +53,3 @@ legacy: { | ||
out: 'production/views.production.js', | ||
options: { | ||
version: '1.1.2' | ||
} | ||
version: '1.1.2' | ||
} | ||
@@ -137,5 +133,3 @@ }, | ||
out: 'production/views.production.js', | ||
options: { | ||
wrapper: 'define(["can/view/mustache"], function(can) { {{{content}}} });' | ||
} | ||
wrapper: 'define(["can/view/mustache"], function(can) { {{{content}}} });' | ||
} | ||
@@ -157,2 +151,6 @@ } | ||
__0.4.0:__ | ||
- Verify CanJS 2.0.0 compatbility, load can.EJS which isn't in the core anymore | ||
__0.3.2:__ | ||
@@ -159,0 +157,0 @@ |
@@ -33,6 +33,12 @@ /*global describe, it */ | ||
"___v1ew.push(\"</h2>\");; return ___v1ew.join('')}} })" | ||
}, | ||
'2.0.0': { | ||
ejs: "can.EJS(function(_CONTEXT,_VIEW) { with(_VIEW) { with (_CONTEXT) {var ___v1ew = [];___v1ew.push(\n\"<h2>\");___v1ew.push(\ncan.view.txt(\n1,\n'h2',\n0,\nthis,\nfunction(){ return message }));\n___v1ew.push(\n\"</h2>\");; return ___v1ew.join('')}} })", | ||
mustache: "can.Mustache(function(scope,options) { var ___v1ew = [];___v1ew.push(\n\"<h2>\");___v1ew.push(\ncan.view.txt(\n1,\n'h2',\n0,\nthis,\nfunction(){ return can.Mustache.txt(\n{scope:scope,options:options},\nnull,{get:\"message\"})}));\n___v1ew.push(\n\"</h2>\");; return ___v1ew.join('') })" | ||
} | ||
}; | ||
expected['latest'] = expected['1.1.5']; | ||
expected['latest'] = expected['2.0.0']; | ||
@@ -39,0 +45,0 @@ var normalizer = function (filename) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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 1 instance 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
2
1
277221
37
5124
180