@xube/kit-aws-infrastructure 0.0.104 → 0.0.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/pipeline/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,eAAO,MAAM,cAAc,QACpB,eAAe,QACd,MAAM,KACX,MAC0D,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/pipeline/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,eAAO,MAAM,cAAc,QAAS,eAAe,QAAQ,MAAM,KAAG,MACC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPipelineArn = void 0;
4
- const getPipelineArn = (env, name) => `arn:aws:codepipeline:${env.region}:${env.account}:${name}`;
4
+ const getPipelineArn = (env, name) => `arn:aws:codepipeline:${env.env.region}:${env.env.account}:${name}`;
5
5
  exports.getPipelineArn = getPipelineArn;
@@ -5,7 +5,7 @@ const aws_cdk_lib_1 = require("aws-cdk-lib");
5
5
  class XubeDeploymentStage extends aws_cdk_lib_1.Stage {
6
6
  constructor(scope, id, props) {
7
7
  super(scope, id, {
8
- env: props,
8
+ ...props,
9
9
  stageName: props.stageName,
10
10
  });
11
11
  this.stacks = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xube/kit-aws-infrastructure",
3
- "version": "0.0.104",
3
+ "version": "0.0.105",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -17,13 +17,13 @@
17
17
  },
18
18
  "homepage": "https://github.com/XubeLtd/dev-kit#readme",
19
19
  "devDependencies": {
20
- "@xube/kit-build": "^0.0.104",
20
+ "@xube/kit-build": "^0.0.105",
21
21
  "aws-cdk": "^2.159.1"
22
22
  },
23
23
  "dependencies": {
24
- "@xube/kit-aws-schema": "^0.0.104",
25
- "@xube/kit-log": "^0.0.104",
26
- "@xube/kit-request": "^0.0.104",
24
+ "@xube/kit-aws-schema": "^0.0.105",
25
+ "@xube/kit-log": "^0.0.105",
26
+ "@xube/kit-request": "^0.0.105",
27
27
  "aws-cdk-lib": "^2.159.1",
28
28
  "aws-lambda": "^1.0.7",
29
29
  "constructs": "^10.3.0"
@@ -1,7 +1,4 @@
1
1
  import { XubeEnvironment } from "@xube/kit-aws-schema";
2
2
 
3
- export const getPipelineArn = (
4
- env: XubeEnvironment,
5
- name: string
6
- ): string =>
7
- `arn:aws:codepipeline:${env.region}:${env.account}:${name}`;
3
+ export const getPipelineArn = (env: XubeEnvironment, name: string): string =>
4
+ `arn:aws:codepipeline:${env.env.region}:${env.env.account}:${name}`;
@@ -12,7 +12,7 @@ export class XubeDeploymentStage extends Stage {
12
12
 
13
13
  constructor(scope: Construct, id: string, props: XubeDeploymentStageProps) {
14
14
  super(scope, id, {
15
- env: props,
15
+ ...props,
16
16
  stageName: props.stageName,
17
17
  });
18
18