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

fast-loops

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-loops - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

7

es/objectMergeDeep.js

@@ -10,5 +10,10 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

for (var key in obj) {
// see https://github.com/robinweser/fast-loops/issues/18
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
continue;
}
var value = obj[key];
if (_typeof(value) === 'object' && !Array.isArray(value)) {
if (_typeof(value) === 'object' && !Array.isArray(value) && value !== null) {
base[key] = objectMergeDeep(base[key], value);

@@ -15,0 +20,0 @@ continue;

@@ -17,5 +17,10 @@ "use strict";

for (var key in obj) {
// see https://github.com/robinweser/fast-loops/issues/18
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
continue;
}
var value = obj[key];
if (_typeof(value) === 'object' && !Array.isArray(value)) {
if (_typeof(value) === 'object' && !Array.isArray(value) && value !== null) {
base[key] = objectMergeDeep(base[key], value);

@@ -22,0 +27,0 @@ continue;

4

package.json
{
"name": "fast-loops",
"version": "1.1.3",
"version": "1.1.4",
"description": "Small, performant & immutable iteration utilities for Arrays and Objects",

@@ -30,3 +30,3 @@ "main": "lib/index.js",

"lint": "eslint modules/**/*.js",
"release": "git pull --rebase && yarn run check && yarn build && npm publish",
"release": "yarn run check && yarn build && npm publish",
"test": "cross-env BABEL_ENV=commonjs jest",

@@ -33,0 +33,0 @@ "test:coverage": "cross-env BABEL_ENV=commonjs jest --coverage",

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