@automapper/classes
Advanced tools
Comparing version 8.0.1-beta.1 to 8.0.1
@@ -53,2 +53,3 @@ 'use strict'; | ||
} = Object.assign(Object.assign({}, core.defaultSerializerOptions), options); | ||
const metadataTracker = new Set(); | ||
return mapper => ({ | ||
@@ -67,13 +68,13 @@ destinationConstructor, | ||
const identifier = identifiers[i]; | ||
if (metadataTracker.has(identifier)) { | ||
continue; | ||
} | ||
const [metadataList, nestedConstructors] = getMetadataList(identifier); | ||
metadataMap.set(identifier, metadataList); | ||
metadataTracker.add(identifier); | ||
for (let j = 0, nestedLength = nestedConstructors.length; j < nestedLength; j++) { | ||
const nestedConstructor = nestedConstructors[j]; | ||
if (core.getMetadataMap(mapper).has(nestedConstructor)) { | ||
continue; | ||
} | ||
const nestedConstructorsMetadataMap = this.retrieveMetadata(nestedConstructor); | ||
if (nestedConstructors.length) { | ||
const nestedConstructorsMetadataMap = this.retrieveMetadata(...nestedConstructors); | ||
nestedConstructorsMetadataMap.forEach((nestedConstructorMetadataList, nestedConstructor) => { | ||
@@ -80,0 +81,0 @@ metadataMap.set(nestedConstructor, nestedConstructorMetadataList); |
@@ -1,2 +0,2 @@ | ||
import { isDateConstructor, isPrimitiveConstructor, defaultSerializerOptions, getMetadataMap } from '@automapper/core'; | ||
import { isDateConstructor, isPrimitiveConstructor, defaultSerializerOptions } from '@automapper/core'; | ||
import 'reflect-metadata'; | ||
@@ -49,2 +49,3 @@ | ||
} = Object.assign(Object.assign({}, defaultSerializerOptions), options); | ||
const metadataTracker = new Set(); | ||
return mapper => ({ | ||
@@ -63,13 +64,13 @@ destinationConstructor, | ||
const identifier = identifiers[i]; | ||
if (metadataTracker.has(identifier)) { | ||
continue; | ||
} | ||
const [metadataList, nestedConstructors] = getMetadataList(identifier); | ||
metadataMap.set(identifier, metadataList); | ||
metadataTracker.add(identifier); | ||
for (let j = 0, nestedLength = nestedConstructors.length; j < nestedLength; j++) { | ||
const nestedConstructor = nestedConstructors[j]; | ||
if (getMetadataMap(mapper).has(nestedConstructor)) { | ||
continue; | ||
} | ||
const nestedConstructorsMetadataMap = this.retrieveMetadata(nestedConstructor); | ||
if (nestedConstructors.length) { | ||
const nestedConstructorsMetadataMap = this.retrieveMetadata(...nestedConstructors); | ||
nestedConstructorsMetadataMap.forEach((nestedConstructorMetadataList, nestedConstructor) => { | ||
@@ -76,0 +77,0 @@ metadataMap.set(nestedConstructor, nestedConstructorMetadataList); |
{ | ||
"name": "@automapper/classes/mapped-types", | ||
"version": "8.0.1-beta.1", | ||
"version": "8.0.1", | ||
"exports": { | ||
@@ -37,5 +37,5 @@ ".": { | ||
"peerDependencies": { | ||
"@automapper/core": "8.0.1-beta.1", | ||
"@automapper/classes": "8.0.1-beta.1" | ||
"@automapper/core": "8.0.1", | ||
"@automapper/classes": "8.0.1" | ||
} | ||
} |
{ | ||
"name": "@automapper/classes", | ||
"version": "8.0.1-beta.1", | ||
"version": "8.0.1", | ||
"peerDependencies": { | ||
"reflect-metadata": "~0.1.13", | ||
"@automapper/core": "8.0.1-beta.1" | ||
"@automapper/core": "8.0.1" | ||
}, | ||
@@ -8,0 +8,0 @@ "exports": { |
{ | ||
"name": "@automapper/classes/transformer-plugin", | ||
"version": "8.0.1-beta.1", | ||
"version": "8.0.1", | ||
"exports": { | ||
@@ -37,4 +37,4 @@ ".": { | ||
"peerDependencies": { | ||
"@automapper/classes": "8.0.1-beta.1" | ||
"@automapper/classes": "8.0.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1120
1
68679