bind-decorator
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -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" | ||
} | ||
} |
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
7176