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

can-compile

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-compile - npm Package Compare versions

Comparing version 0.3.2 to 0.4.0

1

lib/compile.js

@@ -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) {

2

package.json
{
"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

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