New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

util-array-object-or-both

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-array-object-or-both - npm Package Compare versions

Comparing version 1.0.8 to 1.1.0

7

changelog.md

@@ -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

4

index.js
'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

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