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

@contrast/flat

Package Overview
Dependencies
Maintainers
12
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/flat - npm Package Compare versions

Comparing version 4.1.1 to 4.2.0

10

index.js

@@ -18,2 +18,3 @@ 'use strict';

const delimiter = opts.delimiter || '.';
const maxDepth = opts.maxDepth;
const output = {};

@@ -35,6 +36,7 @@

!isArray &&
!isBuffer &&
isObject &&
Object.keys(value).length &&
!isDomain
!isBuffer &&
isObject &&
Object.keys(value).length &&
!isDomain &&
(!opts.maxDepth || currentDepth < maxDepth)
) {

@@ -41,0 +43,0 @@ return step(value, newKey, currentDepth + 1);

4

package.json
{
"name": "@contrast/flat",
"version": "4.1.1",
"version": "4.2.0",
"main": "index.js",
"scripts": {
"test": "mocha -u tdd --reporter spec && standard index.js test/index.js"
"test": "mocha -u tdd --reporter spec"
},

@@ -8,0 +8,0 @@ "license": "BSD-3-Clause",

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