New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@loadmill/universal

Package Overview
Dependencies
Maintainers
2
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loadmill/universal - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

test/manipulation-utils.spec.js

5

dist/manipulation-utils.d.ts

@@ -13,1 +13,6 @@ export declare function stripSingleton(singleton: any, defaultValue?: any): any;

}[];
/**
* Deletes all occurrences of a given property from the given object (nested)
* { a:1, b: {a: 1, b: 2} } => { b: { b: 2 } }
*/
export declare function deleteProp(obj: object, propToDelete: string): void;

@@ -51,2 +51,16 @@ "use strict";

exports.fromObjectToArrayOfObjects = fromObjectToArrayOfObjects;
/**
* Deletes all occurrences of a given property from the given object (nested)
* { a:1, b: {a: 1, b: 2} } => { b: { b: 2 } }
*/
function deleteProp(obj, propToDelete) {
for (var _i = 0, _a = Object.keys(obj); _i < _a.length; _i++) {
var prop = _a[_i];
delete obj[propToDelete];
if (typeof obj[prop] === 'object') {
deleteProp(obj[prop], propToDelete);
}
}
}
exports.deleteProp = deleteProp;
//# sourceMappingURL=manipulation-utils.js.map

2

package.json
{
"name": "@loadmill/universal",
"version": "0.3.9",
"version": "0.3.10",
"description": "Loadmill universal utilities",

@@ -5,0 +5,0 @@ "main": "dist/",

@@ -44,1 +44,16 @@ const isEmpty = obj => [Object, Array].includes((obj || {}).constructor) && !Object.entries((obj || {})).length;

}
/**
* Deletes all occurrences of a given property from the given object (nested)
* { a:1, b: {a: 1, b: 2} } => { b: { b: 2 } }
*/
export function deleteProp(obj: object, propToDelete: string) {
for (const prop of Object.keys(obj)) {
delete obj[propToDelete];
if (typeof obj[prop] === 'object') {
deleteProp(obj[prop], propToDelete);
}
}
}

Sorry, the diff of this file is not supported yet

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