ag-common 0.0.671 → 0.0.672

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.
@@ -15,7 +15,6 @@ export declare const openApiImpl: (p: {
15
15
  * 'default' will be applied to all functions
16
16
  */
17
17
  lambdaConfig: ILambdaConfigs;
18
- certificate: certmgr.ICertificate;
19
18
  shortStackName: string;
20
19
  /**
21
20
  * defaults:
@@ -39,5 +38,6 @@ export declare const openApiImpl: (p: {
39
38
  apiUrl: string;
40
39
  /** if provided will add r53 record to apigw domainame */
41
40
  hostedZone?: route53.IHostedZone;
41
+ certificate: certmgr.ICertificate;
42
42
  };
43
43
  }) => void;
@@ -10,7 +10,7 @@ const getPaths = (schema) => Object.entries(schema.paths).map(([fullPath, verbs]
10
10
  pathList: fullPath.split('/').filter((s) => s),
11
11
  verbs: Object.keys(verbs),
12
12
  }));
13
- const setUpApiGw = ({ stack, NODE_ENV, certificate, shortStackName, r53, cors = {
13
+ const setUpApiGw = ({ stack, NODE_ENV, shortStackName, r53, cors = {
14
14
  allowOrigins: aws_cdk_lib_1.aws_apigateway.Cors.ALL_ORIGINS,
15
15
  allowHeaders: aws_cdk_lib_1.aws_apigateway.Cors.DEFAULT_HEADERS,
16
16
  }, }) => {
@@ -20,7 +20,7 @@ const setUpApiGw = ({ stack, NODE_ENV, certificate, shortStackName, r53, cors =
20
20
  if (r53) {
21
21
  const dn = new aws_cdk_lib_1.aws_apigateway.DomainName(stack, 'domain', {
22
22
  domainName: r53.apiUrl,
23
- certificate,
23
+ certificate: r53.certificate,
24
24
  endpointType: aws_cdk_lib_1.aws_apigateway.EndpointType.EDGE,
25
25
  securityPolicy: aws_cdk_lib_1.aws_apigateway.SecurityPolicy.TLS_1_2,
26
26
  mapping: api,
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.671",
2
+ "version": "0.0.672",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",