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

handlebars

Package Overview
Dependencies
Maintainers
5
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

.idea/jsonSchemas.xml

21

dist/amd/handlebars/exception.js

@@ -24,2 +24,3 @@ define(['exports', 'module'], function (exports, module) {

/* istanbul ignore else */
if (Error.captureStackTrace) {

@@ -29,5 +30,19 @@ Error.captureStackTrace(this, Exception);

if (loc) {
this.lineNumber = line;
this.column = column;
try {
if (loc) {
this.lineNumber = line;
// Work around issue under safari where we can't directly set the column value
/* istanbul ignore next */
if (Object.defineProperty) {
Object.defineProperty(this, 'column', {
value: column,
enumerable: true
});
} else {
this.column = column;
}
}
} catch (nop) {
/* Ignore if the browser is very particular */
}

@@ -34,0 +49,0 @@ }

9

dist/amd/handlebars/utils.js

@@ -17,8 +17,9 @@ define(['exports'], function (exports) {

"'": ''',
'`': '`',
'=': '='
'`': '`'
// The "equals-sign" is intentionally excluded from this list
// due to semantic-versioning issues (see #1489)
};
var badChars = /[&<>"'`=]/g,
possible = /[&<>"'`=]/;
var badChars = /[&<>"'`]/g,
possible = /[&<>"'`]/;

@@ -25,0 +26,0 @@ function escapeChar(chr) {

@@ -25,2 +25,3 @@ 'use strict';

/* istanbul ignore else */
if (Error.captureStackTrace) {

@@ -30,5 +31,19 @@ Error.captureStackTrace(this, Exception);

if (loc) {
this.lineNumber = line;
this.column = column;
try {
if (loc) {
this.lineNumber = line;
// Work around issue under safari where we can't directly set the column value
/* istanbul ignore next */
if (Object.defineProperty) {
Object.defineProperty(this, 'column', {
value: column,
enumerable: true
});
} else {
this.column = column;
}
}
} catch (nop) {
/* Ignore if the browser is very particular */
}

@@ -35,0 +50,0 @@ }

@@ -16,8 +16,9 @@ 'use strict';

"'": '&#x27;',
'`': '&#x60;',
'=': '&#x3D;'
'`': '&#x60;'
// The "equals-sign" is intentionally excluded from this list
// due to semantic-versioning issues (see #1489)
};
var badChars = /[&<>"'`=]/g,
possible = /[&<>"'`=]/;
var badChars = /[&<>"'`]/g,
possible = /[&<>"'`]/;

@@ -24,0 +25,0 @@ function escapeChar(chr) {

/*!
handlebars v3.0.5
handlebars v3.0.6

@@ -43,8 +43,9 @@ Copyright (C) 2011-2014 by Yehuda Katz

"'": '&#x27;',
'`': '&#x60;',
'=': '&#x3D;'
'`': '&#x60;'
// The "equals-sign" is intentionally excluded from this list
// due to semantic-versioning issues (see #1489)
};
var badChars = /[&<>"'`=]/g,
possible = /[&<>"'`=]/;
var badChars = /[&<>"'`]/g,
possible = /[&<>"'`]/;

@@ -170,2 +171,3 @@ function escapeChar(chr) {

/* istanbul ignore else */
if (Error.captureStackTrace) {

@@ -175,5 +177,19 @@ Error.captureStackTrace(this, Exception);

if (loc) {
this.lineNumber = line;
this.column = column;
try {
if (loc) {
this.lineNumber = line;
// Work around issue under safari where we can't directly set the column value
/* istanbul ignore next */
if (Object.defineProperty) {
Object.defineProperty(this, 'column', {
value: column,
enumerable: true
});
} else {
this.column = column;
}
}
} catch (nop) {
/* Ignore if the browser is very particular */
}

@@ -180,0 +196,0 @@ }

/*!
handlebars v3.0.5
handlebars v3.0.6

@@ -35,3 +35,3 @@ Copyright (C) 2011-2014 by Yehuda Katz

// an object's to string has escaped characters in it.
a=""+a}return k.test(a)?a.replace(j,b):a}function f(a){return!a&&0!==a||!(!n(a)||0!==a.length)}function g(a,b){return a.path=b,a}function h(a,b){return(a?a+".":"")+b}a.__esModule=!0,a.extend=c,a.indexOf=d,a.escapeExpression=e,a.isEmpty=f,a.blockParams=g,a.appendContextPath=h;var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},j=/[&<>"'`=]/g,k=/[&<>"'`=]/,l=Object.prototype.toString;a.toString=l;
a=""+a}return k.test(a)?a.replace(j,b):a}function f(a){return!a&&0!==a||!(!n(a)||0!==a.length)}function g(a,b){return a.path=b,a}function h(a,b){return(a?a+".":"")+b}a.__esModule=!0,a.extend=c,a.indexOf=d,a.escapeExpression=e,a.isEmpty=f,a.blockParams=g,a.appendContextPath=h;var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=/[&<>"'`]/g,k=/[&<>"'`]/,l=Object.prototype.toString;a.toString=l;
// Sourced from lodash

@@ -47,3 +47,7 @@ // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt

// Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.
for(var h=Error.prototype.constructor.call(this,a),i=0;i<d.length;i++)this[d[i]]=h[d[i]];Error.captureStackTrace&&Error.captureStackTrace(this,c),e&&(this.lineNumber=f,this.column=g)}var d=["description","fileName","lineNumber","message","name","number","stack"];c.prototype=new Error,b.exports=c}),define("handlebars/base",["exports","./utils","./exception"],function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){this.helpers=a||{},this.partials=b||{},f(this)}function f(a){a.registerHelper("helperMissing",function(){if(1!==arguments.length)
for(var h=Error.prototype.constructor.call(this,a),i=0;i<d.length;i++)this[d[i]]=h[d[i]];/* istanbul ignore else */
Error.captureStackTrace&&Error.captureStackTrace(this,c);try{e&&(this.lineNumber=f,
// Work around issue under safari where we can't directly set the column value
/* istanbul ignore next */
Object.defineProperty?Object.defineProperty(this,"column",{value:g,enumerable:!0}):this.column=g)}catch(j){}}var d=["description","fileName","lineNumber","message","name","number","stack"];c.prototype=new Error,b.exports=c}),define("handlebars/base",["exports","./utils","./exception"],function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){this.helpers=a||{},this.partials=b||{},f(this)}function f(a){a.registerHelper("helperMissing",function(){if(1!==arguments.length)
// Someone is actually trying to call something, blow up.

@@ -50,0 +54,0 @@ throw new h["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')}),a.registerHelper("blockHelperMissing",function(c,d){var e=d.inverse,f=d.fn;if(c===!0)return f(this);if(c===!1||null==c)return e(this);if(l(c))return c.length>0?(d.ids&&(d.ids=[d.name]),a.helpers.each(c,d)):e(this);if(d.data&&d.ids){var h=g(d.data);h.contextPath=b.appendContextPath(d.data.contextPath,d.name),d={data:h}}return f(c,d)}),a.registerHelper("each",function(a,c){function d(c,d,f){k&&(k.key=c,k.index=d,k.first=0===d,k.last=!!f,n&&(k.contextPath=n+c)),j+=e(a[c],{data:k,blockParams:b.blockParams([a[c],c],[n+c,null])})}if(!c)throw new h["default"]("Must pass iterator to #each");var e=c.fn,f=c.inverse,i=0,j="",k=void 0,n=void 0;if(c.data&&c.ids&&(n=b.appendContextPath(c.data.contextPath,c.ids[0])+"."),m(a)&&(a=a.call(this)),c.data&&(k=g(c.data)),a&&"object"==typeof a)if(l(a))for(var o=a.length;i<o;i++)d(i,i,i===a.length-1);else{var p=void 0;for(var q in a)a.hasOwnProperty(q)&&(

/*!
handlebars v3.0.5
handlebars v3.0.6

@@ -98,3 +98,3 @@ Copyright (C) 2011-2014 by Yehuda Katz

var _handlebarsSafeString = __webpack_require__(6);
var _handlebarsSafeString = __webpack_require__(9);

@@ -111,7 +111,7 @@ var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);

var _handlebarsRuntime = __webpack_require__(7);
var _handlebarsRuntime = __webpack_require__(10);
var runtime = _interopRequireWildcard(_handlebarsRuntime);
var _handlebarsNoConflict = __webpack_require__(8);
var _handlebarsNoConflict = __webpack_require__(11);

@@ -484,8 +484,9 @@ var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);

"'": '&#x27;',
'`': '&#x60;',
'=': '&#x3D;'
'`': '&#x60;'
// The "equals-sign" is intentionally excluded from this list
// due to semantic-versioning issues (see #1489)
};
var badChars = /[&<>"'`=]/g,
possible = /[&<>"'`=]/;
var badChars = /[&<>"'`]/g,
possible = /[&<>"'`]/;

@@ -589,6 +590,8 @@ function escapeChar(chr) {

/* 5 */
/***/ (function(module, exports) {
/***/ (function(module, exports, __webpack_require__) {
'use strict';
var _Object$defineProperty = __webpack_require__(6)['default'];
exports.__esModule = true;

@@ -616,2 +619,3 @@

/* istanbul ignore else */
if (Error.captureStackTrace) {

@@ -621,5 +625,19 @@ Error.captureStackTrace(this, Exception);

if (loc) {
this.lineNumber = line;
this.column = column;
try {
if (loc) {
this.lineNumber = line;
// Work around issue under safari where we can't directly set the column value
/* istanbul ignore next */
if (_Object$defineProperty) {
Object.defineProperty(this, 'column', {
value: column,
enumerable: true
});
} else {
this.column = column;
}
}
} catch (nop) {
/* Ignore if the browser is very particular */
}

@@ -635,4 +653,37 @@ }

/* 6 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(7), __esModule: true };
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__(8);
module.exports = function defineProperty(it, key, desc){
return $.setDesc(it, key, desc);
};
/***/ }),
/* 8 */
/***/ (function(module, exports) {
var $Object = Object;
module.exports = {
create: $Object.create,
getProto: $Object.getPrototypeOf,
isEnum: {}.propertyIsEnumerable,
getDesc: $Object.getOwnPropertyDescriptor,
setDesc: $Object.defineProperty,
setDescs: $Object.defineProperties,
getKeys: $Object.keys,
getNames: $Object.getOwnPropertyNames,
getSymbols: $Object.getOwnPropertySymbols,
each: [].forEach
};
/***/ }),
/* 9 */
/***/ (function(module, exports) {
// Build out our basic SafeString type

@@ -654,3 +705,3 @@ 'use strict';

/***/ }),
/* 7 */
/* 10 */
/***/ (function(module, exports, __webpack_require__) {

@@ -891,3 +942,3 @@

/***/ }),
/* 8 */
/* 11 */
/***/ (function(module, exports) {

@@ -894,0 +945,0 @@

/*!
handlebars v3.0.5
handlebars v3.0.6

@@ -70,3 +70,3 @@ Copyright (C) 2011-2014 by Yehuda Katz

// For compatibility and usage outside of module systems, make the Handlebars object a namespace
function d(){var a=new h.HandlebarsEnvironment;return n.extend(a,h),a.SafeString=j["default"],a.Exception=l["default"],a.Utils=n,a.escapeExpression=n.escapeExpression,a.VM=p,a.template=function(b){return p.template(b,a)},a}var e=c(1)["default"],f=c(2)["default"];b.__esModule=!0;var g=c(3),h=e(g),i=c(6),j=f(i),k=c(5),l=f(k),m=c(4),n=e(m),o=c(7),p=e(o),q=c(8),r=f(q),s=d();s.create=d,r["default"](s),s["default"]=s,b["default"]=s,a.exports=b["default"]},/* 1 */
function d(){var a=new h.HandlebarsEnvironment;return n.extend(a,h),a.SafeString=j["default"],a.Exception=l["default"],a.Utils=n,a.escapeExpression=n.escapeExpression,a.VM=p,a.template=function(b){return p.template(b,a)},a}var e=c(1)["default"],f=c(2)["default"];b.__esModule=!0;var g=c(3),h=e(g),i=c(9),j=f(i),k=c(5),l=f(k),m=c(4),n=e(m),o=c(10),p=e(o),q=c(11),r=f(q),s=d();s.create=d,r["default"](s),s["default"]=s,b["default"]=s,a.exports=b["default"]},/* 1 */
/***/

@@ -105,3 +105,3 @@ function(a,b){"use strict";b["default"]=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b},b.__esModule=!0},/* 2 */

// an object's to string has escaped characters in it.
a=""+a}return l.test(a)?a.replace(k,c):a}function g(a){return!a&&0!==a||!(!o(a)||0!==a.length)}function h(a,b){return a.path=b,a}function i(a,b){return(a?a+".":"")+b}b.__esModule=!0,b.extend=d,b.indexOf=e,b.escapeExpression=f,b.isEmpty=g,b.blockParams=h,b.appendContextPath=i;var j={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},k=/[&<>"'`=]/g,l=/[&<>"'`=]/,m=Object.prototype.toString;b.toString=m;
a=""+a}return l.test(a)?a.replace(k,c):a}function g(a){return!a&&0!==a||!(!o(a)||0!==a.length)}function h(a,b){return a.path=b,a}function i(a,b){return(a?a+".":"")+b}b.__esModule=!0,b.extend=d,b.indexOf=e,b.escapeExpression=f,b.isEmpty=g,b.blockParams=h,b.appendContextPath=i;var j={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},k=/[&<>"'`]/g,l=/[&<>"'`]/,m=Object.prototype.toString;b.toString=m;
// Sourced from lodash

@@ -117,9 +117,19 @@ // https://github.com/bestiejs/lodash/blob/master/LICENSE.txt

/***/
function(a,b){"use strict";function c(a,b){var e=b&&b.loc,f=void 0,g=void 0;e&&(f=e.start.line,g=e.start.column,a+=" - "+f+":"+g);
function(a,b,c){"use strict";function d(a,b){var c=b&&b.loc,g=void 0,h=void 0;c&&(g=c.start.line,h=c.start.column,a+=" - "+g+":"+h);
// Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.
for(var h=Error.prototype.constructor.call(this,a),i=0;i<d.length;i++)this[d[i]]=h[d[i]];Error.captureStackTrace&&Error.captureStackTrace(this,c),e&&(this.lineNumber=f,this.column=g)}b.__esModule=!0;var d=["description","fileName","lineNumber","message","name","number","stack"];c.prototype=new Error,b["default"]=c,a.exports=b["default"]},/* 6 */
for(var i=Error.prototype.constructor.call(this,a),j=0;j<f.length;j++)this[f[j]]=i[f[j]];/* istanbul ignore else */
Error.captureStackTrace&&Error.captureStackTrace(this,d);try{c&&(this.lineNumber=g,
// Work around issue under safari where we can't directly set the column value
/* istanbul ignore next */
e?Object.defineProperty(this,"column",{value:h,enumerable:!0}):this.column=h)}catch(k){}}var e=c(6)["default"];b.__esModule=!0;var f=["description","fileName","lineNumber","message","name","number","stack"];d.prototype=new Error,b["default"]=d,a.exports=b["default"]},/* 6 */
/***/
function(a,b,c){a.exports={"default":c(7),__esModule:!0}},/* 7 */
/***/
function(a,b,c){var d=c(8);a.exports=function(a,b,c){return d.setDesc(a,b,c)}},/* 8 */
/***/
function(a,b){var c=Object;a.exports={create:c.create,getProto:c.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:c.getOwnPropertyDescriptor,setDesc:c.defineProperty,setDescs:c.defineProperties,getKeys:c.keys,getNames:c.getOwnPropertyNames,getSymbols:c.getOwnPropertySymbols,each:[].forEach}},/* 9 */
/***/
function(a,b){
// Build out our basic SafeString type
"use strict";function c(a){this.string=a}b.__esModule=!0,c.prototype.toString=c.prototype.toHTML=function(){return""+this.string},b["default"]=c,a.exports=b["default"]},/* 7 */
"use strict";function c(a){this.string=a}b.__esModule=!0,c.prototype.toString=c.prototype.toHTML=function(){return""+this.string},b["default"]=c,a.exports=b["default"]},/* 10 */
/***/

@@ -136,3 +146,3 @@ function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=q.COMPILER_REVISION;if(b!==c){if(b<c){var d=q.REVISION_CHANGES[c],e=q.REVISION_CHANGES[b];throw new p["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}

// This is a dynamic partial that returned a string
return a?a.call||c.name||(c.name=a,a=c.partials[a]):a=c.partials[c.name],a}function h(a,b,c){if(c.partial=!0,void 0===a)throw new p["default"]("The partial "+c.name+" could not be found");if(a instanceof Function)return a(b,c)}function i(){return""}function j(a,b){return b&&"root"in b||(b=b?q.createFrame(b):{},b.root=a),b}var k=c(1)["default"],l=c(2)["default"];b.__esModule=!0,b.checkRevision=d,b.template=e,b.wrapProgram=f,b.resolvePartial=g,b.invokePartial=h,b.noop=i;var m=c(4),n=k(m),o=c(5),p=l(o),q=c(3)},/* 8 */
return a?a.call||c.name||(c.name=a,a=c.partials[a]):a=c.partials[c.name],a}function h(a,b,c){if(c.partial=!0,void 0===a)throw new p["default"]("The partial "+c.name+" could not be found");if(a instanceof Function)return a(b,c)}function i(){return""}function j(a,b){return b&&"root"in b||(b=b?q.createFrame(b):{},b.root=a),b}var k=c(1)["default"],l=c(2)["default"];b.__esModule=!0,b.checkRevision=d,b.template=e,b.wrapProgram=f,b.resolvePartial=g,b.invokePartial=h,b.noop=i;var m=c(4),n=k(m),o=c(5),p=l(o),q=c(3)},/* 11 */
/***/

@@ -139,0 +149,0 @@ function(a,b){/* WEBPACK VAR INJECTION */

@@ -22,2 +22,3 @@

/* istanbul ignore else */
if (Error.captureStackTrace) {

@@ -27,5 +28,19 @@ Error.captureStackTrace(this, Exception);

if (loc) {
this.lineNumber = line;
this.column = column;
try {
if (loc) {
this.lineNumber = line;
// Work around issue under safari where we can't directly set the column value
/* istanbul ignore next */
if (Object.defineProperty) {
Object.defineProperty(this, 'column', {
value: column,
enumerable: true
});
} else {
this.column = column;
}
}
} catch (nop) {
/* Ignore if the browser is very particular */
}

@@ -32,0 +47,0 @@ }

@@ -7,8 +7,9 @@ const escape = {

"'": '&#x27;',
'`': '&#x60;',
'=': '&#x3D;'
'`': '&#x60;'
// The "equals-sign" is intentionally excluded from this list
// due to semantic-versioning issues (see #1489)
};
const badChars = /[&<>"'`=]/g,
possible = /[&<>"'`=]/;
const badChars = /[&<>"'`]/g,
possible = /[&<>"'`]/;

@@ -15,0 +16,0 @@ function escapeChar(chr) {

{
"name": "handlebars",
"barename": "handlebars",
"version": "3.0.5",
"version": "3.0.6",
"description": "Handlebars provides the power necessary to let you build semantic templates effectively with no frustration",

@@ -13,2 +13,5 @@ "homepage": "http://www.handlebarsjs.com/",

],
"publishConfig": {
"tag": "legacy"
},
"repository": {

@@ -55,3 +58,3 @@ "type": "git",

"keen.io": "0.0.3",
"mocha": "~1.20.0",
"mocha": "~1.21.5",
"mustache": "0.x",

@@ -58,0 +61,0 @@ "semver": "^4.0.0",

@@ -5,4 +5,24 @@ # Release Notes

[Commits](https://github.com/wycats/handlebars.js/compare/v3.0.5...master)
[Commits](https://github.com/wycats/handlebars.js/compare/v3.0.6...master)
## v3.0.6 - January 2nd, 2019
Chore:
- prevent tagging 3.x versions as "latest" in npm - df403ed, [#1486](https://github.com/wycats/handlebars.js/issues/1486)
- ignore idea config - af919d2
- fix travis build - 9283205
- update components/handlebars package.json on release - 9679fe6
- add active NodeJS versions to travis - d207ad0
Fix:
- No longer escape "=" in HTML content - 6e9dbac, [#1489](https://github.com/wycats/handlebars.js/issues/1489)
- gracefully handle read-only "column"-property of the Error class (required in Safari 9+) - 725986d
Compatibility notes:
- Compatibility to 3.0.5 is broken due to reverting to *not* escaping "=" in HTML,
but compatibility to 3.0.3 is restored.
[Commits](https://github.com/wycats/handlebars.js/compare/v3.0.5...v3.0.6)
## v3.0.5 - December 15th, 2018

@@ -9,0 +29,0 @@ - chore: use node 10.x in travis-build - 4ed0a62

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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