@almaclaine/cdk
Advanced tools
Comparing version 0.0.44 to 0.0.45
{ | ||
"name": "@almaclaine/cdk", | ||
"version": "0.0.43", | ||
"version": "0.0.44", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "cjs/src/index.js", |
import type { Stages } from '../constants'; | ||
import type { StackProps } from 'aws-cdk-lib'; | ||
import type { DashJoined } from '../types'; | ||
declare function getStackName<Name extends string>(id: Name, stage: Stages): DashJoined<Name, Stages>; | ||
declare function getStackNameFromProps<Name extends string>(id: Name, props: StackProps): DashJoined<Name, Stages>; | ||
import type { ConstructNameLiteral } from '../types'; | ||
type StackName<Name extends string> = ConstructNameLiteral<Name, Stages, 'stack'>; | ||
declare function getStackName<Name extends string>(id: Name, stage: Stages): StackName<Name>; | ||
declare function getStackNameFromProps<T extends string>(id: T, props: StackProps): StackName<T>; | ||
export { getStackName, getStackNameFromProps }; | ||
export type { StackName }; |
@@ -16,4 +16,5 @@ "use strict"; | ||
}); | ||
const _generateconstructnames = require("./generate-construct-names"); | ||
function getStackName(id, stage) { | ||
return `${id}-${stage}`; | ||
return (0, _generateconstructnames.generateConstructNameLiteral)(id, 'stack', stage); | ||
} | ||
@@ -20,0 +21,0 @@ function getStackNameFromProps(id, props) { |
{ | ||
"name": "@almaclaine/cdk", | ||
"version": "0.0.43", | ||
"version": "0.0.44", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "cjs/src/index.js", |
import type { Stages } from '../constants'; | ||
import type { StackProps } from 'aws-cdk-lib'; | ||
import type { DashJoined } from '../types'; | ||
declare function getStackName<Name extends string>(id: Name, stage: Stages): DashJoined<Name, Stages>; | ||
declare function getStackNameFromProps<Name extends string>(id: Name, props: StackProps): DashJoined<Name, Stages>; | ||
import type { ConstructNameLiteral } from '../types'; | ||
type StackName<Name extends string> = ConstructNameLiteral<Name, Stages, 'stack'>; | ||
declare function getStackName<Name extends string>(id: Name, stage: Stages): StackName<Name>; | ||
declare function getStackNameFromProps<T extends string>(id: T, props: StackProps): StackName<T>; | ||
export { getStackName, getStackNameFromProps }; | ||
export type { StackName }; |
@@ -16,4 +16,5 @@ "use strict"; | ||
}); | ||
const _generateconstructnames = require("./generate-construct-names"); | ||
function getStackName(id, stage) { | ||
return `${id}-${stage}`; | ||
return (0, _generateconstructnames.generateConstructNameLiteral)(id, 'stack', stage); | ||
} | ||
@@ -20,0 +21,0 @@ function getStackNameFromProps(id, props) { |
{ | ||
"name": "@almaclaine/cdk", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "cjs/src/index.js", |
import type { Stages } from '../constants'; | ||
import type { StackProps } from 'aws-cdk-lib'; | ||
import type { DashJoined } from '../types'; | ||
declare function getStackName<Name extends string>(id: Name, stage: Stages): DashJoined<Name, Stages>; | ||
declare function getStackNameFromProps<Name extends string>(id: Name, props: StackProps): DashJoined<Name, Stages>; | ||
import type { ConstructNameLiteral } from '../types'; | ||
type StackName<Name extends string> = ConstructNameLiteral<Name, Stages, 'stack'>; | ||
declare function getStackName<Name extends string>(id: Name, stage: Stages): StackName<Name>; | ||
declare function getStackNameFromProps<T extends string>(id: T, props: StackProps): StackName<T>; | ||
export { getStackName, getStackNameFromProps }; | ||
export type { StackName }; |
@@ -16,4 +16,5 @@ "use strict"; | ||
}); | ||
const _generateconstructnames = require("./generate-construct-names"); | ||
function getStackName(id, stage) { | ||
return `${id}-${stage}`; | ||
return (0, _generateconstructnames.generateConstructNameLiteral)(id, 'stack', stage); | ||
} | ||
@@ -20,0 +21,0 @@ function getStackNameFromProps(id, props) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
390960
4896