@fy-stack/apigateway-construct 0.0.147-300-preview → 0.0.147-alpha.301

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,7 +1,7 @@
1
1
  import { type Attachable } from '@fy-stack/types';
2
2
  import { HttpApi } from 'aws-cdk-lib/aws-apigatewayv2';
3
- import { Construct } from "constructs";
4
- import { ApiGatewayConstructProps } from "./types";
3
+ import { Construct } from 'constructs';
4
+ import { ApiGatewayConstructProps } from './types';
5
5
  /**
6
6
  * ApiGatewayConstruct is a construct class for creating an API Gateway with defined routes and integrations.
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"apigateway-construct.d.ts","sourceRoot":"","sources":["../../src/lib/apigateway-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAkB,OAAO,EAAc,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,SAAU,YAAW,UAAU;IACtE,SAAgB,GAAG,EAAE,OAAO,CAAC;gBAEjB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,wBAAwB;IA6CzE,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAKrC"}
1
+ {"version":3,"file":"apigateway-construct.d.ts","sourceRoot":"","sources":["../../src/lib/apigateway-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAEL,OAAO,EAER,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;;;;GAOG;AACH,qBAAa,mBAAoB,SAAQ,SAAU,YAAW,UAAU;IACtE,SAAgB,GAAG,EAAE,OAAO,CAAC;gBAEjB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,wBAAwB;IA8CzE,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAKrC"}
@@ -37,6 +37,7 @@ class ApiGatewayConstruct extends constructs_1.Construct {
37
37
  allowOrigins: ['*'],
38
38
  allowMethods: [aws_apigatewayv2_1.CorsHttpMethod.ANY],
39
39
  },
40
+ defaultIntegration,
40
41
  });
41
42
  for (const i in additionalIntegrations) {
42
43
  this.api.addRoutes({
@@ -48,7 +49,7 @@ class ApiGatewayConstruct extends constructs_1.Construct {
48
49
  }
49
50
  attachable() {
50
51
  return {
51
- domain: this.api.apiEndpoint
52
+ domain: this.api.apiEndpoint,
52
53
  };
53
54
  }
54
55
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@fy-stack/apigateway-construct",
3
- "version": "0.0.147-300-preview",
3
+ "version": "0.0.147-alpha.301",
4
4
  "repository": "https://github.com/festusyuma/fy-stack",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0",
7
- "@fy-stack/types": "0.0.147-300-preview"
7
+ "@fy-stack/types": "0.0.147-alpha.301"
8
8
  },
9
9
  "peerDependencies": {
10
- "aws-cdk-lib": "^2.198.0",
11
- "constructs": "^10.4.2"
10
+ "aws-cdk-lib": "^2.229.1",
11
+ "constructs": "^10.4.3"
12
12
  },
13
13
  "type": "commonjs",
14
14
  "main": "./dist/index.js",