chatbot-nc 2.2.20 → 2.2.21

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.
@@ -16,7 +16,7 @@ export declare const AWS: {
16
16
  abortMultipartUpload: (params: import("@aws-sdk/client-s3").AbortMultipartUploadCommandInput) => Promise<import("@aws-sdk/client-s3").AbortMultipartUploadCommandOutput>;
17
17
  };
18
18
  Lambda: {
19
- listFunctions: () => Promise<import("@aws-sdk/client-lambda").FunctionConfiguration[] | undefined>;
19
+ listFunctions: () => Promise<import("@aws-sdk/client-lambda").FunctionConfiguration[]>;
20
20
  };
21
21
  LexRuntime: {
22
22
  recognizeText: (lexParams: import("@aws-sdk/client-lex-runtime-v2").RecognizeTextCommandInput) => Promise<import("@aws-sdk/client-lex-runtime-v2").RecognizeTextCommandOutput>;
@@ -1,3 +1,3 @@
1
1
  export declare const Lambda: {
2
- listFunctions: () => Promise<import("@aws-sdk/client-lambda").FunctionConfiguration[] | undefined>;
2
+ listFunctions: () => Promise<import("@aws-sdk/client-lambda").FunctionConfiguration[]>;
3
3
  };
@@ -11,9 +11,22 @@ const client = new client_lambda_1.LambdaClient({ region: awsRegion });
11
11
  */
12
12
  const listFunctions = async () => {
13
13
  try {
14
- const command = await new client_lambda_1.ListFunctionsCommand({});
15
- let response = await client.send(command);
16
- return response.Functions;
14
+ // const command = await new ListFunctionsCommand({});
15
+ // let response = await client.send(command);
16
+ // return response.Functions;
17
+ const allFunctions = [];
18
+ let marker;
19
+ do {
20
+ const response = await client.send(new client_lambda_1.ListFunctionsCommand({
21
+ Marker: marker,
22
+ MaxItems: 50, // max allowed
23
+ }));
24
+ if (response.Functions) {
25
+ allFunctions.push(...response.Functions);
26
+ }
27
+ marker = response.NextMarker;
28
+ } while (marker);
29
+ return allFunctions;
17
30
  }
18
31
  catch (error) {
19
32
  console.error(error);
@@ -1 +1 @@
1
- {"version":3,"file":"AWSLambda.js","sourceRoot":"","sources":["../../../../aws/services/AWSLamb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CAAC;gBACvB,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,EAAE,EAAE,cAAc;aAC7B,CAAC,CACH,CAAC;YAEF,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;gBACvB,YAAY,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;YAC3C,CAAC;YAED,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC;QAC/B,CAAC,QAAQ,MAAM,EAAE;QAEjB,OAAO,YAAY,CAAC;IACtB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,aAAa;CACd,CAAA"}
@@ -16,7 +16,7 @@ export declare const AWS: {
16
16
  abortMultipartUpload: (params: import("@aws-sdk/client-s3").AbortMultipartUploadCommandInput) => Promise<import("@aws-sdk/client-s3").AbortMultipartUploadCommandOutput>;
17
17
  };
18
18
  Lambda: {
19
- listFunctions: () => Promise<import("@aws-sdk/client-lambda").FunctionConfiguration[] | undefined>;
19
+ listFunctions: () => Promise<import("@aws-sdk/client-lambda").FunctionConfiguration[]>;
20
20
  };
21
21
  LexRuntime: {
22
22
  recognizeText: (lexParams: import("@aws-sdk/client-lex-runtime-v2").RecognizeTextCommandInput) => Promise<import("@aws-sdk/client-lex-runtime-v2").RecognizeTextCommandOutput>;
@@ -1,3 +1,3 @@
1
1
  export declare const Lambda: {
2
- listFunctions: () => Promise<import("@aws-sdk/client-lambda").FunctionConfiguration[] | undefined>;
2
+ listFunctions: () => Promise<import("@aws-sdk/client-lambda").FunctionConfiguration[]>;
3
3
  };
@@ -17,9 +17,22 @@ const client = new LambdaClient({ region: awsRegion });
17
17
  */
18
18
  const listFunctions = () => __awaiter(void 0, void 0, void 0, function* () {
19
19
  try {
20
- const command = yield new ListFunctionsCommand({});
21
- let response = yield client.send(command);
22
- return response.Functions;
20
+ // const command = await new ListFunctionsCommand({});
21
+ // let response = await client.send(command);
22
+ // return response.Functions;
23
+ const allFunctions = [];
24
+ let marker;
25
+ do {
26
+ const response = yield client.send(new ListFunctionsCommand({
27
+ Marker: marker,
28
+ MaxItems: 50, // max allowed
29
+ }));
30
+ if (response.Functions) {
31
+ allFunctions.push(...response.Functions);
32
+ }
33
+ marker = response.NextMarker;
34
+ } while (marker);
35
+ return allFunctions;
23
36
  }
24
37
  catch (error) {
25
38
  console.error(error);
@@ -1 +1 @@
1
- {"version":3,"file":"AWSLambda.js","sourceRoot":"","sources":["../../../../aws/services/AWSLambda.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAmD;AACnD,OAAO,EAAE,YAAY,EAAC,oBAAoB,EAAG,MAAM,wBAAwB,CAAC,CAAC,oBAAoB;AAEjG,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAChE,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,aAAa,GAAG,GAAO,EAAE;IAC7B,IAAI,CAAC;QACC,MAAM,OAAO,GAAG,MAAM,IAAI,oBAAoB,CAAC,EAAE,CAAC,CAAC;QACnD,IAAI,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,OAAO,QAAQ,CAAC,SAAS,CAAC;IAChC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,MAAM,KAAK,CAAC;IAChB,CAAC;AACH,CAAC,CAAA,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAG;IACjB,aAAa;CACjB,CAAA"}
1
+ {"version":3,"file":"AWSLambda.js","sourceRoot":"","sources":["../../../../aws/services/AWSLambda.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAmD;AACnD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC,CAAC,oBAAoB;AAEjG,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAChE,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,aAAa,GAAG,GAAS,EAAE;IAC/B,IAAI,CAAC;QACH,sDAAsD;QACtD,6CAA6C;QAC7C,6BAA6B;QAC7B,MAAM,YAAY,GAAG,EAAE,CAAC;QACxB,IAAI,MAA0B,CAAC;QAE/B,GAAG,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAChC,IAAI,oBAAoB,CAAC;gBACvB,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,EAAE,EAAE,cAAc;aAC7B,CAAC,CACH,CAAC;YAEF,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;gBACvB,YAAY,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;YAC3C,CAAC;YAED,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC;QAC/B,CAAC,QAAQ,MAAM,EAAE;QAEjB,OAAO,YAAY,CAAC;IACtB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAA,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,aAAa;CACd,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatbot-nc",
3
- "version": "2.2.20",
3
+ "version": "2.2.21",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",