@intelligo.ai/object-to-schema
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -41,2 +41,3 @@ "use strict"; | ||
var predefinedTransformations_1 = require("./utils/predefinedTransformations"); | ||
var isValueExists_1 = __importDefault(require("./utils/isValueExists")); | ||
function mapObject(originalObj, transformations) { | ||
@@ -85,5 +86,5 @@ if (!transformations || transformations.length == 0) { | ||
while (!transform.done | ||
&& ((object_path_1.default.has(originalObj, (0, stringUtil_1.unUnidotify)(transform.value.source)) == undefined && object_path_1.default.has(originalObj, (0, stringUtil_1.unUnidotify)(transform.value.source)) == null) | ||
&& !(object_path_1.default.has(originalObj, (0, stringUtil_1.unUnidotify)(transform.value.source)) | ||
&& (!((_a = transform.value.target.predefinedTransformations) === null || _a === void 0 ? void 0 : _a.length) | ||
|| getValueAfterTransformations(transform.value.target, valueToSet))) | ||
|| (0, isValueExists_1.default)(getValueAfterTransformations(transform.value.target, valueToSet)))) | ||
&& !transform.value.target.defaultValue) { | ||
@@ -90,0 +91,0 @@ transform = transformGenerator.next(); |
{ | ||
"name": "@intelligo.ai/object-to-schema", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
93553
59
1268