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
5
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 2.1.8 to 2.1.9

2

dist/utils/predefinedTransformations.d.ts

@@ -7,3 +7,3 @@ declare function fromTracerDate(tracerDate: number): string | undefined;

declare function companyAddressType(addressType: string): any;
declare function fieldConditionMapping(value: any, options: any): string | number | undefined;
declare function fieldConditionMapping(value: any, options: any): any;
export declare const strategies: {

@@ -10,0 +10,0 @@ predefinedTransformations: {

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

function fieldConditionMapping(value, options) {
var pathToCheck = options.pathToCheck, condition = options.condition, conditionValue = options.conditionValue, valueToMap = options.valueToMap;
var pathToCheck = options.pathToCheck, condition = options.condition, conditionValue = options.conditionValue, valueToMap = options.valueToMap, pathToMap = options.pathToMap;
var valueToCheck = object_path_1.get(value, pathToCheck);

@@ -127,3 +127,7 @@ var pass;

}
return pass ? valueToMap : undefined;
return pass ?
pathToMap ?
object_path_1.get(value, pathToMap) :
valueToMap :
undefined;
}

@@ -130,0 +134,0 @@ exports.strategies = {

{
"name": "@intelligo.ai/object-to-schema",
"version": "2.1.8",
"version": "2.1.9",
"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