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

webidl2

Package Overview
Dependencies
Maintainers
4
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webidl2 - npm Package Compare versions

Comparing version 12.0.0 to 12.1.0

test/invalid/idl/id-underscored-number.widl

183

lib/webidl2.js

@@ -11,3 +11,3 @@ "use strict";

"integer": /-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)/y,
"identifier": /[A-Z_a-z][0-9A-Z_a-z-]*/y,
"identifier": /_?[A-Za-z][0-9A-Z_a-z-]*/y,
"string": /"[^"]*"/y,

@@ -19,2 +19,46 @@ "whitespace": /[\t\n\r ]+/y,

const namedTerminals = [
"Infinity",
"NaN",
"attribute",
"boolean",
"byte",
"callback",
"const",
"deleter",
"dictionary",
"double",
"enum",
"false",
"float",
"getter",
"implements",
"includes",
"inherit",
"interface",
"iterable",
"legacyiterable",
"long",
"maplike",
"mixin",
"namespace",
"null",
"octet",
"optional",
"or",
"partial",
"readonly",
"required",
"setlike",
"setter",
"short",
"static",
"stringifier",
"true",
"typedef",
"unrestricted",
"unsigned",
"void"
];
function tokenise(str) {

@@ -47,2 +91,6 @@ const tokens = [];

result = attemptTokenMatch("identifier");
const token = tokens[tokens.length - 1];
if (result !== -1 && namedTerminals.includes(token.value)) {
token.type = token.value;
}
} else if (nextChar === '"') {

@@ -64,3 +112,3 @@ result = attemptTokenMatch("string");

function attemptTokenMatch(type, {noFlushTrivia} = {}) {
function attemptTokenMatch(type, { noFlushTrivia } = {}) {
const re = tokenRe[type];

@@ -89,3 +137,5 @@ re.lastIndex = lastIndex;

toString() {
return `${this.message}, line ${this.line} (tokens: '${this.input}')\n${JSON.stringify(this.tokens, null, 4)}`;
const escapedInput = JSON.stringify(this.input);
const tokens = JSON.stringify(this.tokens, null, 4);
return `${this.message}, line ${this.line} (tokens: ${escapedInput})\n${tokens}`;
}

@@ -125,11 +175,8 @@ }

function error(str) {
let tok = "";
let numTokens = 0;
const maxTokens = 5;
while (numTokens < maxTokens && tokens.length > numTokens) {
tok += tokens[numTokens].value;
numTokens++;
const tok = tokens.slice(0, maxTokens).map(t => t.trivia + t.value).join("");
// Count newlines preceding the actual errorneous token
if (tokens.length) {
line += count(tokens[0].trivia, "\n");
}
// Count newlines preceding the actual errorneous token
line += count(tokens[0].trivia, "\n");

@@ -163,4 +210,2 @@ let message;

line += count(last_token.trivia, "\n");
if (type === ID && last_token.value.startsWith('_'))
last_token.value = last_token.value.substring(1);
return last_token;

@@ -170,2 +215,6 @@ }

function unescape(identifier) {
return identifier.startsWith('_') ? identifier.slice(1) : identifier;
}
function unconsume(...toks) {

@@ -190,7 +239,7 @@ // TODO: use const when Servo updates its JS engine

let ret = "";
if (consume(ID, "unsigned")) ret = "unsigned ";
if (consume(ID, "short")) return ret + "short";
if (consume(ID, "long")) {
if (consume("unsigned")) ret = "unsigned ";
if (consume("short")) return ret + "short";
if (consume("long")) {
ret += "long";
if (consume(ID, "long")) return ret + " long";
if (consume("long")) return ret + " long";
return ret;

@@ -203,5 +252,5 @@ }

let ret = "";
if (consume(ID, "unrestricted")) ret = "unrestricted ";
if (consume(ID, "float")) return ret + "float";
if (consume(ID, "double")) return ret + "double";
if (consume("unrestricted")) ret = "unrestricted ";
if (consume("float")) return ret + "float";
if (consume("double")) return ret + "double";
if (ret) error("Failed to parse float type");

@@ -213,13 +262,13 @@ }

if (num_type) return num_type;
if (consume(ID, "boolean")) return "boolean";
if (consume(ID, "byte")) return "byte";
if (consume(ID, "octet")) return "octet";
if (consume("boolean")) return "boolean";
if (consume("byte")) return "byte";
if (consume("octet")) return "octet";
}
function const_value() {
if (consume(ID, "true")) return { type: "boolean", value: true };
if (consume(ID, "false")) return { type: "boolean", value: false };
if (consume(ID, "null")) return { type: "null" };
if (consume(ID, "Infinity")) return { type: "Infinity", negative: false };
if (consume(ID, "NaN")) return { type: "NaN" };
if (consume("true")) return { type: "boolean", value: true };
if (consume("false")) return { type: "boolean", value: false };
if (consume("null")) return { type: "null" };
if (consume("Infinity")) return { type: "Infinity", negative: false };
if (consume("NaN")) return { type: "NaN" };
const ret = consume(FLOAT) || consume(INT);

@@ -229,3 +278,3 @@ if (ret) return { type: "number", value: ret.value };

if (tok) {
if (consume(ID, "Infinity")) return { type: "Infinity", negative: true };
if (consume("Infinity")) return { type: "Infinity", negative: true };
else unconsume(tok);

@@ -297,3 +346,3 @@ }

while (true) {
if (!consume(ID, "or")) break;
if (!consume("or")) break;
const typ = type_with_extended_attributes() || error("No type after 'or' in union type");

@@ -321,3 +370,3 @@ ret.idlType.push(typ);

ret.extAttrs = extended_attrs();
const opt_token = consume(ID, "optional");
const opt_token = consume("optional");
if (opt_token) {

@@ -350,3 +399,4 @@ ret.optional = true;

}
ret.name = name.value;
ret.name = unescape(name.value);
ret.escapedName = name.value;
if (ret.optional) {

@@ -443,3 +493,3 @@ const dflt = default_();

function const_() {
if (!consume(ID, "const")) return;
if (!consume("const")) return;
const ret = { type: "const", nullable: false };

@@ -475,3 +525,4 @@ let typ = primitive_type();

const name = consume(ID);
ret.name = name ? name.value : null;
ret.name = name ? unescape(name.value) : null;
ret.escapedName = name ? name.value : null;
consume(OTHER, "(") || error("Invalid operation");

@@ -486,4 +537,4 @@ ret.arguments = argument_list();

let ret;
if (!consume(ID, "callback")) return;
const tok = consume(ID, "interface");
if (!consume("callback")) return;
const tok = consume("interface");
if (tok) {

@@ -513,3 +564,3 @@ ret = interface_rest(false, "callback interface");

};
if (consume(ID, "inherit")) {
if (consume("inherit")) {
if (ret.static || ret.stringifier) error("Cannot have a static or stringifier inherit");

@@ -519,3 +570,3 @@ ret.inherit = true;

}
if (consume(ID, "readonly")) {
if (consume("readonly")) {
ret.readonly = true;

@@ -532,3 +583,3 @@ grabbed.push(last_token);

function attribute_rest(ret) {
if (!consume(ID, "attribute")) {
if (!consume("attribute")) {
return;

@@ -540,3 +591,4 @@ }

const name = consume(ID) || error("No name in attribute");
ret.name = name.value;
ret.name = unescape(name.value);
ret.escapedName = name.value;
consume(OTHER, ";") || error("Unterminated attribute");

@@ -549,4 +601,4 @@ return ret;

if (!typ) {
if (consume(ID, "void")) {
return "void";
if (consume("void")) {
return Object.assign({ type: "return-type" }, EMPTY_IDLTYPE, { idlType: "void" });
} else error("No return type");

@@ -560,5 +612,5 @@ }

while (true) {
if (consume(ID, "getter")) ret.getter = true;
else if (consume(ID, "setter")) ret.setter = true;
else if (consume(ID, "deleter")) ret.deleter = true;
if (consume("getter")) ret.getter = true;
else if (consume("setter")) ret.setter = true;
else if (consume("deleter")) ret.deleter = true;
else break;

@@ -577,3 +629,3 @@ }

function static_member() {
if (!consume(ID, "static")) return;
if (!consume("static")) return;
return noninherited_attribute("static") ||

@@ -585,3 +637,3 @@ regular_operation("static") ||

function stringifier() {
if (!consume(ID, "stringifier")) return;
if (!consume("stringifier")) return;
if (consume(OTHER, ";")) {

@@ -612,6 +664,6 @@ return Object.assign({}, EMPTY_OPERATION, { stringifier: true });

function iterable_type() {
if (consume(ID, "iterable")) return "iterable";
else if (consume(ID, "legacyiterable")) return "legacyiterable";
else if (consume(ID, "maplike")) return "maplike";
else if (consume(ID, "setlike")) return "setlike";
if (consume("iterable")) return "iterable";
else if (consume("legacyiterable")) return "legacyiterable";
else if (consume("maplike")) return "maplike";
else if (consume("setlike")) return "setlike";
else return;

@@ -621,4 +673,4 @@ }

function readonly_iterable_type() {
if (consume(ID, "maplike")) return "maplike";
else if (consume(ID, "setlike")) return "setlike";
if (consume("maplike")) return "maplike";
else if (consume("setlike")) return "setlike";
else return;

@@ -630,3 +682,3 @@ }

const ret = { type: null, idlType: null, readonly: false };
if (consume(ID, "readonly")) {
if (consume("readonly")) {
ret.readonly = true;

@@ -700,3 +752,3 @@ grabbed.push(last_token);

function mixin_rest(isPartial) {
if (!consume(ID, "mixin")) return;
if (!consume("mixin")) return;
const name = consume(ID) || error("No name for interface mixin");

@@ -733,3 +785,3 @@ const mems = [];

function interface_(isPartial) {
if (!consume(ID, "interface")) return;
if (!consume("interface")) return;
return mixin_rest(isPartial) ||

@@ -741,3 +793,3 @@ interface_rest(isPartial) ||

function namespace(isPartial) {
if (!consume(ID, "namespace")) return;
if (!consume("namespace")) return;
const name = consume(ID) || error("No name for namespace");

@@ -778,3 +830,3 @@ const mems = [];

}
if (consume(ID, "readonly")) {
if (consume("readonly")) {
ret.readonly = true;

@@ -800,3 +852,3 @@ grabbed.push(last_token);

function partial() {
if (!consume(ID, "partial")) return;
if (!consume("partial")) return;
const thing = dictionary(true) ||

@@ -810,3 +862,3 @@ interface_(true) ||

function dictionary(isPartial) {
if (!consume(ID, "dictionary")) return;
if (!consume("dictionary")) return;
const name = consume(ID) || error("No name for dictionary");

@@ -828,3 +880,3 @@ const mems = [];

const ea = extended_attrs();
const required = consume(ID, "required");
const required = consume("required");
const typ = type_with_extended_attributes("dictionary-type") || error("No type for dictionary member");

@@ -836,3 +888,4 @@ const name = consume(ID) || error("No name for dictionary member");

type: "field",
name: name.value,
name: unescape(name.value),
escapedName: name.value,
required: !!required,

@@ -851,3 +904,3 @@ idlType: typ,

function enum_() {
if (!consume(ID, "enum")) return;
if (!consume("enum")) return;
const name = consume(ID) || error("No name for enum");

@@ -885,3 +938,3 @@ const vals = [];

function typedef() {
if (!consume(ID, "typedef")) return;
if (!consume("typedef")) return;
const ret = {

@@ -901,3 +954,3 @@ type: "typedef"

if (!target) return;
if (consume(ID, "implements")) {
if (consume("implements")) {
const ret = {

@@ -920,3 +973,3 @@ type: "implements",

if (!target) return;
if (consume(ID, "includes")) {
if (consume("includes")) {
const ret = {

@@ -923,0 +976,0 @@ type: "includes",

@@ -44,3 +44,3 @@ "use strict";

if (arg.variadic) ret += "...";
ret += ` ${arg.name}`;
ret += ` ${arg.escapedName}`;
if (arg["default"]) ret += ` = ${const_value(arg["default"])}`;

@@ -82,3 +82,3 @@ return ret;

ret += type(it.idlType) + " ";
if (it.name) ret += it.name;
if (it.name) ret += it.escapedName;
ret += `(${args(it["arguments"])});`;

@@ -94,3 +94,3 @@ return ret;

if (it.inherit) ret += "inherit ";
ret += `attribute ${type(it.idlType)} ${it.name};`;
ret += `attribute ${type(it.idlType)} ${it.escapedName};`;
return ret;

@@ -135,3 +135,3 @@ };

if (it.required) ret += "required ";
ret += `${type(it.idlType)} ${it.name}`;
ret += `${type(it.idlType)} ${it.escapedName}`;
if (it["default"]) ret += ` = ${const_value(it["default"])}`;

@@ -138,0 +138,0 @@ ret += ";";

{
"name": "webidl2",
"description": "A WebIDL Parser",
"version": "12.0.0",
"version": "12.1.0",
"contributors": [

@@ -6,0 +6,0 @@ "Robin Berjon <robin@berjon.com> (https://berjon.com)",

{
"message": "Got an error during or right after parsing `interface ReadonlyIterable`: Invalid operation",
"message": "Got an error during or right after parsing `interface ReadonlyIterable`: No return type",
"line": 2
}
{
"message": "Got an error during or right after parsing `interface Widget`: Invalid operation"
"message": "Got an error during or right after parsing `interface Widget`: No return type"
, "line": 14
}

@@ -24,2 +24,3 @@ [

"name": "g",
"escapedName": "g",
"arguments": [],

@@ -45,2 +46,3 @@ "extAttrs": []

"name": "g",
"escapedName": "g",
"arguments": [

@@ -60,3 +62,4 @@ {

},
"name": "b"
"name": "b",
"escapedName": "b"
}

@@ -83,2 +86,3 @@ ],

"name": "g",
"escapedName": "g",
"arguments": [

@@ -105,3 +109,4 @@ {

},
"name": "s"
"name": "s",
"escapedName": "s"
}

@@ -108,0 +113,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "age",
"escapedName": "age",
"extAttrs": []

@@ -25,0 +26,0 @@ }

@@ -28,3 +28,4 @@ [

},
"name": "status"
"name": "status",
"escapedName": "status"
}

@@ -56,2 +57,3 @@ ],

"name": "eventOccurred",
"escapedName": "eventOccurred",
"arguments": [

@@ -71,3 +73,4 @@ {

},
"name": "details"
"name": "details",
"escapedName": "details"
}

@@ -107,3 +110,4 @@ ],

},
"name": "a"
"name": "a",
"escapedName": "a"
},

@@ -123,3 +127,4 @@ {

},
"name": "b"
"name": "b",
"escapedName": "b"
}

@@ -126,0 +131,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "r",
"escapedName": "r",
"extAttrs": []

@@ -42,2 +43,3 @@ },

"name": "cx",
"escapedName": "cx",
"extAttrs": []

@@ -61,2 +63,3 @@ },

"name": "cy",
"escapedName": "cy",
"extAttrs": []

@@ -80,2 +83,3 @@ },

"name": "circumference",
"escapedName": "circumference",
"extAttrs": []

@@ -108,3 +112,4 @@ }

},
"name": "radius"
"name": "radius",
"escapedName": "radius"
}

@@ -111,0 +116,0 @@ ],

@@ -10,2 +10,3 @@ [

"name": "fillPattern",
"escapedName": "fillPattern",
"required": false,

@@ -30,2 +31,3 @@ "idlType": {

"name": "strokePattern",
"escapedName": "strokePattern",
"required": false,

@@ -49,2 +51,3 @@ "idlType": {

"name": "position",
"escapedName": "position",
"required": false,

@@ -74,2 +77,3 @@ "idlType": {

"name": "hydrometry",
"escapedName": "hydrometry",
"required": false,

@@ -76,0 +80,0 @@ "idlType": {

@@ -10,2 +10,3 @@ [

"name": "fillPattern",
"escapedName": "fillPattern",
"required": false,

@@ -30,2 +31,3 @@ "idlType": {

"name": "strokePattern",
"escapedName": "strokePattern",
"required": false,

@@ -49,2 +51,3 @@ "idlType": {

"name": "position",
"escapedName": "position",
"required": false,

@@ -65,2 +68,3 @@ "idlType": {

"name": "seq",
"escapedName": "seq",
"required": false,

@@ -93,2 +97,3 @@ "idlType": {

"name": "reqSeq",
"escapedName": "reqSeq",
"required": true,

@@ -118,2 +123,3 @@ "idlType": {

"name": "h",
"escapedName": "h",
"required": false,

@@ -134,2 +140,3 @@ "idlType": {

"name": "d",
"escapedName": "d",
"required": false,

@@ -136,0 +143,0 @@ "idlType": {

@@ -42,2 +42,3 @@ [

"name": "type",
"escapedName": "type",
"extAttrs": []

@@ -61,2 +62,3 @@ },

"name": "size",
"escapedName": "size",
"extAttrs": []

@@ -81,2 +83,3 @@ },

"name": "initialize",
"escapedName": "initialize",
"arguments": [

@@ -96,3 +99,4 @@ {

},
"name": "type"
"name": "type",
"escapedName": "type"
},

@@ -112,3 +116,4 @@ {

},
"name": "size"
"name": "size",
"escapedName": "size"
}

@@ -115,0 +120,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "propertyCount",
"escapedName": "propertyCount",
"extAttrs": []

@@ -43,2 +44,3 @@ },

"name": "getProperty",
"escapedName": "getProperty",
"arguments": [

@@ -58,3 +60,4 @@ {

},
"name": "propertyName"
"name": "propertyName",
"escapedName": "propertyName"
}

@@ -81,2 +84,3 @@ ],

"name": "setProperty",
"escapedName": "setProperty",
"arguments": [

@@ -96,3 +100,4 @@ {

},
"name": "propertyName"
"name": "propertyName",
"escapedName": "propertyName"
},

@@ -112,3 +117,4 @@ {

},
"name": "propertyValue"
"name": "propertyValue",
"escapedName": "propertyValue"
}

@@ -143,2 +149,3 @@ ],

"name": "propertyCount",
"escapedName": "propertyCount",
"extAttrs": []

@@ -163,2 +170,3 @@ },

"name": "getProperty",
"escapedName": "getProperty",
"arguments": [

@@ -178,3 +186,4 @@ {

},
"name": "propertyName"
"name": "propertyName",
"escapedName": "propertyName"
}

@@ -201,2 +210,3 @@ ],

"name": "setProperty",
"escapedName": "setProperty",
"arguments": [

@@ -216,3 +226,4 @@ {

},
"name": "propertyName"
"name": "propertyName",
"escapedName": "propertyName"
},

@@ -232,3 +243,4 @@ {

},
"name": "propertyValue"
"name": "propertyValue",
"escapedName": "propertyValue"
}

@@ -255,2 +267,3 @@ ],

"name": null,
"escapedName": null,
"arguments": [

@@ -270,3 +283,4 @@ {

},
"name": "propertyName"
"name": "propertyName",
"escapedName": "propertyName"
}

@@ -293,2 +307,3 @@ ],

"name": null,
"escapedName": null,
"arguments": [

@@ -308,3 +323,4 @@ {

},
"name": "propertyName"
"name": "propertyName",
"escapedName": "propertyName"
},

@@ -324,3 +340,4 @@ {

},
"name": "propertyValue"
"name": "propertyValue",
"escapedName": "propertyValue"
}

@@ -327,0 +344,0 @@ ],

@@ -89,2 +89,3 @@ [

"name": "r",
"escapedName": "r",
"extAttrs": []

@@ -108,2 +109,3 @@ },

"name": "cx",
"escapedName": "cx",
"extAttrs": []

@@ -127,2 +129,3 @@ },

"name": "cy",
"escapedName": "cy",
"extAttrs": []

@@ -146,2 +149,3 @@ },

"name": "circumference",
"escapedName": "circumference",
"extAttrs": []

@@ -174,3 +178,4 @@ }

},
"name": "radius"
"name": "radius",
"escapedName": "radius"
}

@@ -230,2 +235,3 @@ ],

"name": "attrib",
"escapedName": "attrib",
"extAttrs": []

@@ -232,0 +238,0 @@ }

@@ -48,2 +48,3 @@ [

"name": "bar",
"escapedName": "bar",
"arguments": [],

@@ -76,2 +77,3 @@ "extAttrs": []

"name": "baz",
"escapedName": "baz",
"extAttrs": []

@@ -113,2 +115,3 @@ }

"name": "getServiced",
"escapedName": "getServiced",
"arguments": [],

@@ -142,2 +145,3 @@ "extAttrs": []

"name": "reloadAll",
"escapedName": "reloadAll",
"arguments": [],

@@ -180,2 +184,3 @@ "extAttrs": []

"name": "default",
"escapedName": "default",
"arguments": [],

@@ -182,0 +187,0 @@ "extAttrs": []

@@ -23,2 +23,3 @@ [

"name": "propertyCount",
"escapedName": "propertyCount",
"extAttrs": []

@@ -43,2 +44,3 @@ },

"name": null,
"escapedName": null,
"arguments": [

@@ -58,3 +60,4 @@ {

},
"name": "propertyName"
"name": "propertyName",
"escapedName": "propertyName"
}

@@ -81,2 +84,3 @@ ],

"name": null,
"escapedName": null,
"arguments": [

@@ -96,3 +100,4 @@ {

},
"name": "propertyName"
"name": "propertyName",
"escapedName": "propertyName"
},

@@ -112,3 +117,4 @@ {

},
"name": "propertyValue"
"name": "propertyValue",
"escapedName": "propertyValue"
}

@@ -115,0 +121,0 @@ ],

@@ -38,2 +38,3 @@ [

"name": "createObject",
"escapedName": "createObject",
"arguments": [

@@ -53,3 +54,4 @@ {

},
"name": "interface"
"name": "interface",
"escapedName": "_interface"
}

@@ -76,2 +78,3 @@ ],

"name": null,
"escapedName": null,
"arguments": [

@@ -91,3 +94,4 @@ {

},
"name": "keyName"
"name": "keyName",
"escapedName": "keyName"
}

@@ -122,2 +126,3 @@ ],

"name": "const",
"escapedName": "_const",
"extAttrs": []

@@ -141,2 +146,3 @@ },

"name": "value",
"escapedName": "_value",
"extAttrs": []

@@ -147,48 +153,3 @@ }

"extAttrs": []
},
{
"type": "interface",
"name": "Foo",
"partial": false,
"members": [
{
"type": "operation",
"getter": false,
"setter": false,
"deleter": false,
"static": false,
"stringifier": false,
"idlType": {
"type": "return-type",
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "void",
"extAttrs": []
},
"name": "op",
"arguments": [
{
"optional": false,
"variadic": false,
"extAttrs": [],
"idlType": {
"type": "argument-type",
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "object",
"extAttrs": []
},
"name": "interface"
}
],
"extAttrs": []
}
],
"inheritance": null,
"extAttrs": []
}
]

@@ -23,2 +23,3 @@ [

"name": "nodeType",
"escapedName": "nodeType",
"extAttrs": []

@@ -52,2 +53,3 @@ }

"name": "addEventListener",
"escapedName": "addEventListener",
"arguments": [

@@ -67,3 +69,4 @@ {

},
"name": "type"
"name": "type",
"escapedName": "type"
},

@@ -83,3 +86,4 @@ {

},
"name": "listener"
"name": "listener",
"escapedName": "listener"
},

@@ -99,3 +103,4 @@ {

},
"name": "useCapture"
"name": "useCapture",
"escapedName": "useCapture"
}

@@ -102,0 +107,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "size",
"escapedName": "size",
"extAttrs": []

@@ -43,2 +44,3 @@ },

"name": "getByIndex",
"escapedName": "getByIndex",
"arguments": [

@@ -58,3 +60,4 @@ {

},
"name": "index"
"name": "index",
"escapedName": "index"
}

@@ -81,2 +84,3 @@ ],

"name": "setByIndex",
"escapedName": "setByIndex",
"arguments": [

@@ -96,3 +100,4 @@ {

},
"name": "index"
"name": "index",
"escapedName": "index"
},

@@ -112,3 +117,4 @@ {

},
"name": "value"
"name": "value",
"escapedName": "value"
}

@@ -135,2 +141,3 @@ ],

"name": "removeByIndex",
"escapedName": "removeByIndex",
"arguments": [

@@ -150,3 +157,4 @@ {

},
"name": "index"
"name": "index",
"escapedName": "index"
}

@@ -173,2 +181,3 @@ ],

"name": "get",
"escapedName": "get",
"arguments": [

@@ -188,3 +197,4 @@ {

},
"name": "name"
"name": "name",
"escapedName": "name"
}

@@ -211,2 +221,3 @@ ],

"name": "set",
"escapedName": "set",
"arguments": [

@@ -226,3 +237,4 @@ {

},
"name": "name"
"name": "name",
"escapedName": "name"
},

@@ -242,3 +254,4 @@ {

},
"name": "value"
"name": "value",
"escapedName": "value"
}

@@ -265,2 +278,3 @@ ],

"name": "remove",
"escapedName": "remove",
"arguments": [

@@ -280,3 +294,4 @@ {

},
"name": "name"
"name": "name",
"escapedName": "name"
}

@@ -283,0 +298,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "name",
"escapedName": "name",
"extAttrs": []

@@ -51,2 +52,3 @@ }

"name": "age",
"escapedName": "age",
"extAttrs": []

@@ -70,2 +72,3 @@ },

"name": "name",
"escapedName": "name",
"extAttrs": []

@@ -72,0 +75,0 @@ }

@@ -23,2 +23,3 @@ [

"name": "name",
"escapedName": "name",
"extAttrs": []

@@ -51,2 +52,3 @@ }

"name": "pet",
"escapedName": "pet",
"extAttrs": []

@@ -79,2 +81,3 @@ }

"name": "owner",
"escapedName": "owner",
"extAttrs": []

@@ -81,0 +84,0 @@ }

@@ -23,2 +23,3 @@ [

"name": "crypto",
"escapedName": "crypto",
"extAttrs": []

@@ -62,2 +63,3 @@ }

"name": "crypto",
"escapedName": "crypto",
"extAttrs": []

@@ -64,0 +66,0 @@ }

@@ -34,3 +34,4 @@ [

},
"name": "src"
"name": "src",
"escapedName": "src"
}

@@ -37,0 +38,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "unit",
"escapedName": "unit",
"extAttrs": []

@@ -43,2 +44,3 @@ },

"name": "dotProduct",
"escapedName": "dotProduct",
"arguments": [

@@ -58,3 +60,4 @@ {

},
"name": "x"
"name": "x",
"escapedName": "x"
},

@@ -74,3 +77,4 @@ {

},
"name": "y"
"name": "y",
"escapedName": "y"
}

@@ -97,2 +101,3 @@ ],

"name": "crossProduct",
"escapedName": "crossProduct",
"arguments": [

@@ -112,3 +117,4 @@ {

},
"name": "x"
"name": "x",
"escapedName": "x"
},

@@ -128,3 +134,4 @@ {

},
"name": "y"
"name": "y",
"escapedName": "y"
}

@@ -131,0 +138,0 @@ ],

@@ -24,2 +24,3 @@ [

"name": "lookupEntry",
"escapedName": "lookupEntry",
"arguments": [

@@ -39,3 +40,4 @@ {

},
"name": "key"
"name": "key",
"escapedName": "key"
}

@@ -42,0 +44,0 @@ ],

@@ -51,2 +51,3 @@ [

"name": "namespaceURI",
"escapedName": "namespaceURI",
"extAttrs": []

@@ -53,0 +54,0 @@ }

@@ -40,2 +40,3 @@ [

"name": "f",
"escapedName": "f",
"arguments": [

@@ -55,3 +56,4 @@ {

},
"name": "x"
"name": "x",
"escapedName": "x"
}

@@ -78,2 +80,3 @@ ],

"name": "f",
"escapedName": "f",
"arguments": [

@@ -93,3 +96,4 @@ {

},
"name": "x"
"name": "x",
"escapedName": "x"
}

@@ -96,0 +100,0 @@ ],

@@ -24,2 +24,3 @@ [

"name": "createColor",
"escapedName": "createColor",
"arguments": [

@@ -39,3 +40,4 @@ {

},
"name": "v1"
"name": "v1",
"escapedName": "v1"
},

@@ -55,3 +57,4 @@ {

},
"name": "v2"
"name": "v2",
"escapedName": "v2"
},

@@ -71,3 +74,4 @@ {

},
"name": "v3"
"name": "v3",
"escapedName": "v3"
},

@@ -88,2 +92,3 @@ {

"name": "alpha",
"escapedName": "alpha",
"default": {

@@ -90,0 +95,0 @@ "type": "number",

@@ -40,2 +40,3 @@ [

"name": "f",
"escapedName": "f",
"arguments": [

@@ -55,3 +56,4 @@ {

},
"name": "x"
"name": "x",
"escapedName": "x"
}

@@ -78,2 +80,3 @@ ],

"name": "f",
"escapedName": "f",
"arguments": [

@@ -93,3 +96,4 @@ {

},
"name": "x"
"name": "x",
"escapedName": "x"
}

@@ -125,2 +129,3 @@ ],

"name": "f",
"escapedName": "f",
"arguments": [

@@ -140,3 +145,4 @@ {

},
"name": "a"
"name": "a",
"escapedName": "a"
}

@@ -163,2 +169,3 @@ ],

"name": "f",
"escapedName": "f",
"arguments": [

@@ -185,3 +192,4 @@ {

},
"name": "a"
"name": "a",
"escapedName": "a"
},

@@ -201,3 +209,4 @@ {

},
"name": "b"
"name": "b",
"escapedName": "b"
},

@@ -217,3 +226,4 @@ {

},
"name": "c"
"name": "c",
"escapedName": "c"
}

@@ -240,2 +250,3 @@ ],

"name": "f",
"escapedName": "f",
"arguments": [],

@@ -261,2 +272,3 @@ "extAttrs": []

"name": "f",
"escapedName": "f",
"arguments": [

@@ -276,3 +288,4 @@ {

},
"name": "a"
"name": "a",
"escapedName": "a"
},

@@ -292,3 +305,4 @@ {

},
"name": "b"
"name": "b",
"escapedName": "b"
},

@@ -308,3 +322,4 @@ {

},
"name": "c"
"name": "c",
"escapedName": "c"
},

@@ -324,3 +339,4 @@ {

},
"name": "d"
"name": "d",
"escapedName": "d"
}

@@ -327,0 +343,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "length",
"escapedName": "length",
"extAttrs": []

@@ -43,2 +44,3 @@ },

"name": "lookup",
"escapedName": "lookup",
"arguments": [

@@ -58,3 +60,4 @@ {

},
"name": "key"
"name": "key",
"escapedName": "key"
}

@@ -61,0 +64,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "bar",
"escapedName": "bar",
"extAttrs": []

@@ -51,2 +52,3 @@ }

"name": "quux",
"escapedName": "quux",
"extAttrs": []

@@ -53,0 +55,0 @@ }

@@ -23,2 +23,3 @@ [

"name": "truth",
"escapedName": "truth",
"extAttrs": []

@@ -42,2 +43,3 @@ },

"name": "character",
"escapedName": "character",
"extAttrs": []

@@ -61,2 +63,3 @@ },

"name": "value",
"escapedName": "value",
"extAttrs": []

@@ -80,2 +83,3 @@ },

"name": "number",
"escapedName": "number",
"extAttrs": []

@@ -99,2 +103,3 @@ },

"name": "positive",
"escapedName": "positive",
"extAttrs": []

@@ -118,2 +123,3 @@ },

"name": "big",
"escapedName": "big",
"extAttrs": []

@@ -137,2 +143,3 @@ },

"name": "bigpositive",
"escapedName": "bigpositive",
"extAttrs": []

@@ -156,2 +163,3 @@ },

"name": "bigbig",
"escapedName": "bigbig",
"extAttrs": []

@@ -175,2 +183,3 @@ },

"name": "bigbigpositive",
"escapedName": "bigbigpositive",
"extAttrs": []

@@ -194,2 +203,3 @@ },

"name": "real",
"escapedName": "real",
"extAttrs": []

@@ -213,2 +223,3 @@ },

"name": "bigreal",
"escapedName": "bigreal",
"extAttrs": []

@@ -232,2 +243,3 @@ },

"name": "realwithinfinity",
"escapedName": "realwithinfinity",
"extAttrs": []

@@ -251,2 +263,3 @@ },

"name": "bigrealwithinfinity",
"escapedName": "bigrealwithinfinity",
"extAttrs": []

@@ -270,2 +283,3 @@ },

"name": "string",
"escapedName": "string",
"extAttrs": []

@@ -289,2 +303,3 @@ },

"name": "bytes",
"escapedName": "bytes",
"extAttrs": []

@@ -308,2 +323,3 @@ },

"name": "date",
"escapedName": "date",
"extAttrs": []

@@ -327,2 +343,3 @@ },

"name": "regexp",
"escapedName": "regexp",
"extAttrs": []

@@ -329,0 +346,0 @@ }

@@ -23,2 +23,3 @@ [

"name": "nodeType",
"escapedName": "nodeType",
"extAttrs": []

@@ -25,0 +26,0 @@ }

@@ -23,2 +23,3 @@ [

"name": "name",
"escapedName": "name",
"extAttrs": [

@@ -52,2 +53,3 @@ {

"name": "age",
"escapedName": "age",
"extAttrs": []

@@ -54,0 +56,0 @@ }

@@ -24,2 +24,3 @@ [

"name": "foo",
"escapedName": "foo",
"arguments": [

@@ -66,3 +67,4 @@ {

},
"name": "param"
"name": "param",
"escapedName": "param"
}

@@ -127,2 +129,3 @@ ],

"name": "bar",
"escapedName": "bar",
"arguments": [],

@@ -148,2 +151,3 @@ "extAttrs": []

"name": "baz",
"escapedName": "baz",
"arguments": [],

@@ -190,3 +194,4 @@ "extAttrs": []

},
"name": "init"
"name": "init",
"escapedName": "init"
}

@@ -247,2 +252,3 @@ ],

"name": "bar",
"escapedName": "bar",
"arguments": [],

@@ -249,0 +255,0 @@ "extAttrs": []

@@ -23,2 +23,3 @@ [

"name": "width",
"escapedName": "width",
"extAttrs": []

@@ -42,2 +43,3 @@ },

"name": "height",
"escapedName": "height",
"extAttrs": []

@@ -71,2 +73,3 @@ }

"name": "isMouseOver",
"escapedName": "isMouseOver",
"arguments": [],

@@ -92,2 +95,3 @@ "extAttrs": []

"name": "setDimensions",
"escapedName": "setDimensions",
"arguments": [

@@ -107,3 +111,4 @@ {

},
"name": "size"
"name": "size",
"escapedName": "size"
}

@@ -130,2 +135,3 @@ ],

"name": "setDimensions",
"escapedName": "setDimensions",
"arguments": [

@@ -145,3 +151,4 @@ {

},
"name": "width"
"name": "width",
"escapedName": "width"
},

@@ -161,3 +168,4 @@ {

},
"name": "height"
"name": "height",
"escapedName": "height"
}

@@ -164,0 +172,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "value",
"escapedName": "value",
"extAttrs": [

@@ -50,2 +51,3 @@ {

"name": "increment",
"escapedName": "increment",
"arguments": [],

@@ -52,0 +54,0 @@ "extAttrs": []

@@ -24,2 +24,3 @@ [

"name": "drawPolygon",
"escapedName": "drawPolygon",
"arguments": [

@@ -47,3 +48,4 @@ {

},
"name": "coordinates"
"name": "coordinates",
"escapedName": "coordinates"
}

@@ -78,2 +80,3 @@ ],

"name": "getInflectionPoints",
"escapedName": "getInflectionPoints",
"arguments": [],

@@ -108,2 +111,3 @@ "extAttrs": []

"name": "bar",
"escapedName": "bar",
"arguments": [],

@@ -138,2 +142,3 @@ "extAttrs": []

"name": "f1",
"escapedName": "f1",
"arguments": [

@@ -168,3 +173,4 @@ {

},
"name": "arg"
"name": "arg",
"escapedName": "arg"
}

@@ -171,0 +177,0 @@ ],

@@ -31,2 +31,3 @@ [

"name": "cx",
"escapedName": "cx",
"extAttrs": []

@@ -50,2 +51,3 @@ },

"name": "cy",
"escapedName": "cy",
"extAttrs": []

@@ -69,2 +71,3 @@ },

"name": "radius",
"escapedName": "radius",
"extAttrs": []

@@ -88,2 +91,3 @@ },

"name": "triangulationCount",
"escapedName": "triangulationCount",
"extAttrs": []

@@ -108,2 +112,3 @@ },

"name": "triangulate",
"escapedName": "triangulate",
"arguments": [

@@ -123,3 +128,4 @@ {

},
"name": "c1"
"name": "c1",
"escapedName": "c1"
},

@@ -139,3 +145,4 @@ {

},
"name": "c2"
"name": "c2",
"escapedName": "c2"
},

@@ -155,3 +162,4 @@ {

},
"name": "c3"
"name": "c3",
"escapedName": "c3"
}

@@ -158,0 +166,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "id",
"escapedName": "id",
"extAttrs": []

@@ -42,2 +43,3 @@ },

"name": "name",
"escapedName": "name",
"extAttrs": []

@@ -44,0 +46,0 @@ }

@@ -23,2 +23,3 @@ [

"name": "id",
"escapedName": "id",
"extAttrs": []

@@ -42,2 +43,3 @@ },

"name": "familyName",
"escapedName": "familyName",
"extAttrs": []

@@ -61,2 +63,3 @@ },

"name": "givenName",
"escapedName": "givenName",
"extAttrs": []

@@ -81,2 +84,3 @@ },

"name": null,
"escapedName": null,
"arguments": [],

@@ -83,0 +87,0 @@ "extAttrs": []

@@ -24,2 +24,3 @@ [

"name": null,
"escapedName": null,
"arguments": [],

@@ -26,0 +27,0 @@ "extAttrs": []

@@ -23,2 +23,3 @@ [

"name": "name",
"escapedName": "name",
"extAttrs": []

@@ -42,2 +43,3 @@ },

"name": "owner",
"escapedName": "owner",
"extAttrs": []

@@ -62,2 +64,3 @@ },

"name": "isMemberOfBreed",
"escapedName": "isMemberOfBreed",
"arguments": [

@@ -87,3 +90,4 @@ {

},
"name": "breedName"
"name": "breedName",
"escapedName": "breedName"
}

@@ -90,0 +94,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "name",
"escapedName": "name",
"extAttrs": []

@@ -42,2 +43,3 @@ },

"name": "owner",
"escapedName": "owner",
"extAttrs": []

@@ -62,2 +64,3 @@ },

"name": "isMemberOfBreed",
"escapedName": "isMemberOfBreed",
"arguments": [

@@ -87,3 +90,4 @@ {

},
"name": "breedName"
"name": "breedName",
"escapedName": "breedName"
}

@@ -90,0 +94,0 @@ ],

@@ -23,2 +23,3 @@ [

"name": "x",
"escapedName": "x",
"extAttrs": []

@@ -42,2 +43,3 @@ },

"name": "y",
"escapedName": "y",
"extAttrs": []

@@ -92,2 +94,3 @@ }

"name": "topleft",
"escapedName": "topleft",
"extAttrs": []

@@ -111,2 +114,3 @@ },

"name": "bottomright",
"escapedName": "bottomright",
"extAttrs": []

@@ -139,2 +143,3 @@ }

"name": "bounds",
"escapedName": "bounds",
"extAttrs": []

@@ -159,2 +164,3 @@ },

"name": "pointWithinBounds",
"escapedName": "pointWithinBounds",
"arguments": [

@@ -174,3 +180,4 @@ {

},
"name": "p"
"name": "p",
"escapedName": "p"
}

@@ -197,2 +204,3 @@ ],

"name": "allPointsWithinBounds",
"escapedName": "allPointsWithinBounds",
"arguments": [

@@ -212,3 +220,4 @@ {

},
"name": "ps"
"name": "ps",
"escapedName": "ps"
}

@@ -215,0 +224,0 @@ ],

@@ -24,2 +24,3 @@ [

"name": "test",
"escapedName": "test",
"arguments": [

@@ -47,3 +48,4 @@ {

},
"name": "foo"
"name": "foo",
"escapedName": "foo"
}

@@ -50,0 +52,0 @@ ],

@@ -89,2 +89,3 @@ [

"name": "test",
"escapedName": "test",
"extAttrs": []

@@ -134,2 +135,3 @@ },

"name": "test2",
"escapedName": "test2",
"extAttrs": []

@@ -136,0 +138,0 @@ }

@@ -23,2 +23,3 @@ [

"name": "cardinality",
"escapedName": "cardinality",
"extAttrs": []

@@ -43,2 +44,3 @@ },

"name": "union",
"escapedName": "union",
"arguments": [

@@ -58,3 +60,4 @@ {

},
"name": "ints"
"name": "ints",
"escapedName": "ints"
}

@@ -81,2 +84,3 @@ ],

"name": "intersection",
"escapedName": "intersection",
"arguments": [

@@ -96,3 +100,4 @@ {

},
"name": "ints"
"name": "ints",
"escapedName": "ints"
}

@@ -99,0 +104,0 @@ ],

Sorry, the diff of this file is not supported yet

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