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

@intelligo.ai/object-to-schema

Package Overview
Dependencies
Maintainers
5
Versions
77
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.5 to 2.1.6

2

dist/utils/predefinedTransformations.d.ts

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

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

@@ -22,2 +23,3 @@ predefinedTransformations: {

arrayObjectKeyToString: typeof arrayObjectKeyToString;
fieldConditionMapping: typeof fieldConditionMapping;
};

@@ -24,0 +26,0 @@ };

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

}
function fieldConditionMapping(value, options) {
var pathToCheck = options.pathToCheck, condition = options.condition, conditionValue = options.conditionValue, valueToMap = options.valueToMap;
var valueToCheck = object_path_1.get(value, pathToCheck);
var pass;
switch (condition) {
case 'exists':
var flag = valueToCheck !== undefined && valueToCheck !== null;
pass = conditionValue ? flag : !flag;
break;
}
return pass && valueToMap;
}
exports.strategies = {

@@ -116,5 +128,6 @@ predefinedTransformations: {

dateToYear: dateToYear,
arrayObjectKeyToString: arrayObjectKeyToString
arrayObjectKeyToString: arrayObjectKeyToString,
fieldConditionMapping: fieldConditionMapping
}
};
//# sourceMappingURL=predefinedTransformations.js.map

2

package.json
{
"name": "@intelligo.ai/object-to-schema",
"version": "2.1.5",
"version": "2.1.6",
"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