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 10.3.0 to 10.3.1

17

lib/webidl2.js

@@ -115,2 +115,11 @@ "use strict";

const EMPTY_IDLTYPE = Object.freeze({
sequence: false,
generic: null,
nullable: false,
union: false,
idlType: null,
extAttrs: []
});
function error(str) {

@@ -124,3 +133,3 @@ let tok = "";

}
let message;

@@ -276,3 +285,3 @@ if (current) {

const prim = primitive_type();
const ret = { type: typeName || null, sequence: false, generic: null, nullable: false, union: false, extAttrs: [] };
const ret = Object.assign({ type: typeName || null }, EMPTY_IDLTYPE);
let name;

@@ -329,3 +338,3 @@ let value;

if (!consume(OTHER, "(")) return;
const ret = { type: typeName || null, sequence: false, generic: null, nullable: false, union: true, idlType: [], extAttrs: [] };
const ret = Object.assign({ type: typeName || null }, EMPTY_IDLTYPE, { union: true, idlType: [] });
const fst = type_with_extended_attributes() || error("Union type with no content");

@@ -513,3 +522,3 @@ ret.idlType.push(fst);

}
ret.idlType = { type: "const-type", idlType: typ };
ret.idlType = Object.assign({ type: "const-type" }, EMPTY_IDLTYPE, { idlType: typ });
all_ws();

@@ -516,0 +525,0 @@ if (consume(OTHER, "?")) {

{
"name": "webidl2",
"description": "A WebIDL Parser",
"version": "10.3.0",
"version": "10.3.1",
"contributors": [

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

@@ -223,3 +223,4 @@

"union": false,
"idlType": "void"
"idlType": "void",
"extAttrs": []
},

@@ -258,3 +259,4 @@ "arguments": [...],

"union": false,
"idlType": "DOMString"
"idlType": "DOMString",
"extAttrs": [...]
},

@@ -333,4 +335,6 @@ "extAttrs": [],

"union": false,
"idlType": "Point"
}
"idlType": "Point",
"extAttrs": [...]
},
"extAttrs": [...]
},

@@ -407,3 +411,4 @@ "name": "PointSequence",

"union": false,
"idlType": "void"
"idlType": "void",
"extAttrs": []
},

@@ -421,3 +426,4 @@ "name": "intersection",

"union": false,
"idlType": "long"
"idlType": "long",
"extAttrs": [...]
},

@@ -460,3 +466,4 @@ "name": "ints"

"union": false,
"idlType": "RegExp"
"idlType": "RegExp",
"extAttrs": [...]
},

@@ -489,3 +496,8 @@ "name": "regexp",

"type": "const-type",
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "boolean"
"extAttrs": []
},

@@ -526,3 +538,4 @@ "name": "DEBUG",

"union": false,
"idlType": "long"
"idlType": "long",
"extAttrs": [...]
},

@@ -529,0 +542,0 @@ "name": "ints"

@@ -12,3 +12,8 @@ [

"type": "const-type",
"idlType": "boolean"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "boolean",
"extAttrs": []
},

@@ -27,3 +32,8 @@ "name": "DEBUG",

"type": "const-type",
"idlType": "short"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "short",
"extAttrs": []
},

@@ -42,3 +52,8 @@ "name": "negative",

"type": "const-type",
"idlType": "octet"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "octet",
"extAttrs": []
},

@@ -57,3 +72,8 @@ "name": "LF",

"type": "const-type",
"idlType": "unsigned long"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "unsigned long",
"extAttrs": []
},

@@ -72,3 +92,8 @@ "name": "BIT_MASK",

"type": "const-type",
"idlType": "float"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "float",
"extAttrs": []
},

@@ -87,3 +112,8 @@ "name": "AVOGADRO",

"type": "const-type",
"idlType": "unrestricted float"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "unrestricted float",
"extAttrs": []
},

@@ -102,3 +132,8 @@ "name": "sobig",

"type": "const-type",
"idlType": "unrestricted double"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "unrestricted double",
"extAttrs": []
},

@@ -117,3 +152,8 @@ "name": "minusonedividedbyzero",

"type": "const-type",
"idlType": "short"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "short",
"extAttrs": []
},

@@ -120,0 +160,0 @@ "name": "notanumber",

@@ -12,3 +12,8 @@ [

"type": "const-type",
"idlType": "boolean"
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "boolean",
"extAttrs": []
},

@@ -15,0 +20,0 @@ "name": "ARE_WE_THERE_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