Socket
Socket
Sign inDemoInstall

autobind-decorator

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autobind-decorator - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

14

lib/index.js

@@ -39,3 +39,15 @@ 'use strict';

// (Using reflect to get all keys including symbols)
Reflect.ownKeys(target.prototype).forEach(function (key) {
var keys = undefined;
// Use Reflect if exists
if (typeof Reflect !== 'undefined') {
keys = Reflect.ownKeys(target.prototype);
} else {
keys = Object.getOwnPropertyNames(target.prototype);
// use symbols if support is provided
if (typeof Object.getOwnPropertySymbols === 'function') {
keys = keys.concat(Object.getOwnPropertySymbols(target.prototype));
}
}
keys.forEach(function (key) {
// Ignore special case target method

@@ -42,0 +54,0 @@ if (key === 'constructor') {

2

package.json
{
"name": "autobind-decorator",
"version": "1.2.0",
"version": "1.3.0",
"description": "Decorator for binding method to an object",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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