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

ric-utils-misc

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ric-utils-misc - npm Package Compare versions

Comparing version 1.0.56 to 1.0.57

13

lib/safe.js

@@ -24,4 +24,5 @@ /*

const keys = path.split('.');
let longKey;
for (let i = 0; i < keys.length; i++) {
const key = keys[i];
const key = longKey ? `${longKey}.${keys[i]}` : keys[i];

@@ -33,5 +34,11 @@ if(typeof object === 'number' && isFinite(key)) {

if (!object || !object.hasOwnProperty(key)) {
object = undefined;
break;
if (i === keys.length - 1) {
object = undefined;
break;
} else {
longKey = longKey ? `${longKey}.${key}` : key;
continue;
}
}
longKey = undefined;
object = object[key];

@@ -38,0 +45,0 @@ }

{
"name": "ric-utils-misc",
"version": "1.0.56",
"version": "1.0.57",
"description": "Miscellaneous utility functions",

@@ -5,0 +5,0 @@ "main": "index",

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