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.3 to 1.4.4

1

dist/utils/transform.d.ts

@@ -9,4 +9,3 @@ 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,18 +78,2 @@ "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) {

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

2

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

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

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