lambda-live-debugger 1.10.2 → 1.10.3-alpha.1
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.
package/dist/cloudFormation.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { AwsCredentials } from './awsCredentials.mjs';
|
|
|
2
2
|
import { Logger } from './logger.mjs';
|
|
3
3
|
import * as yaml from 'yaml';
|
|
4
4
|
let cloudFormationClient;
|
|
5
|
+
const originalConsoleError = console.error;
|
|
5
6
|
/**
|
|
6
7
|
* Get CloudFormation stack template
|
|
7
8
|
* @param stackName
|
|
@@ -64,11 +65,16 @@ async function getCloudFormationClient(awsConfiguration) {
|
|
|
64
65
|
* @returns
|
|
65
66
|
*/
|
|
66
67
|
async function getCloudFormationResources(stackName, awsConfiguration) {
|
|
68
|
+
let ListStackResourcesCommand;
|
|
67
69
|
// temporary disable console.error because SAM framework outputs useless errors
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
try {
|
|
71
|
+
console.error = function () { };
|
|
72
|
+
const clientCloudFormation = await import('@aws-sdk/client-cloudformation');
|
|
73
|
+
ListStackResourcesCommand = clientCloudFormation.ListStackResourcesCommand;
|
|
74
|
+
}
|
|
75
|
+
finally {
|
|
76
|
+
console.error = originalConsoleError;
|
|
77
|
+
}
|
|
72
78
|
const cloudFormationClient = await getCloudFormationClient(awsConfiguration);
|
|
73
79
|
try {
|
|
74
80
|
let nextToken = undefined;
|
|
Binary file
|