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

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.3.0 to 0.4.0

dist/amd/htmlbars-syntax.amd.js

111

dist/amd/htmlbars-runtime.amd.js

@@ -15,11 +15,3 @@ define("htmlbars-runtime",

"use strict";
function concat(params) {
var value = "";
for (var i = 0, l = params.length; i < l; i++) {
value += params[i];
}
return value;
}
__exports__.concat = concat;function partial(params, hash, options, env) {
function partial(params, hash, options, env) {
var template = env.partials[params[0]];

@@ -30,3 +22,2 @@ return template.render(this, env, options.morph.contextualElement);

__exports__.partial = partial;__exports__["default"] = {
concat: concat,
partial: partial

@@ -36,7 +27,5 @@ };

define("htmlbars-runtime/hooks",
["./helpers","exports"],
function(__dependency1__, __exports__) {
["exports"],
function(__exports__) {
"use strict";
var concat = __dependency1__.concat;
function content(morph, path, context, params, hash, options, env) {

@@ -59,16 +48,8 @@ var value, helper = lookupHelper(context, path, env);

__exports__.element = element;function attribute(domElement, attributeName, quoted, context, parts, options) {
var attrValue;
if (quoted) {
attrValue = concat.call(context, parts, null, options);
__exports__.element = element;function attribute(domElement, name, quoted, context, value) {
if (value === null) {
domElement.removeAttribute(name);
} else {
attrValue = parts[0];
domElement.setAttribute(name, value);
}
if (attrValue === null) {
domElement.removeAttribute(attributeName);
} else {
domElement.setAttribute(attributeName, attrValue);
}
}

@@ -116,3 +97,11 @@

__exports__.component = component;function componentFallback(morph, tagName, context, hash, options, env) {
__exports__.component = component;function concat(params) {
var value = "";
for (var i = 0, l = params.length; i < l; i++) {
value += params[i];
}
return value;
}
__exports__.concat = concat;function componentFallback(morph, tagName, context, hash, options, env) {
var element = env.dom.createElement(tagName);

@@ -136,2 +125,3 @@ for (var name in hash) {

subexpr: subexpr,
concat: concat,
get: get,

@@ -141,6 +131,33 @@ set: set

});
define("htmlbars-runtime/utils",
define("htmlbars-util",
["./htmlbars-util/safe-string","exports"],
function(__dependency1__, __exports__) {
"use strict";
var SafeString = __dependency1__["default"];
__exports__.SafeString = SafeString;
});
define("htmlbars-util/array-utils",
["exports"],
function(__exports__) {
"use strict";
function forEach(array, callback, binding) {
var i;
if (binding === undefined) {
for (i = 0; i < array.length; i++) {
callback(array[i], i, array);
}
} else {
for (i = 0; i < array.length; i++) {
callback.call(binding, array[i], i, array);
}
}
}
__exports__.forEach = forEach;
});
define("htmlbars-util/object-utils",
["exports"],
function(__exports__) {
"use strict";
function merge(options, defaults) {

@@ -156,9 +173,37 @@ for (var prop in defaults) {

});
define("htmlbars-util",
["./htmlbars-util/safe-string","exports"],
function(__dependency1__, __exports__) {
define("htmlbars-util/quoting",
["exports"],
function(__exports__) {
"use strict";
var SafeString = __dependency1__["default"];
function escapeString(str) {
return str.replace(/"/g, '\\"').replace(/\n/g, "\\n");
}
__exports__.SafeString = SafeString;
__exports__.escapeString = escapeString;
function string(str) {
return '"' + escapeString(str) + '"';
}
__exports__.string = string;
function array(a) {
return "[" + a + "]";
}
__exports__.array = array;
function hash(pairs) {
return "{" + pairs.join(", ") + "}";
}
__exports__.hash = hash;function repeat(chars, times) {
var str = "";
while (times--) {
str += chars;
}
return str;
}
__exports__.repeat = repeat;
});

@@ -165,0 +210,0 @@ define("htmlbars-util/safe-string",

@@ -9,2 +9,71 @@ define("htmlbars-util",

});
define("htmlbars-util/array-utils",
["exports"],
function(__exports__) {
"use strict";
function forEach(array, callback, binding) {
var i;
if (binding === undefined) {
for (i = 0; i < array.length; i++) {
callback(array[i], i, array);
}
} else {
for (i = 0; i < array.length; i++) {
callback.call(binding, array[i], i, array);
}
}
}
__exports__.forEach = forEach;
});
define("htmlbars-util/object-utils",
["exports"],
function(__exports__) {
"use strict";
function merge(options, defaults) {
for (var prop in defaults) {
if (options.hasOwnProperty(prop)) { continue; }
options[prop] = defaults[prop];
}
return options;
}
__exports__.merge = merge;
});
define("htmlbars-util/quoting",
["exports"],
function(__exports__) {
"use strict";
function escapeString(str) {
return str.replace(/"/g, '\\"').replace(/\n/g, "\\n");
}
__exports__.escapeString = escapeString;
function string(str) {
return '"' + escapeString(str) + '"';
}
__exports__.string = string;
function array(a) {
return "[" + a + "]";
}
__exports__.array = array;
function hash(pairs) {
return "{" + pairs.join(", ") + "}";
}
__exports__.hash = hash;function repeat(chars, times) {
var str = "";
while (times--) {
str += chars;
}
return str;
}
__exports__.repeat = repeat;
});
define("htmlbars-util/safe-string",

@@ -11,0 +80,0 @@ ["exports"],

"use strict";
var compile = require("./htmlbars-compiler/compiler").compile;
var compilerSpec = require("./htmlbars-compiler/compiler").compilerSpec;
var Walker = require("./htmlbars-compiler/walker")["default"];
exports.compile = compile;
exports.compilerSpec = compilerSpec;
exports.Walker = Walker;
exports.compilerSpec = compilerSpec;
"use strict";
/*jshint evil:true*/
var preprocess = require("./parser").preprocess;
var TemplateCompiler = require("./compiler/template").TemplateCompiler;
var preprocess = require("../htmlbars-syntax/parser").preprocess;
var TemplateCompiler = require("./template-compiler")["default"];

@@ -6,0 +6,0 @@ /*

"use strict";
function forEach(array, callback, binding) {
var i, l;
if (binding === undefined) {
for (i=0, l=array.length; i<l; i++) {
callback(array[i], i);
function processOpcodes(compiler, opcodes) {
for (var i=0, l=opcodes.length; i<l; i++) {
var method = opcodes[i][0];
var params = opcodes[i][1];
if (params) {
compiler[method].apply(compiler, params);
} else {
compiler[method].call(compiler);
}
} else {
for (i=0, l=array.length; i<l; i++) {
callback.call(binding, array[i], i);
}
}
}
exports.forEach = forEach;
exports.processOpcodes = processOpcodes;

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

"subexpr",
"concat",
"get",

@@ -25,0 +26,0 @@ "set"

"use strict";
function concat(params) {
var value = "";
for (var i = 0, l = params.length; i < l; i++) {
value += params[i];
}
return value;
}
exports.concat = concat;function partial(params, hash, options, env) {
function partial(params, hash, options, env) {
var template = env.partials[params[0]];

@@ -16,4 +8,3 @@ return template.render(this, env, options.morph.contextualElement);

exports.partial = partial;exports["default"] = {
concat: concat,
partial: partial
};
"use strict";
var concat = require("./helpers").concat;
function content(morph, path, context, params, hash, options, env) {

@@ -21,16 +19,8 @@ var value, helper = lookupHelper(context, path, env);

exports.element = element;function attribute(domElement, attributeName, quoted, context, parts, options) {
var attrValue;
if (quoted) {
attrValue = concat.call(context, parts, null, options);
exports.element = element;function attribute(domElement, name, quoted, context, value) {
if (value === null) {
domElement.removeAttribute(name);
} else {
attrValue = parts[0];
domElement.setAttribute(name, value);
}
if (attrValue === null) {
domElement.removeAttribute(attributeName);
} else {
domElement.setAttribute(attributeName, attrValue);
}
}

@@ -78,3 +68,11 @@

exports.component = component;function componentFallback(morph, tagName, context, hash, options, env) {
exports.component = component;function concat(params) {
var value = "";
for (var i = 0, l = params.length; i < l; i++) {
value += params[i];
}
return value;
}
exports.concat = concat;function componentFallback(morph, tagName, context, hash, options, env) {
var element = env.dom.createElement(tagName);

@@ -98,4 +96,5 @@ for (var name in hash) {

subexpr: subexpr,
concat: concat,
get: get,
set: set
};

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

* See https://raw.githubusercontent.com/tildeio/htmlbars/master/LICENSE
* @version 0.3.0
* @version 0.4.0
*/

@@ -13,3 +13,3 @@

var compileSpec = require("./htmlbars-compiler/compiler").compileSpec;
var Walker = require("./htmlbars-compiler/walker")["default"];
var Walker = require("./htmlbars-syntax/walker")["default"];
var Morph = require("./morph/morph")["default"];

@@ -16,0 +16,0 @@ var DOMHelper = require("./morph/dom-helper")["default"];

@@ -5,8 +5,6 @@ import {

} from "./htmlbars-compiler/compiler";
import Walker from "./htmlbars-compiler/walker";
export {
compile,
compilerSpec,
Walker
compilerSpec
};
/*jshint evil:true*/
import { preprocess } from "./parser";
import { TemplateCompiler } from "./compiler/template";
import { preprocess } from "../htmlbars-syntax/parser";
import TemplateCompiler from "./template-compiler";

@@ -5,0 +5,0 @@ /*

@@ -1,12 +0,11 @@

export function forEach(array, callback, binding) {
var i, l;
if (binding === undefined) {
for (i=0, l=array.length; i<l; i++) {
callback(array[i], i);
export function processOpcodes(compiler, opcodes) {
for (var i=0, l=opcodes.length; i<l; i++) {
var method = opcodes[i][0];
var params = opcodes[i][1];
if (params) {
compiler[method].apply(compiler, params);
} else {
compiler[method].call(compiler);
}
} else {
for (i=0, l=array.length; i<l; i++) {
callback.call(binding, array[i], i);
}
}
}

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

export function concat(params) {
var value = "";
for (var i = 0, l = params.length; i < l; i++) {
value += params[i];
}
return value;
}
export function partial(params, hash, options, env) {

@@ -15,4 +7,3 @@ var template = env.partials[params[0]];

export default {
concat: concat,
partial: partial
};

@@ -1,3 +0,1 @@

import { concat } from "./helpers";
export function content(morph, path, context, params, hash, options, env) {

@@ -20,16 +18,8 @@ var value, helper = lookupHelper(context, path, env);

export function attribute(domElement, attributeName, quoted, context, parts, options) {
var attrValue;
if (quoted) {
attrValue = concat.call(context, parts, null, options);
export function attribute(domElement, name, quoted, context, value) {
if (value === null) {
domElement.removeAttribute(name);
} else {
attrValue = parts[0];
domElement.setAttribute(name, value);
}
if (attrValue === null) {
domElement.removeAttribute(attributeName);
} else {
domElement.setAttribute(attributeName, attrValue);
}
}

@@ -77,2 +67,10 @@

export function concat(params) {
var value = "";
for (var i = 0, l = params.length; i < l; i++) {
value += params[i];
}
return value;
}
function componentFallback(morph, tagName, context, hash, options, env) {

@@ -97,4 +95,5 @@ var element = env.dom.createElement(tagName);

subexpr: subexpr,
concat: concat,
get: get,
set: set
};

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

* See https://raw.githubusercontent.com/tildeio/htmlbars/master/LICENSE
* @version 0.3.0
* @version 0.4.0
*/

@@ -14,3 +14,3 @@

} from "./htmlbars-compiler/compiler";
import Walker from "./htmlbars-compiler/walker";
import Walker from "./htmlbars-syntax/walker";
import Morph from "./morph/morph";

@@ -17,0 +17,0 @@ import DOMHelper from "./morph/dom-helper";

@@ -28,11 +28,2 @@ define("htmlbars-runtime-tests/htmlbars-runtime.jshint",

});
define("htmlbars-runtime-tests/htmlbars-runtime/utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-runtime-tests/htmlbars-runtime');
test('htmlbars-runtime-tests/htmlbars-runtime/utils.js should pass jshint', function() {
ok(true, 'htmlbars-runtime-tests/htmlbars-runtime/utils.js should pass jshint.');
});
});
define("htmlbars-runtime-tests/main-test",

@@ -63,2 +54,3 @@ ["../htmlbars-runtime"],

"subexpr",
"concat",
"get",

@@ -65,0 +57,0 @@ "set"

@@ -10,20 +10,2 @@ define("htmlbars-tests/htmlbars-compiler.jshint",

});
define("htmlbars-tests/htmlbars-compiler/ast.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/ast.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/ast.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/builders.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/builders.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/builders.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler.jshint",

@@ -38,182 +20,164 @@ [],

});
define("htmlbars-tests/htmlbars-compiler/compiler/fragment.jshint",
define("htmlbars-tests/htmlbars-compiler/fragment-javascript-compiler.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/fragment.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/fragment.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/fragment-javascript-compiler.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/fragment-javascript-compiler.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler/fragment_opcode.jshint",
define("htmlbars-tests/htmlbars-compiler/fragment-opcode-compiler.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/fragment_opcode.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/fragment_opcode.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/fragment-opcode-compiler.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/fragment-opcode-compiler.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler/helpers.jshint",
define("htmlbars-tests/htmlbars-compiler/hydration-javascript-compiler.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/helpers.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/helpers.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/hydration-javascript-compiler.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/hydration-javascript-compiler.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler/hydration.jshint",
define("htmlbars-tests/htmlbars-compiler/hydration-opcode-compiler.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/hydration.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/hydration.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/hydration-opcode-compiler.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/hydration-opcode-compiler.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler/hydration_opcode.jshint",
define("htmlbars-tests/htmlbars-compiler/template-compiler.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/hydration_opcode.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/hydration_opcode.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/template-compiler.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/template-compiler.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler/quoting.jshint",
define("htmlbars-tests/htmlbars-compiler/template-visitor.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/quoting.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/quoting.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/template-visitor.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/template-visitor.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler/template.jshint",
define("htmlbars-tests/htmlbars-compiler/utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/template.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/template.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/utils.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/utils.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler/template_visitor.jshint",
define("htmlbars-tests/htmlbars-runtime.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/template_visitor.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/template_visitor.js should pass jshint.');
module('JSHint - htmlbars-tests');
test('htmlbars-tests/htmlbars-runtime.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-runtime.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/compiler/utils.jshint",
define("htmlbars-tests/htmlbars-runtime/helpers.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/compiler');
test('htmlbars-tests/htmlbars-compiler/compiler/utils.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/compiler/utils.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-runtime');
test('htmlbars-tests/htmlbars-runtime/helpers.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-runtime/helpers.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/html-parser/helpers.jshint",
define("htmlbars-tests/htmlbars-runtime/hooks.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/html-parser');
test('htmlbars-tests/htmlbars-compiler/html-parser/helpers.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/html-parser/helpers.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-runtime');
test('htmlbars-tests/htmlbars-runtime/hooks.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-runtime/hooks.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/html-parser/node-handlers.jshint",
define("htmlbars-tests/htmlbars-syntax.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/html-parser');
test('htmlbars-tests/htmlbars-compiler/html-parser/node-handlers.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/html-parser/node-handlers.js should pass jshint.');
module('JSHint - htmlbars-tests');
test('htmlbars-tests/htmlbars-syntax.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-syntax.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/html-parser/token-handlers.jshint",
define("htmlbars-tests/htmlbars-syntax/builders.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/html-parser');
test('htmlbars-tests/htmlbars-compiler/html-parser/token-handlers.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/html-parser/token-handlers.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-syntax');
test('htmlbars-tests/htmlbars-syntax/builders.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-syntax/builders.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/html-parser/tokens.jshint",
define("htmlbars-tests/htmlbars-syntax/node-handlers.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler/html-parser');
test('htmlbars-tests/htmlbars-compiler/html-parser/tokens.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/html-parser/tokens.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-syntax');
test('htmlbars-tests/htmlbars-syntax/node-handlers.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-syntax/node-handlers.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/parser.jshint",
define("htmlbars-tests/htmlbars-syntax/parser.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/parser.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/parser.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-syntax');
test('htmlbars-tests/htmlbars-syntax/parser.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-syntax/parser.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/utils.jshint",
define("htmlbars-tests/htmlbars-syntax/token-handlers.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/utils.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/utils.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-syntax');
test('htmlbars-tests/htmlbars-syntax/token-handlers.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-syntax/token-handlers.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-compiler/walker.jshint",
define("htmlbars-tests/htmlbars-syntax/tokens.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-compiler');
test('htmlbars-tests/htmlbars-compiler/walker.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-compiler/walker.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-syntax');
test('htmlbars-tests/htmlbars-syntax/tokens.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-syntax/tokens.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-runtime.jshint",
define("htmlbars-tests/htmlbars-syntax/utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests');
test('htmlbars-tests/htmlbars-runtime.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-runtime.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-syntax');
test('htmlbars-tests/htmlbars-syntax/utils.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-syntax/utils.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-runtime/helpers.jshint",
define("htmlbars-tests/htmlbars-syntax/walker.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-runtime');
test('htmlbars-tests/htmlbars-runtime/helpers.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-runtime/helpers.js should pass jshint.');
module('JSHint - htmlbars-tests/htmlbars-syntax');
test('htmlbars-tests/htmlbars-syntax/walker.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-syntax/walker.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-runtime/hooks.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-runtime');
test('htmlbars-tests/htmlbars-runtime/hooks.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-runtime/hooks.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-runtime/utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-runtime');
test('htmlbars-tests/htmlbars-runtime/utils.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-runtime/utils.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-test",

@@ -249,2 +213,29 @@ ["../htmlbars"],

});
define("htmlbars-tests/htmlbars-util/array-utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-util');
test('htmlbars-tests/htmlbars-util/array-utils.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-util/array-utils.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-util/object-utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-util');
test('htmlbars-tests/htmlbars-util/object-utils.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-util/object-utils.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-util/quoting.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-tests/htmlbars-util');
test('htmlbars-tests/htmlbars-util/quoting.js should pass jshint', function() {
ok(true, 'htmlbars-tests/htmlbars-util/quoting.js should pass jshint.');
});
});
define("htmlbars-tests/htmlbars-util/safe-string.jshint",

@@ -251,0 +242,0 @@ [],

@@ -31,2 +31,29 @@ define("htmlbars-util-tests/htmlbars-util-test",

});
define("htmlbars-util-tests/htmlbars-util/array-utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-util-tests/htmlbars-util');
test('htmlbars-util-tests/htmlbars-util/array-utils.js should pass jshint', function() {
ok(true, 'htmlbars-util-tests/htmlbars-util/array-utils.js should pass jshint.');
});
});
define("htmlbars-util-tests/htmlbars-util/object-utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-util-tests/htmlbars-util');
test('htmlbars-util-tests/htmlbars-util/object-utils.js should pass jshint', function() {
ok(true, 'htmlbars-util-tests/htmlbars-util/object-utils.js should pass jshint.');
});
});
define("htmlbars-util-tests/htmlbars-util/quoting.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-util-tests/htmlbars-util');
test('htmlbars-util-tests/htmlbars-util/quoting.js should pass jshint', function() {
ok(true, 'htmlbars-util-tests/htmlbars-util/quoting.js should pass jshint.');
});
});
define("htmlbars-util-tests/htmlbars-util/safe-string.jshint",

@@ -33,0 +60,0 @@ [],

@@ -83,2 +83,98 @@ define("htmlbars-test-helpers",

});
define("htmlbars-util/array-utils",
["exports"],
function(__exports__) {
"use strict";
function forEach(array, callback, binding) {
var i;
if (binding === undefined) {
for (i = 0; i < array.length; i++) {
callback(array[i], i, array);
}
} else {
for (i = 0; i < array.length; i++) {
callback.call(binding, array[i], i, array);
}
}
}
__exports__.forEach = forEach;
});
define("htmlbars-util/array-utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-util');
test('htmlbars-util/array-utils.js should pass jshint', function() {
ok(true, 'htmlbars-util/array-utils.js should pass jshint.');
});
});
define("htmlbars-util/object-utils",
["exports"],
function(__exports__) {
"use strict";
function merge(options, defaults) {
for (var prop in defaults) {
if (options.hasOwnProperty(prop)) { continue; }
options[prop] = defaults[prop];
}
return options;
}
__exports__.merge = merge;
});
define("htmlbars-util/object-utils.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-util');
test('htmlbars-util/object-utils.js should pass jshint', function() {
ok(true, 'htmlbars-util/object-utils.js should pass jshint.');
});
});
define("htmlbars-util/quoting",
["exports"],
function(__exports__) {
"use strict";
function escapeString(str) {
return str.replace(/"/g, '\\"').replace(/\n/g, "\\n");
}
__exports__.escapeString = escapeString;
function string(str) {
return '"' + escapeString(str) + '"';
}
__exports__.string = string;
function array(a) {
return "[" + a + "]";
}
__exports__.array = array;
function hash(pairs) {
return "{" + pairs.join(", ") + "}";
}
__exports__.hash = hash;function repeat(chars, times) {
var str = "";
while (times--) {
str += chars;
}
return str;
}
__exports__.repeat = repeat;
});
define("htmlbars-util/quoting.jshint",
[],
function() {
"use strict";
module('JSHint - htmlbars-util');
test('htmlbars-util/quoting.js should pass jshint', function() {
ok(true, 'htmlbars-util/quoting.js should pass jshint.');
});
});
define("htmlbars-util/safe-string",

@@ -85,0 +181,0 @@ ["exports"],

var packagesConfig = {
"version": "0.3.0",
"revision": "717ddc917004584328e6d7e6f408c6dd6469b2c3",
"version": "0.4.0",
"revision": "1060a73c4f5a76b674385c9516ad1fd59bd8a1d4",
"vendored": {},

@@ -11,8 +11,17 @@ "dependencies": {

"htmlbars-util",
"morph",
"simple-html-tokenizer",
"htmlbars-syntax",
"htmlbars-compiler",
"htmlbars-runtime"
"htmlbars-runtime",
"morph"
]
},
"htmlbars-syntax": {
"node": true,
"lib": [
"handlebars-inliner",
"htmlbars-util",
"simple-html-tokenizer"
]
},
"htmlbars-compiler": {

@@ -24,10 +33,10 @@ "node": true,

"simple-html-tokenizer",
"morph"
"htmlbars-syntax"
],
"test": [
"htmlbars-runtime",
"morph",
"htmlbars-test-helpers"
]
},
"htmlbars-util": {},
"htmlbars-runtime": {

@@ -45,4 +54,5 @@ "lib": [

},
"htmlbars-util": {},
"htmlbars-test-helpers": {}
}
};
{
"name": "htmlbars",
"version": "0.3.0",
"version": "0.4.0",
"description": "HTMLBars compiles Handlebars templates into document fragments rather than string buffers",
"main": "dist/cjs/htmlbars.js",
"scripts": {
"prepublish": "bower install && bin/build.js",
"build": "bin/build.js",
"pretest": "bin/build.js",
"prepublish": "bower install && ember build",
"build": "ember build",
"pretest": "ember build",
"test": "bin/run-tests.js",
"start": "broccoli serve"
"start": "ember serve"
},

@@ -28,4 +28,2 @@ "repository": {

"bower": "~1.3.3",
"broccoli": "0.12.0",
"broccoli-cli": "0.0.1",
"broccoli-concat": "0.0.6",

@@ -42,11 +40,8 @@ "broccoli-es6-module-transpiler": "~0.1.0",

"chalk": "~0.4.0",
"copy-dereference": "~1.0.0",
"ember-cli": "^0.1.2",
"ember-cli": "^0.1.3",
"git-repo-version": "0.0.2",
"handlebars": "mmun/handlebars.js#new-ast-3238645f",
"ncp": "~0.5.1",
"qunit": "^0.7.2",
"rimraf": "~2.2.8",
"rsvp": "~3.0.6"
}
}

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