Socket
Socket
Sign inDemoInstall

webidl2js

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webidl2js - npm Package Compare versions

Comparing version 7.1.0 to 7.1.1

10

lib/constructs/attribute.js

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

}
let getterBody = `return utils.tryWrapperForImpl(${objName}[impl].${this.idl.name});`;
let setterBody = `${objName}[impl].${this.idl.name} = V;`;
let getterBody = `return utils.tryWrapperForImpl(${objName}[impl]["${this.idl.name}"]);`;
let setterBody = `${objName}[impl]["${this.idl.name}"] = V;`;
if (conversions[this.idl.idlType.idlType]) {
getterBody = `return ${objName}[impl].${this.idl.name};`;
getterBody = `return ${objName}[impl]["${this.idl.name}"];`;
}
if (this.idl.static) {
getterBody = `return Impl.${this.idl.name};`;
setterBody = `Impl.${this.idl.name} = V;`;
getterBody = `return Impl["${this.idl.name}"];`;
setterBody = `Impl["${this.idl.name}"] = V;`;
} else if (shouldReflect) {

@@ -41,0 +41,0 @@ if (!reflector[this.idl.idlType.idlType]) {

{
"name": "webidl2js",
"version": "7.1.0",
"version": "7.1.1",
"description": "Auto-generates class structures for WebIDL specifications",

@@ -9,8 +9,8 @@ "main": "lib/transformer.js",

"pn": "^1.0.0",
"prettier": "^1.3.1",
"prettier": "^1.5.2",
"webidl-conversions": "^4.0.0",
"webidl2": "^2.2.2"
"webidl2": "^4.0.0"
},
"devDependencies": {
"jest": "^20.0.0"
"jest": "^20.0.4"
},

@@ -17,0 +17,0 @@ "scripts": {

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