Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

collect.js

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collect.js - npm Package Compare versions

Comparing version 4.18.9 to 4.19.0

8

CHANGELOG.md

@@ -0,1 +1,9 @@

# 4.19.0
## Bug fixes
## Methods
#### ``flatten()``
- Now properly flattens an object with multiple objects. [Issue](https://github.com/ecrmnn/collect.js/issues/240)
# 4.18.8

@@ -2,0 +10,0 @@

4

dist/methods/flatten.js

@@ -33,4 +33,4 @@ 'use strict';

} else if (isObject(items[property])) {
Object.keys(items).forEach(function (prop) {
collection = collection.concat(items[prop]);
Object.keys(items[property]).forEach(function (prop) {
collection = collection.concat(items[property][prop]);
});

@@ -37,0 +37,0 @@ } else {

{
"name": "collect.js",
"version": "4.18.9",
"version": "4.19.0",
"description": "Convenient and dependency free wrapper for working with arrays and objects.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -31,4 +31,4 @@ 'use strict';

} else if (isObject(items[property])) {
Object.keys(items).forEach((prop) => {
collection = collection.concat(items[prop]);
Object.keys(items[property]).forEach((prop) => {
collection = collection.concat(items[property][prop]);
});

@@ -35,0 +35,0 @@ } else {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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