New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

es-html-parser

Package Overview
Dependencies
Maintainers
0
Versions
15
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 1.0.0-alpha.3 to 1.0.0-alpha.4

1

dist/tokenizer/tokenize.js

@@ -50,2 +50,3 @@ "use strict";

accumulatedContent: new chars_buffer_1.CharsBuffer(),
tokenAdapter,
sourceCode: new source_code_1.SourceCode(source, templateRanges || []),

@@ -52,0 +53,0 @@ tokens: {

@@ -6,2 +6,3 @@ import { TokenizerContextTypes } from "../constants";

import { AnyToken } from "./token";
import { TokenAdapter } from "./token-adapter";
type ContextParams = {

@@ -28,2 +29,3 @@ [TokenizerContextTypes.AttributeValueWrapped]?: {

templateRanges: Range[];
tokenAdapter: TokenAdapter;
sourceCode: SourceCode;

@@ -30,0 +32,0 @@ tokens: {

17

dist/utils/create-templates.js

@@ -6,10 +6,13 @@ "use strict";

return state.mode === "template" && state.accumulatedContent.hasTemplate()
? state.accumulatedContent.getTemplates().map((chars) => ({
type: type,
range: chars.range,
loc: state.sourceCode.getLocationOf(chars.range),
isTemplate: chars.isTemplate,
value: chars.value,
}))
? state.accumulatedContent.getTemplates().map((chars) => {
const token = {
type: type,
range: chars.range,
loc: state.sourceCode.getLocationOf(chars.range),
isTemplate: chars.isTemplate,
value: chars.value,
};
return Object.assign(Object.assign({}, token), { range: state.tokenAdapter.finalizeRange(token), loc: state.tokenAdapter.finalizeLocation(token) });
})
: [];
}
{
"name": "es-html-parser",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"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