lodash-decorators
Advanced tools
Comparing version 4.3.1 to 4.3.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var isFunction = require("lodash/isFunction"); | ||
var utils_1 = require("./utils"); | ||
@@ -53,8 +54,11 @@ /** | ||
if (include && key !== 'constructor' && !instance.hasOwnProperty(key)) { | ||
Object.defineProperty(instance, key, { | ||
configurable: true, | ||
enumerable: descriptor.enumerable, | ||
value: utils_1.copyMetadata(instance[key].bind(instance), instance[key]), | ||
writable: descriptor.writable | ||
}); | ||
var value = instance[key]; | ||
if (isFunction(value)) { | ||
Object.defineProperty(instance, key, { | ||
configurable: true, | ||
enumerable: descriptor.enumerable, | ||
value: utils_1.copyMetadata(value.bind(instance), value), | ||
writable: descriptor.writable | ||
}); | ||
} | ||
} | ||
@@ -61,0 +65,0 @@ } |
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.3.2"></a> | ||
## [4.3.2](https://github.com/steelsojka/lodash-decorators/compare/v4.3.1...v4.3.2) (2017-05-19) | ||
### Bug Fixes | ||
* **bindAll:** guard against getters that aren't functions ([08fa50b](https://github.com/steelsojka/lodash-decorators/commit/08fa50b)) | ||
<a name="4.3.1"></a> | ||
@@ -7,0 +17,0 @@ ## [4.3.1](https://github.com/steelsojka/lodash-decorators/compare/v4.3.0...v4.3.1) (2017-05-06) |
@@ -5,3 +5,3 @@ { | ||
"description": "A collection of decorators using lodash at it's core.", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"engines": { | ||
@@ -8,0 +8,0 @@ "node": ">=0.12.0" |
Sorry, the diff of this file is not supported yet
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
136014
2433