This repository has been archived by the owner on Jan 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(automapper.module.ts): cut the next release
This is the next release to match with `@nartc/automapper@next` BREAKING CHANGE: - Deprecating `forRoot` because `Mapper.intialize` is deprecated - Add `withMapper`to replace `forRoot` and also allow adding `AutoMapperGlobalSettings` to `withMapper`
- Loading branch information
Showing
10 changed files
with
126 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
export { AutoMapper, MappingProfileBase, AutoMap } from '@nartc/automapper'; | ||
export { | ||
AutoMapper, | ||
ProfileBase, | ||
AutoMap, | ||
mapWith, | ||
mapFrom, | ||
convertUsing, | ||
condition, | ||
preCondition, | ||
nullSubstitution, | ||
ignore, | ||
fromValue, | ||
} from '@nartc/automapper'; | ||
export * from './automapper-configuration.interface'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { AutoMapperGlobalSettings } from '@nartc/automapper'; | ||
|
||
export function getWithMapperArgs( | ||
args: any[] | ||
): [string, AutoMapperGlobalSettings?] { | ||
if (!args.length) { | ||
return ['']; | ||
} | ||
|
||
if (args.length === 2) { | ||
return [args[0], args[1]]; | ||
} | ||
|
||
if (args.length === 1) { | ||
const arg = args[0]; | ||
if (typeof arg === 'string') { | ||
return [arg]; | ||
} | ||
|
||
return ['', arg]; | ||
} | ||
|
||
return ['']; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters