Comparing version 3.0.0 to 3.0.1
@@ -43,2 +43,3 @@ "use strict"; | ||
minConstructor.nameList = minConstructor.nameList.map((name) => (keywords.has(name) ? "_" : "") + name); | ||
this.str += `function ${this.name}(${minConstructor.nameList.join(", ")}) {`; | ||
@@ -45,0 +46,0 @@ if (minConstructor.nameList.length !== 0) { |
@@ -35,2 +35,3 @@ "use strict"; | ||
const fnName = keywords.has(name) ? "_" : name; | ||
minConstructor.nameList = minConstructor.nameList.map((name) => (keywords.has(name) ? "_" : "") + name); | ||
@@ -37,0 +38,0 @@ str += `\n${this.obj.name + targetObj}.${name} = function ${fnName}(${minConstructor.nameList.join(", ")}) {`; |
{ | ||
"name": "webidl2js", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Auto-generates class structures for WebIDL specifications", | ||
@@ -5,0 +5,0 @@ "main": "index.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
28825
822