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

htmlbars

Package Overview
Dependencies
Maintainers
5
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlbars - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

10

dist/cjs/htmlbars-compiler-tests/template-compiler-test.js

@@ -60,2 +60,12 @@ "use strict";

equal(countNamespaceChanges('<div><svg><title><h1>foobar</h1></title></svg></div><svg></svg>'), 3);
});
test('it adds the provided revision to the template', function () {
var ast = preprocess('{{foo}}');
var compiler = new TemplateCompiler({
revision: 'FOO.BAR'
});
var program = compiler.compile(ast);
ok(program.indexOf('revision: "FOO.BAR"') > -1);
});

2

dist/cjs/htmlbars-compiler/template-compiler.js

@@ -12,2 +12,3 @@ "use strict";

this.options = options || {};
this.revision = this.options.revision || "HTMLBars@VERSION_STRING_PLACEHOLDER";
this.fragmentOpcodeCompiler = new FragmentOpcodeCompiler();

@@ -98,2 +99,3 @@ this.fragmentCompiler = new FragmentJavaScriptCompiler();

indent+' isHTMLBars: true,\n' +
indent+' revision: "' + this.revision + '",\n' +
indent+' blockParams: ' + blockParams.length + ',\n' +

@@ -100,0 +102,0 @@ indent+' cachedFragment: null,\n' +

2

dist/cjs/htmlbars.js

@@ -7,3 +7,3 @@ "use strict";

* See https://raw.githubusercontent.com/tildeio/htmlbars/master/LICENSE
* @version 0.11.0
* @version v0.11.1
*/

@@ -10,0 +10,0 @@

@@ -11,2 +11,3 @@ import FragmentOpcodeCompiler from './fragment-opcode-compiler';

this.options = options || {};
this.revision = this.options.revision || "HTMLBars@v0.11.1";
this.fragmentOpcodeCompiler = new FragmentOpcodeCompiler();

@@ -97,2 +98,3 @@ this.fragmentCompiler = new FragmentJavaScriptCompiler();

indent+' isHTMLBars: true,\n' +
indent+' revision: "' + this.revision + '",\n' +
indent+' blockParams: ' + blockParams.length + ',\n' +

@@ -99,0 +101,0 @@ indent+' cachedFragment: null,\n' +

@@ -6,3 +6,3 @@ /*

* See https://raw.githubusercontent.com/tildeio/htmlbars/master/LICENSE
* @version 0.11.0
* @version v0.11.1
*/

@@ -9,0 +9,0 @@

var packagesConfig = {
"version": "0.11.0",
"revision": "0b46a9ff28ace55076f070a66db97b3310916009",
"version": "0.11.1",
"revision": "933f93953cc5730e8ae1697558484cd36574a487",
"vendored": {},

@@ -5,0 +5,0 @@ "dependencies": {

{
"name": "htmlbars",
"version": "0.11.0",
"version": "0.11.1",
"description": "HTMLBars compiles Handlebars templates into document fragments rather than string buffers",

@@ -41,3 +41,3 @@ "main": "dist/cjs/htmlbars.js",

"ember-cli-sauce": "0.0.7",
"git-repo-version": "0.0.2",
"git-repo-version": "^0.1.2",
"handlebars": "mmun/handlebars.js#new-ast-3238645f",

@@ -44,0 +44,0 @@ "morph-range": "^0.1.2",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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