-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1637 from aws/bump/1.5.0
chore(release): 1.5.0
- Loading branch information
Showing
54 changed files
with
2,101 additions
and
646 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
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 |
---|---|---|
|
@@ -10,5 +10,5 @@ | |
"rejectCycles": true | ||
} | ||
}, | ||
"version": "1.4.1" | ||
"version": "1.5.0" | ||
} |
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
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,22 @@ | ||
export interface IReflectable { | ||
readonly entries: ReflectableEntry[]; | ||
} | ||
|
||
export interface ReflectableEntry { | ||
readonly key: string; | ||
readonly value: unknown; | ||
} | ||
|
||
export class Reflector { | ||
public constructor() { } | ||
|
||
public asMap(reflectable: IReflectable): Record<string, unknown> { | ||
return reflectable.entries.reduce( | ||
(mapping, entry) => { | ||
mapping[entry.key] = entry.value; | ||
return mapping; | ||
}, | ||
{} as Record<string, unknown>, | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { submodule } from '@scope/jsii-calc-lib'; | ||
|
||
/** | ||
* Ensures submodule-imported types from dependencies can be used correctly. | ||
*/ | ||
export class UpcasingReflectable implements submodule.IReflectable { | ||
public static readonly reflector = new submodule.Reflector(); | ||
|
||
public constructor(private readonly delegate: Record<string, unknown>) { } | ||
|
||
public get entries(): submodule.ReflectableEntry[] { | ||
return Object.entries(this.delegate) | ||
.map(([key, value]) => ({ key: key.toLocaleUpperCase(), value })); | ||
} | ||
} |
Oops, something went wrong.