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.6 to 1.0.7

lib/string-util.d.ts

1

lib/index.d.ts
export * from './object-util';
export * from './string-util';

@@ -14,1 +14,2 @@ "use strict";

__exportStar(require("./object-util"), exports);
__exportStar(require("./string-util"), exports);
export declare class ObjectUtil {
static getByPath(obj: any, path: string, def?: string): any;
static setByPath(obj: any, path: string, value: any): void;
}

@@ -13,3 +13,3 @@ "use strict";

});
if (obj === undefined) {
if (!obj || obj === undefined) {
return def;

@@ -19,3 +19,14 @@ }

}
static setByPath(obj, path, value) {
var a = path.split('.');
var o = obj;
while (a.length - 1) {
var n = a.shift();
if (!(n in o))
o[n] = {};
o = o[n];
}
o[a[0]] = value;
}
}
exports.ObjectUtil = ObjectUtil;

2

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