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

@intelligo.ai/object-to-schema

Package Overview
Dependencies
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intelligo.ai/object-to-schema - npm Package Compare versions

Comparing version 1.4.4 to 1.4.5

1

dist/utils/transform.d.ts

@@ -9,3 +9,4 @@ import { Transform, SomeObj, TreeLeaf } from './types';

export declare function sortTransformsByPriority(transforms: Transform[]): Transform[];
export declare function pruneObject(obj: SomeObj): SomeObj;
export declare function pruneEmpty<T extends SomeObj>(obj: T): any;
//# sourceMappingURL=transform.d.ts.map

@@ -78,2 +78,18 @@ "use strict";

exports.sortTransformsByPriority = sortTransformsByPriority;
function pruneObject(obj) {
var entries = Object
.entries(obj)
.map(function (_a) {
var key = _a[0], value = _a[1];
return ramda_1.default.isEmpty(value)
? [key, undefined]
: [key, pruneObject(value)];
})
.filter(function (_a) {
var _ = _a[0], value = _a[1];
return !value;
});
return Object.entries(entries);
}
exports.pruneObject = pruneObject;
function pruneEmpty(obj) {

@@ -80,0 +96,0 @@ return function prune(current) {

6

package.json
{
"name": "@intelligo.ai/object-to-schema",
"version": "1.4.4",
"version": "1.4.5",
"description": "",

@@ -17,7 +17,7 @@ "main": "dist/index.js",

"jest": "^24.9.0",
"ts-jest": "^24.1.0",
"typescript": "^3.7.2"
"ts-jest": "^24.1.0"
},
"dependencies": {
"@types/node": "^13.9.8",
"lodash": "^4.17.15",
"object-path": "^0.11.4",

@@ -24,0 +24,0 @@ "ramda": "^0.26.1"

Sorry, the diff of this file is not supported yet

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