Socket
Socket
Sign inDemoInstall

htmlbars

Package Overview
Dependencies
Maintainers
2
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.1.3 to 0.1.4

12

dist/cjs/htmlbars-compiler-tests/html_compiler_test.js

@@ -849,2 +849,7 @@ "use strict";

test('Components - Text-only dashed attributes work', function () {
var object = { foo: 'qux' };
compilesTo('<x-bar aria-label="foo" id="test">{{foo}}</x-bar>','<x-bar aria-label="foo" id="test">qux</x-bar>', object);
});
test('Repaired text nodes are ensured in the right place', function () {

@@ -857,2 +862,9 @@ var object = { a: "A", b: "B", c: "C", d: "D" };

test("Simple elements can have dashed attributes", function() {
var template = compile("<div aria-label='foo'>content</div>");
var fragment = template({}, env);
equalTokens(fragment, '<div aria-label="foo">content</div>');
});
if (document.createElement('div').namespaceURI) {

@@ -859,0 +871,0 @@

4

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

@@ -17,4 +17,4 @@ "use strict";

keyName = stack.pop();
hashPairs.unshift(keyName + ':' + stack.pop());
hashTypes.unshift(keyName + ':' + stack.pop());
hashPairs.unshift('"' + keyName + '":' + stack.pop());
hashTypes.unshift('"' + keyName + '":' + stack.pop());
}

@@ -21,0 +21,0 @@

@@ -15,4 +15,4 @@ import { array, hash } from "./quoting";

keyName = stack.pop();
hashPairs.unshift(keyName + ':' + stack.pop());
hashTypes.unshift(keyName + ':' + stack.pop());
hashPairs.unshift('"' + keyName + '":' + stack.pop());
hashTypes.unshift('"' + keyName + '":' + stack.pop());
}

@@ -19,0 +19,0 @@

var packagesConfig = {
"version": "0.1.3",
"revision": "0b6042a5328fc33246d02ea66bfbb6f151e70d02",
"revision": "76c3b3ca9a9f824339b79384119cc84a0dc0f2b7",
"vendored": {},

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

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

@@ -5,0 +5,0 @@ "main": "dist/cjs/htmlbars.js",

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