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

@contrail/util

Package Overview
Dependencies
Maintainers
16
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.59 to 1.0.60

1

lib/object-util/object-util.d.ts

@@ -9,2 +9,3 @@ import { cloneDeep } from './cloneDeep/cloneDeep';

static getByPath(obj: any, path: string, def?: any): any;
getBySlugs(obj: any, rootSlug: string, slug: string): any;
static setByPath(obj: any, path: string, value: any): void;

@@ -11,0 +12,0 @@ static chunk(array: any[], size: number): any[];

@@ -22,2 +22,9 @@ "use strict";

}
getBySlugs(obj, rootSlug, slug) {
const rootValue = obj[rootSlug];
if (rootValue) {
return rootValue[slug];
}
return rootValue;
}
static setByPath(obj, path, value) {

@@ -24,0 +31,0 @@ const a = path.split('.');

2

package.json
{
"name": "@contrail/util",
"version": "1.0.59",
"version": "1.0.60",
"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