@automapper/classes
Advanced tools
Comparing version 8.0.0-beta.5 to 8.0.0-beta.6
@@ -104,6 +104,6 @@ 'use strict'; | ||
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(), | ||
applyMetadata = core.defaultApplyMetadata, | ||
applyMetadata, | ||
postMap, | ||
preMap | ||
} = {}) { | ||
} = core.defaultSerializerOptions) { | ||
return mapper => ({ | ||
@@ -134,16 +134,4 @@ destinationConstructor, | ||
preMap: (...args) => { | ||
if (preMap) { | ||
return preMap(...args); | ||
} | ||
return; | ||
}, | ||
postMap: (...args) => { | ||
if (postMap) { | ||
return postMap(...args); | ||
} | ||
return; | ||
} | ||
preMap: preMap, | ||
postMap: postMap | ||
}); | ||
@@ -150,0 +138,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { defaultApplyMetadata } from '@automapper/core'; | ||
import { defaultSerializerOptions } from '@automapper/core'; | ||
import 'reflect-metadata'; | ||
@@ -100,6 +100,6 @@ | ||
destinationConstructor = (_, destinationIdentifier) => new destinationIdentifier(), | ||
applyMetadata = defaultApplyMetadata, | ||
applyMetadata, | ||
postMap, | ||
preMap | ||
} = {}) { | ||
} = defaultSerializerOptions) { | ||
return mapper => ({ | ||
@@ -130,16 +130,4 @@ destinationConstructor, | ||
preMap: (...args) => { | ||
if (preMap) { | ||
return preMap(...args); | ||
} | ||
return; | ||
}, | ||
postMap: (...args) => { | ||
if (postMap) { | ||
return postMap(...args); | ||
} | ||
return; | ||
} | ||
preMap: preMap, | ||
postMap: postMap | ||
}); | ||
@@ -146,0 +134,0 @@ } |
@@ -1,3 +0,3 @@ | ||
import type { Constructor, MappingStrategyInitializer, MappingStrategyInitializerOptions } from '@automapper/core'; | ||
import { Constructor, MappingStrategyInitializer, MappingStrategyInitializerOptions } from '@automapper/core'; | ||
import 'reflect-metadata'; | ||
export declare function classes({ destinationConstructor, applyMetadata, postMap, preMap, }?: MappingStrategyInitializerOptions): MappingStrategyInitializer<Constructor>; |
{ | ||
"name": "@automapper/classes/mapped-types", | ||
"version": "8.0.0-beta.5", | ||
"version": "8.0.0-beta.6", | ||
"exports": { | ||
@@ -34,5 +34,5 @@ "import": "./index.esm.js", | ||
"peerDependencies": { | ||
"@automapper/core": "8.0.0-beta.5", | ||
"@automapper/classes": "8.0.0-beta.5" | ||
"@automapper/core": "8.0.0-beta.6", | ||
"@automapper/classes": "8.0.0-beta.6" | ||
} | ||
} |
{ | ||
"name": "@automapper/classes", | ||
"version": "8.0.0-beta.5", | ||
"version": "8.0.0-beta.6", | ||
"peerDependencies": { | ||
"reflect-metadata": "~0.1.13", | ||
"@automapper/core": "8.0.0-beta.5" | ||
"@automapper/core": "8.0.0-beta.6" | ||
}, | ||
@@ -8,0 +8,0 @@ "exports": { |
{ | ||
"name": "@automapper/classes/transformer-plugin", | ||
"version": "8.0.0-beta.5", | ||
"version": "8.0.0-beta.6", | ||
"exports": { | ||
@@ -34,4 +34,4 @@ "import": "./index.esm.js", | ||
"peerDependencies": { | ||
"@automapper/classes": "8.0.0-beta.5" | ||
"@automapper/classes": "8.0.0-beta.6" | ||
} | ||
} |
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
69081
1123