Comparing version 6.0.0 to 6.0.1
@@ -121,3 +121,3 @@ "use strict"; | ||
this.str += `Object.setPrototypeOf(${this.name}.prototype, ${this.idl.inheritance}.interface.prototype); | ||
Object.setPrototypeOf(${this.name}, ${this.idl.inheritance}.name);\n`; | ||
Object.setPrototypeOf(${this.name}, ${this.idl.inheritance}.interface);\n`; | ||
} | ||
@@ -380,7 +380,5 @@ }; | ||
if (this.factory) { | ||
// TODO: use default function parameters when jsdom requires Node >=6 | ||
this.str += ` | ||
module.exports = { | ||
createInterface: function (defaultPrivateData) { | ||
defaultPrivateData = defaultPrivateData === undefined ? {} : defaultPrivateData;\n\n`; | ||
createInterface: function (defaultPrivateData = {}) {\n\n`; | ||
} | ||
@@ -387,0 +385,0 @@ |
{ | ||
"name": "webidl2js", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Auto-generates class structures for WebIDL specifications", | ||
@@ -5,0 +5,0 @@ "main": "lib/transformer.js", |
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
40673
1191