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

@netflix/x-element

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netflix/x-element - npm Package Compare versions

Comparing version

to
2.0.0-rc.9

2

package.json
{
"name": "@netflix/x-element",
"description": "A dead simple starting point for custom elements.",
"version": "2.0.0-rc.8",
"version": "2.0.0-rc.9",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "repository": "github:Netflix/x-element",

@@ -117,5 +117,5 @@ /** Strict HTML parser meant to handle interpolated HTML. */

* @typedef {object} ErrorContext
* @property {number} stringsIndex
* @property {string} string
* @property {number} stringIndex
* @property {number} index
* @property {number} start
* @property {number} end
*/

@@ -128,5 +128,5 @@ /**

static getErrorContext(error: Error): {
stringsIndex: number;
string: string;
stringIndex: number;
index: number;
start: number;
end: number;
} | void;

@@ -133,0 +133,0 @@ /**

@@ -922,5 +922,5 @@ /** Strict HTML parser meant to handle interpolated HTML. */

* @typedef {object} ErrorContext
* @property {number} stringsIndex
* @property {string} string
* @property {number} stringIndex
* @property {number} index
* @property {number} start
* @property {number} end
*/

@@ -987,3 +987,2 @@

value = XParser.#boundContent;
nextStringIndex = value.lastIndex;
break;

@@ -1067,2 +1066,3 @@ }

stringIndex = nextStringIndex; // Update out pointer from our pattern match.
nextStringIndex = null;
}

@@ -1074,3 +1074,7 @@ stringsIndex++;

} catch (error) {
error[XParser.#errorContextKey] = { stringsIndex, string, stringIndex };
// Roughly match the conventions for “onToken”.
const index = stringsIndex;
const start = stringIndex;
const end = nextStringIndex;
error[XParser.#errorContextKey] = { index, start, end };
throw error;

@@ -1077,0 +1081,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet