🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

webidl2

Package Overview
Dependencies
Maintainers
2
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

to
4.1.0

CHANGELOG.md

5

lib/webidl2.js

@@ -198,3 +198,3 @@ (function() {

all_ws();
types.push(type() || error("Error parsing generic type " + value));
types.push(type_with_extended_attributes() || error("Error parsing generic type " + value));
all_ws();

@@ -210,2 +210,5 @@ }

}
if (types[0].extAttrs) error("Record key cannot have extended attribute");
} else if (value === "Promise") {
if (types[0].extAttrs) error("Promise type cannot have extended attribute");
}

@@ -212,0 +215,0 @@ ret.idlType = types.length === 1 ? types[0] : types;

2

package.json
{
"name": "webidl2",
"description": "A WebIDL Parser",
"version": "4.0.0",
"version": "4.1.0",
"contributors": [

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

@@ -50,4 +50,30 @@ [

"extAttrs": []
},
{
"type": "interface",
"name": "IterableThree",
"partial": false,
"members": [
{
"type": "iterable",
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "long",
"extAttrs": [
{
"name": "XAttr",
"arguments": null
}
]
},
"extAttrs": []
}
],
"inheritance": null,
"extAttrs": []
}
]

@@ -61,4 +61,46 @@ [

"extAttrs": []
},
{
"type": "interface",
"name": "I",
"partial": false,
"members": [
{
"type": "maplike",
"idlType": [
{
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "DOMString",
"extAttrs": [
{
"name": "XAttr2",
"arguments": null
}
]
},
{
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "long",
"extAttrs": [
{
"name": "XAttr3",
"arguments": null
}
]
}
],
"readonly": false,
"extAttrs": []
}
],
"inheritance": null,
"extAttrs": []
}
]

@@ -169,3 +169,53 @@ [

]
},
{
"type": "interface",
"name": "Bar",
"partial": false,
"members": [
{
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"idlType": {
"sequence": false,
"generic": "record",
"nullable": false,
"union": false,
"idlType": [
{
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "DOMString"
},
{
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "float",
"extAttrs": [
{
"name": "XAttr",
"arguments": null
}
]
}
]
},
"name": "bar",
"arguments": [],
"extAttrs": []
}
],
"inheritance": null,
"extAttrs": []
}
]

@@ -106,3 +106,59 @@ [

"extAttrs": []
}
},
{
"type": "interface",
"name": "I",
"partial": false,
"members": [
{
"type": "operation",
"getter": false,
"setter": false,
"creator": false,
"deleter": false,
"legacycaller": false,
"static": false,
"stringifier": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "void"
},
"name": "f1",
"arguments": [
{
"optional": false,
"variadic": false,
"extAttrs": [],
"idlType": {
"sequence": true,
"generic": "sequence",
"nullable": false,
"union": false,
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "long",
"extAttrs": [
{
"name": "XAttr",
"arguments": null
}
]
}
},
"name": "arg"
}
],
"extAttrs": []
}
],
"inheritance": null,
"extAttrs": []
}
]

@@ -43,4 +43,31 @@ [

"extAttrs": []
},
{
"type": "interface",
"name": "SetLikeExt",
"partial": false,
"members": [
{
"type": "setlike",
"idlType": {
"sequence": false,
"generic": null,
"nullable": false,
"union": false,
"idlType": "long",
"extAttrs": [
{
"name": "XAttr",
"arguments": null
}
]
},
"readonly": false,
"extAttrs": []
}
],
"inheritance": null,
"extAttrs": []
}
]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet