pug-contracts-trusted-types
Advanced tools
Comparing version 1.0.5-alpha to 1.0.6-alpha
@@ -114,3 +114,2 @@ // **** GENERATED CODE, DO NOT MODIFY **** | ||
var valueCache = null; // Cache calls to getValue | ||
var requiredValueNotFound = false; | ||
for (var i = 0, n = attrInfoArray.length; i < n; ++i) { | ||
@@ -130,12 +129,4 @@ var attrInfo = attrInfoArray[i]; | ||
return attrInfo.contract; | ||
} else if (actualValue == null /* intentionally match undefined */) { | ||
requiredValueNotFound = true; | ||
} | ||
} | ||
// Do not fall back to global attributes if there are contingent | ||
// attributes defined for which we could not find a value that | ||
// definitely ruled out a match. | ||
if (requiredValueNotFound) { | ||
return null; | ||
} | ||
} | ||
@@ -142,0 +133,0 @@ } |
{ | ||
"name": "pug-contracts-trusted-types", | ||
"version": "1.0.5-alpha", | ||
"version": "1.0.6-alpha", | ||
"description": "Security-relevant metadata about HTML elements and attributes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
30496
790