Comparing version 1.5.4 to 1.7.0
@@ -1088,3 +1088,5 @@ var esprima = require('esprima'), | ||
// Initialize globals from the context if asked | ||
if (globalInit[name]) { | ||
if (globalInit.hasOwnProperty(name)) { | ||
var value = globalInit[name]; | ||
apply.body.body.unshift({ | ||
@@ -1096,8 +1098,8 @@ type: 'ExpressionStatement', | ||
left: { type: 'Identifier', name: name }, | ||
right: { | ||
right: value ? { | ||
type: 'MemberExpression', | ||
computed: true, | ||
object: { type: 'Identifier', name: 'ctx' }, | ||
property: { type: 'Literal', value: globalInit[name] } | ||
} | ||
property: { type: 'Literal', value: value } | ||
} : { type: 'Identifier', name: 'undefined' } | ||
} | ||
@@ -1104,0 +1106,0 @@ }); |
{ | ||
"name": "xjst", | ||
"description": "XSLT inspired JavaScript templates (with spices)", | ||
"version": "1.5.4", | ||
"version": "1.7.0", | ||
"homepage": "http://github.com/veged/xjst", | ||
@@ -6,0 +6,0 @@ "author": "Sergey Berezhnoy <veged@mail.ru> (http://github.com/veged)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
113449
2640
1