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

protoduck

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protoduck - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

24

index.js

@@ -75,2 +75,26 @@ 'use strict'

Protocol.hasImpl = function (proto, arg, args) {
args = args || []
if (Object.getPrototypeOf(arg) === Array.prototype) {
args = arg
arg = null
}
var fns = proto._methodNames
var gf
for (var i = 0; i < fns.length; i++) {
if (arg) {
gf = arg[fns[i]]
} else {
gf = proto[fns[i]]
}
if (!gf ||
(gf.hasMethod
? !gf.hasMethod.apply(gf, args)
: typeof gf === 'function')) {
return false
}
}
return true
}
Protocol.impl = function (proto, target, types, implementations) {

@@ -77,0 +101,0 @@ if (Object.getPrototypeOf(target) === Array.prototype) {

2

package.json
{
"name": "protoduck",
"version": "3.2.0",
"version": "3.3.0",
"description": "Fancy duck typing for the most serious of ducks.",

@@ -5,0 +5,0 @@ "main": "index.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