Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 6.0.0 to 6.0.1

6

lib/constructs/interface.js

@@ -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",

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