Comparing version 2.2.1 to 2.2.2
@@ -36,3 +36,3 @@ "use strict"; | ||
Scope.prototype.getName = function (name) { | ||
while (this.used.hasOwnProperty(name)) { | ||
while (hasOwnProperty.call(this.used, name)) { | ||
name += "_"; | ||
@@ -264,3 +264,3 @@ } | ||
if (node.indexName) { | ||
if (compiler.scope.used.hasOwnProperty(node.indexName)) { | ||
if (hasOwnProperty.call(compiler.scope.used, node.indexName)) { | ||
originalName = compiler.scope.getName("original"); | ||
@@ -267,0 +267,0 @@ |
{ | ||
"name": "razorleaf", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"main": "razorleaf.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -581,3 +581,3 @@ "use strict"; | ||
if (c === null || !BLOCK_OR_TEMPLATE_NAME.test(c)) { | ||
if (parser.root.blocks.hasOwnProperty(parser.identifier)) { | ||
if (hasOwnProperty.call(parser.root.blocks, parser.identifier)) { | ||
throw parser.error("A block named “" + parser.identifier + "” has already been defined"); | ||
@@ -638,3 +638,3 @@ } | ||
if (parser.root.blockActions.hasOwnProperty(parser.identifier)) { | ||
if (hasOwnProperty.call(parser.root.blockActions, parser.identifier)) { | ||
parser.root.blockActions[parser.identifier].push(action); | ||
@@ -688,3 +688,3 @@ } else { | ||
if (parser.root.blockActions.hasOwnProperty(parser.identifier)) { | ||
if (hasOwnProperty.call(parser.root.blockActions, parser.identifier)) { | ||
parser.root.blockActions[parser.identifier].push(action); | ||
@@ -1056,4 +1056,4 @@ } else { | ||
for (blockName in root.blocks) { | ||
if (root.blocks.hasOwnProperty(blockName)) { | ||
if (parentTemplate.blocks.hasOwnProperty(blockName)) { | ||
if (hasOwnProperty.call(root.blocks, blockName)) { | ||
if (hasOwnProperty.call(parentTemplate.blocks, blockName)) { | ||
throw new SyntaxError("Parent template " + root.extends + " already contains a block named “" + blockName + "”."); | ||
@@ -1067,4 +1067,4 @@ } | ||
for (blockName in root.blockActions) { | ||
if (root.blockActions.hasOwnProperty(blockName)) { | ||
if (!parentTemplate.blocks.hasOwnProperty(blockName)) { | ||
if (hasOwnProperty.call(root.blockActions, blockName)) { | ||
if (!hasOwnProperty.call(parentTemplate.blocks, blockName)) { | ||
throw new SyntaxError("There is no block named “" + blockName + "”."); | ||
@@ -1071,0 +1071,0 @@ } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
41681
6
1282
2