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

@contrail/util

Package Overview
Dependencies
Maintainers
4
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrail/util - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

lib/object-util.spec.d.ts

2

lib/object-util.d.ts
export declare class ObjectUtil {
static getByPath(obj: any, path: string, def?: string): any;
static getByPath(obj: any, path: string, def?: any): any;
static setByPath(obj: any, path: string, value: any): void;
}

@@ -11,5 +11,7 @@ "use strict";

pathUnits.forEach((level) => {
obj = obj[level];
if (obj) {
obj = obj[level];
}
});
if (!obj || obj === undefined) {
if (obj === undefined) {
return def;

@@ -16,0 +18,0 @@ }

{
"name": "@contrail/util",
"version": "1.0.8",
"version": "1.0.9",
"description": "General javascript utilities",

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

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