henrybuilt-js-library
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "henrybuilt-js-library", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,2 +27,3 @@ # `henrybuilt-js-library` | ||
- determine strategy for development alongside `henrybuilt-website` | ||
- code coverage | ||
@@ -29,0 +30,0 @@ - migrate tests |
@@ -12,4 +12,10 @@ var _ = require('lodash'); | ||
mixin(...classes) { | ||
var libObject = require('./object'); | ||
return libObject.extend(...classes); | ||
}, | ||
mapExtract(collection, key) { | ||
return _.mapValues(collection, _.property(key)) | ||
return _.mapValues(collection, _.property(key)); | ||
}, | ||
@@ -16,0 +22,0 @@ |
@@ -160,3 +160,13 @@ var libObject; | ||
return object; | ||
}, | ||
extend(target, ...sources) { | ||
_.forEach(sources, source => { | ||
for (var key in source) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
} | ||
}); | ||
return target; | ||
} | ||
}; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
123034
938
34
0