Comparing version 7.1.0 to 7.1.1
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60084
+ Addedwebidl2@4.2.0(transitive)
- Removedwebidl2@2.4.0(transitive)
Updatedprettier@^1.5.2
Updatedwebidl2@^4.0.0