es-html-parser
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -7,3 +7,4 @@ "use strict"; | ||
function parse(chars, state, tokens) { | ||
const wrapperChar = state.contextParams[constants_1.TokenizerContextTypes.AttributeValueWrapped]?.wrapper; | ||
var _a; | ||
const wrapperChar = (_a = state.contextParams[constants_1.TokenizerContextTypes.AttributeValueWrapped]) === null || _a === void 0 ? void 0 : _a.wrapper; | ||
if (chars === wrapperChar) { | ||
@@ -10,0 +11,0 @@ return parseWrapper(state, tokens); |
@@ -21,3 +21,4 @@ "use strict"; | ||
function parseTagEnd(state) { | ||
const tagName = state.contextParams[constants_1.TokenizerContextTypes.Attributes]?.tagName; | ||
var _a; | ||
const tagName = (_a = state.contextParams[constants_1.TokenizerContextTypes.Attributes]) === null || _a === void 0 ? void 0 : _a.tagName; | ||
state.accumulatedContent = ""; | ||
@@ -24,0 +25,0 @@ state.decisionBuffer = ""; |
@@ -7,3 +7,4 @@ "use strict"; | ||
function parse(chars, state, tokens) { | ||
const wrapperChar = state.contextParams[constants_1.TokenizerContextTypes.DoctypeAttributeWrapped]?.wrapper; | ||
var _a; | ||
const wrapperChar = (_a = state.contextParams[constants_1.TokenizerContextTypes.DoctypeAttributeWrapped]) === null || _a === void 0 ? void 0 : _a.wrapper; | ||
if (chars === wrapperChar) { | ||
@@ -10,0 +11,0 @@ return parseWrapper(state, tokens); |
@@ -26,4 +26,5 @@ "use strict"; | ||
function parseClosingCornerBrace(state, tokens) { | ||
var _a; | ||
const position = (0, utils_1.calculateTokenPosition)(state, { keepBuffer: true }); | ||
const tagName = state.contextParams[constants_1.TokenizerContextTypes.OpenTagEnd]?.tagName; | ||
const tagName = (_a = state.contextParams[constants_1.TokenizerContextTypes.OpenTagEnd]) === null || _a === void 0 ? void 0 : _a.tagName; | ||
tokens.push({ | ||
@@ -30,0 +31,0 @@ type: tokensMap[tagName] || tokensMap.default, |
@@ -6,4 +6,4 @@ "use strict"; | ||
node.range[1] = token.range[1]; | ||
node.loc.end = { ...token.loc.end }; | ||
node.loc.end = Object.assign({}, token.loc.end); | ||
} | ||
exports.updateNodeEnd = updateNodeEnd; |
{ | ||
"name": "es-html-parser", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
125773
2666