@xube/kit-aws-hooks-infrastructure 0.0.27 → 0.0.29

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WebhookManagement = exports.GET_WEBHOOK_ENDPOINTS_FUNCTION_NAME = exports.REMOVE_WEBHOOK_ENDPOINTS_FUNCTION_NAME = exports.ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME = void 0;
4
4
  const kit_aws_1 = require("@xube/kit-aws");
5
5
  const kit_aws_2 = require("@xube/kit-aws");
6
+ const kit_log_1 = require("@xube/kit-log");
6
7
  const aws_apigateway_1 = require("aws-cdk-lib/aws-apigateway");
7
8
  const aws_dynamodb_1 = require("aws-cdk-lib/aws-dynamodb");
8
9
  const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
@@ -33,22 +34,24 @@ class WebhookManagement extends constructs_1.Construct {
33
34
  type: aws_dynamodb_1.AttributeType.STRING,
34
35
  },
35
36
  });
37
+ kit_log_1.XubeLog.getInstance().log(__dirname);
38
+ kit_log_1.XubeLog.getInstance().log((0, path_1.join)(__dirname, "functions", exports.ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts"));
36
39
  this.addWebhookEndpoints = new aws_lambda_nodejs_1.NodejsFunction(this, id + "-add-hooks-function", {
37
- entry: (0, path_1.join)(__dirname, "functions", exports.ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts"),
40
+ entry: (0, path_1.join)(__dirname, "functions", exports.ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"),
38
41
  functionName: (props.name ?? "webhook") + "-add-hooks",
39
42
  environment: {
40
43
  WEBHOOK_TABLE_NAME_ENV_VAR: this.table.tableName,
41
44
  },
42
45
  });
43
46
  this.removeWebhookEndpoint = new aws_lambda_nodejs_1.NodejsFunction(this, id + "-remove-hooks-function", {
44
- entry: (0, path_1.join)(__dirname, "functions", exports.REMOVE_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts"),
47
+ entry: (0, path_1.join)(__dirname, "functions", exports.REMOVE_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"),
45
48
  functionName: (props.name ?? "webhook") + "-remove-hooks",
46
49
  environment: {
47
50
  WEBHOOK_TABLE_NAME_ENV_VAR: this.table.tableName,
48
51
  },
49
52
  });
50
53
  this.getWebhookEndpoints = new aws_lambda_nodejs_1.NodejsFunction(this, id + "-get-hooks-function", {
51
- entry: (0, path_1.join)(__dirname, "functions", exports.GET_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts"),
54
+ entry: (0, path_1.join)(__dirname, "functions", exports.GET_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"),
52
55
  functionName: (props.name ?? "webhook") + "-get-hook",
53
56
  environment: {
54
57
  WEBHOOK_TABLE_NAME_ENV_VAR: this.table.tableName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xube/kit-aws-hooks-infrastructure",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -17,14 +17,14 @@
17
17
  },
18
18
  "homepage": "https://github.com/XubeLtd/dev-kit#readme",
19
19
  "devDependencies": {
20
- "@xube/kit-build": "^0.0.27"
20
+ "@xube/kit-build": "^0.0.29"
21
21
  },
22
22
  "dependencies": {
23
- "@xube/kit-aws": "^0.0.27",
24
- "@xube/kit-aws-hooks": "^0.0.27",
25
- "@xube/kit-aws-infrastructure": "^0.0.27",
26
- "@xube/kit-constants": "^0.0.27",
27
- "@xube/kit-log": "^0.0.27",
23
+ "@xube/kit-aws": "^0.0.29",
24
+ "@xube/kit-aws-hooks": "^0.0.29",
25
+ "@xube/kit-aws-infrastructure": "^0.0.29",
26
+ "@xube/kit-constants": "^0.0.29",
27
+ "@xube/kit-log": "^0.0.29",
28
28
  "aws-cdk-lib": "^2.100.0",
29
29
  "aws-lambda": "^1.0.7",
30
30
  "constructs": "^10.3.0"
@@ -1,6 +1,7 @@
1
1
  import { SORT_KEY } from "@xube/kit-aws";
2
2
  import { PARTITION_KEY } from "@xube/kit-aws";
3
3
  import { WEBHOOK_TABLE_NAME_ENV_VAR } from "@xube/kit-aws-hooks";
4
+ import { XubeLog } from "@xube/kit-log";
4
5
  import {
5
6
  CorsOptions,
6
7
  IAuthorizer,
@@ -56,6 +57,11 @@ export class WebhookManagement extends Construct {
56
57
  },
57
58
  });
58
59
 
60
+ XubeLog.getInstance().log(__dirname);
61
+ XubeLog.getInstance().log(
62
+ join(__dirname, "functions", ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts")
63
+ );
64
+
59
65
  this.addWebhookEndpoints = new NodejsFunction(
60
66
  this,
61
67
  id + "-add-hooks-function",
@@ -63,7 +69,7 @@ export class WebhookManagement extends Construct {
63
69
  entry: join(
64
70
  __dirname,
65
71
  "functions",
66
- ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts"
72
+ ADD_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"
67
73
  ),
68
74
  functionName: (props.name ?? "webhook") + "-add-hooks",
69
75
  environment: {
@@ -78,7 +84,7 @@ export class WebhookManagement extends Construct {
78
84
  entry: join(
79
85
  __dirname,
80
86
  "functions",
81
- REMOVE_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts"
87
+ REMOVE_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"
82
88
  ),
83
89
  functionName: (props.name ?? "webhook") + "-remove-hooks",
84
90
  environment: {
@@ -93,7 +99,7 @@ export class WebhookManagement extends Construct {
93
99
  entry: join(
94
100
  __dirname,
95
101
  "functions",
96
- GET_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".ts"
102
+ GET_WEBHOOK_ENDPOINTS_FUNCTION_NAME + ".js"
97
103
  ),
98
104
  functionName: (props.name ?? "webhook") + "-get-hook",
99
105
  environment: {