@automapper/pojos
Advanced tools
Comparing version 3.0.11 to 3.1.0
{ | ||
"name": "@automapper/pojos", | ||
"version": "3.0.11", | ||
"version": "3.1.0", | ||
"sideEffects": false, | ||
@@ -32,5 +32,5 @@ "engines": { | ||
"peerDependencies": { | ||
"@automapper/types": "3.0.11", | ||
"@automapper/core": "3.0.11" | ||
"@automapper/types": "3.1.0", | ||
"@automapper/core": "3.1.0" | ||
} | ||
} |
@@ -11,2 +11,5 @@ "use strict"; | ||
return { | ||
instantiate(model, obj) { | ||
return utils_1.instantiate(metadataStorage, model, obj); | ||
}, | ||
initializeMapping(source, destination, options) { | ||
@@ -18,4 +21,4 @@ if (mappingStorage.has(source, destination)) { | ||
exploreMetadata(metadataStorage, source, destination); | ||
const [destinationObj, destinationNestedMetadataMap] = utils_1.instantiate(metadataStorage, destination); | ||
const [sourceObj, sourceNestedMetadataMap] = utils_1.instantiate(metadataStorage, source); | ||
const [destinationObj, destinationNestedMetadataMap] = this.instantiate(destination); | ||
const [sourceObj, sourceNestedMetadataMap] = this.instantiate(source); | ||
return core_1.createInitialMapping(sourceObj, destinationObj, sourceNestedMetadataMap, destinationNestedMetadataMap, (mapping) => { | ||
@@ -35,4 +38,4 @@ mappingStorage.set(source, destination, mapping); | ||
} | ||
const [sourceObj] = utils_1.instantiate(metadataStorage, source); | ||
const [destinationObj] = utils_1.instantiate(metadataStorage, destination); | ||
const [sourceObj] = this.instantiate(source); | ||
const [destinationObj] = this.instantiate(destination); | ||
mapping[0 /* mappings */] = [sourceObj, destinationObj]; | ||
@@ -39,0 +42,0 @@ return mapping; |
Sorry, the diff of this file is not supported yet
23625
347