@automapper/classes
Advanced tools
Comparing version 8.0.0-beta.16 to 8.0.0-beta.17
@@ -46,8 +46,9 @@ 'use strict'; | ||
function classes({ | ||
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(), | ||
applyMetadata, | ||
postMap, | ||
preMap | ||
} = core.defaultSerializerOptions) { | ||
function classes(options = {}) { | ||
const { | ||
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(), | ||
applyMetadata, | ||
postMap, | ||
preMap | ||
} = Object.assign(Object.assign({}, core.defaultSerializerOptions), options); | ||
return mapper => ({ | ||
@@ -54,0 +55,0 @@ destinationConstructor, |
@@ -42,8 +42,9 @@ import { isDateConstructor, isPrimitiveConstructor, defaultSerializerOptions } from '@automapper/core'; | ||
function classes({ | ||
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(), | ||
applyMetadata, | ||
postMap, | ||
preMap | ||
} = defaultSerializerOptions) { | ||
function classes(options = {}) { | ||
const { | ||
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(), | ||
applyMetadata, | ||
postMap, | ||
preMap | ||
} = Object.assign(Object.assign({}, defaultSerializerOptions), options); | ||
return mapper => ({ | ||
@@ -50,0 +51,0 @@ destinationConstructor, |
import type { Constructor, MappingStrategyInitializer, MappingStrategyInitializerOptions } from '@automapper/core'; | ||
import 'reflect-metadata'; | ||
export declare function classes({ destinationConstructor, applyMetadata, postMap, preMap, }?: MappingStrategyInitializerOptions): MappingStrategyInitializer<Constructor>; | ||
export declare function classes(options?: MappingStrategyInitializerOptions): MappingStrategyInitializer<Constructor>; |
{ | ||
"name": "@automapper/classes/mapped-types", | ||
"version": "8.0.0-beta.16", | ||
"version": "8.0.0-beta.17", | ||
"exports": { | ||
@@ -34,5 +34,5 @@ "import": "./index.esm.js", | ||
"peerDependencies": { | ||
"@automapper/core": "8.0.0-beta.16", | ||
"@automapper/classes": "8.0.0-beta.16" | ||
"@automapper/core": "8.0.0-beta.17", | ||
"@automapper/classes": "8.0.0-beta.17" | ||
} | ||
} |
{ | ||
"name": "@automapper/classes", | ||
"version": "8.0.0-beta.16", | ||
"version": "8.0.0-beta.17", | ||
"peerDependencies": { | ||
"reflect-metadata": "~0.1.13", | ||
"@automapper/core": "8.0.0-beta.16" | ||
"@automapper/core": "8.0.0-beta.17" | ||
}, | ||
@@ -8,0 +8,0 @@ "exports": { |
{ | ||
"name": "@automapper/classes/transformer-plugin", | ||
"version": "8.0.0-beta.16", | ||
"version": "8.0.0-beta.17", | ||
"exports": { | ||
@@ -34,4 +34,4 @@ "import": "./index.esm.js", | ||
"peerDependencies": { | ||
"@automapper/classes": "8.0.0-beta.16" | ||
"@automapper/classes": "8.0.0-beta.17" | ||
} | ||
} |
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
68231
1110