util-array-object-or-both
Advanced tools
Comparing version 1.0.8 to 1.1.0
@@ -7,4 +7,11 @@ # Change Log | ||
## [1.1.0] - 2017-08-09 | ||
### Removed | ||
- Replaced `object-assign` with native ES6 `Object.assign` | ||
- We don't need `lodash.clonedeep` either, we can just Object.assign onto a empty object literal because Object.assign sources are not mutated. | ||
## 1.0.0 - 2017-06-13 | ||
### New | ||
- Public release | ||
[1.1.0]: https://github.com/codsen/util-array-object-or-both/compare/v1.0.0...v1.1.0 |
'use strict' | ||
const includes = require('lodash.includes') | ||
const objectAssign = require('object-assign') | ||
const checkTypes = require('check-types-mini') | ||
const clone = require('lodash.clonedeep') | ||
const isObj = require('lodash.isplainobject') | ||
@@ -29,3 +27,3 @@ | ||
} | ||
opts = objectAssign(clone(defaults), opts) | ||
opts = Object.assign({}, defaults, opts) | ||
checkTypes( | ||
@@ -32,0 +30,0 @@ opts, |
The MIT License (MIT) | ||
Copyright © 2017 Roy Reveltas / Codsen Ltd | ||
Copyright © 2017 Roy Revelt / Codsen Ltd | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of |
{ | ||
"name": "util-array-object-or-both", | ||
"version": "1.0.8", | ||
"version": "1.1.0", | ||
"description": "Validate and normalise user choice: array, object or both?", | ||
@@ -25,3 +25,3 @@ "main": "index.js", | ||
"author": { | ||
"name": "Roy Reveltas", | ||
"name": "Roy Revelt", | ||
"email": "roy@codsen.com", | ||
@@ -36,7 +36,5 @@ "url": "codsen.com" | ||
"dependencies": { | ||
"check-types-mini": "^2.0.0", | ||
"lodash.clonedeep": "*", | ||
"check-types-mini": "^2.4.0", | ||
"lodash.includes": "*", | ||
"lodash.isplainobject": "*", | ||
"object-assign": "*" | ||
"lodash.isplainobject": "*" | ||
}, | ||
@@ -50,3 +48,3 @@ "devDependencies": { | ||
"nyc": "*", | ||
"standard": "^10.0.2" | ||
"standard": "^10.0.3" | ||
}, | ||
@@ -53,0 +51,0 @@ "ava": { |
@@ -12,2 +12,3 @@ # util-array-object-or-both | ||
[![bitHound Dev Dependencies][dev-img]][dev-url] | ||
[![Known Vulnerabilities][vulnerabilities-img]][vulnerabilities-url] | ||
[![Downloads/Month][downloads-img]][downloads-url] | ||
@@ -169,3 +170,3 @@ | ||
> Copyright (c) 2017 Codsen Ltd, Roy Reveltas | ||
> Copyright (c) 2017 Codsen Ltd, Roy Revelt | ||
@@ -207,1 +208,4 @@ > Permission is hereby granted, free of charge, to any person obtaining a copy | ||
[downloads-url]: https://www.npmjs.com/package/util-array-object-or-both | ||
[vulnerabilities-img]: https://snyk.io/test/github/codsen/util-array-object-or-both/badge.svg | ||
[vulnerabilities-url]: https://snyk.io/test/github/codsen/util-array-object-or-both |
Sorry, the diff of this file is not supported yet
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances in 1 package
3
3
209
15174
6
52
1
- Removedlodash.clonedeep@*
- Removedobject-assign@*
- Removedlodash.clonedeep@4.5.0(transitive)
- Removedobject-assign@4.1.1(transitive)
Updatedcheck-types-mini@^2.4.0