Socket
Socket
Sign inDemoInstall

bind-decorator

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bind-decorator - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

index.d.ts

@@ -1,2 +0,2 @@

export declare function bind<T extends Function>(target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
export declare function bind<T extends Function>(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;
export default bind;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var constants;

@@ -9,3 +10,3 @@ (function (constants) {

if (!descriptor || (typeof descriptor.value !== constants.typeOfFunction)) {
throw new TypeError("Only functions can be decorated with @bind. <" + propertyKey + "> is not a function!");
throw new TypeError("Only methods can be decorated with @bind. <" + propertyKey + "> is not a method!");
}

@@ -27,3 +28,2 @@ return {

exports.bind = bind;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = bind;
{
"name": "bind-decorator",
"version": "1.0.10",
"version": "1.0.11",
"description": "The fastest automatic method.bind(this) decorator",

@@ -35,8 +35,8 @@ "main": "index.js",

"devDependencies": {
"codeclimate-test-reporter": "^0.4.0",
"jest": "^16.0.0",
"remap-istanbul": "^0.7.0",
"typescript": "^2.0.3",
"@types/jest": "^15.1.32"
"codeclimate-test-reporter": "^0.5.0",
"jest": "^20.0.4",
"remap-istanbul": "^0.9.5",
"typescript": "^2.4.2",
"@types/jest": "^20.0.4"
}
}
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