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

es-html-parser

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-html-parser - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

3

dist/tokenizer/handlers/attribute-value-wrapped.js

@@ -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",

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