lambda-live-debugger 1.2.4 → 1.2.6
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/README.md +2 -0
- package/dist/configuration/getConfigFromTsConfigFile.mjs +18 -0
- package/dist/configuration/getConfigFromWizard.mjs +1 -1
- package/dist/extension/extension.zip +0 -0
- package/dist/index.mjs +4 -4
- package/dist/types/lldConfig.d.ts +1 -1
- package/fix-imports.js +4 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -246,6 +246,7 @@ getLambdas: async (foundLambdas, config) => {
|
|
|
246
246
|
.replace('.js', '.ts');
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
+
return foundLambdas;
|
|
249
250
|
};
|
|
250
251
|
```
|
|
251
252
|
|
|
@@ -264,6 +265,7 @@ export default {
|
|
|
264
265
|
};
|
|
265
266
|
}
|
|
266
267
|
}
|
|
268
|
+
return foundLambdas;
|
|
267
269
|
}
|
|
268
270
|
} satisfies LldConfigTs;
|
|
269
271
|
```
|
|
@@ -30,6 +30,24 @@ export async function getConfigTsFromConfigFile(configFile) {
|
|
|
30
30
|
outfile: compileOutput,
|
|
31
31
|
sourcemap: true,
|
|
32
32
|
treeShaking: true,
|
|
33
|
+
tsconfigRaw: {
|
|
34
|
+
compilerOptions: {
|
|
35
|
+
esModuleInterop: true,
|
|
36
|
+
skipLibCheck: true,
|
|
37
|
+
target: 'esnext',
|
|
38
|
+
allowJs: true,
|
|
39
|
+
resolveJsonModule: true,
|
|
40
|
+
moduleDetection: 'force',
|
|
41
|
+
isolatedModules: true,
|
|
42
|
+
verbatimModuleSyntax: false,
|
|
43
|
+
strict: true,
|
|
44
|
+
noUncheckedIndexedAccess: true,
|
|
45
|
+
noImplicitOverride: true,
|
|
46
|
+
module: 'NodeNext',
|
|
47
|
+
sourceMap: true,
|
|
48
|
+
lib: ['esnext'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
33
51
|
banner: {
|
|
34
52
|
js: [
|
|
35
53
|
`import { createRequire as topLevelCreateRequire } from 'module';`,
|
|
@@ -26,7 +26,7 @@ export async function getConfigFromWizard({ configFromCliArgs, supportedFramewor
|
|
|
26
26
|
currentFramework,
|
|
27
27
|
},
|
|
28
28
|
]);
|
|
29
|
-
if (answers.framework === 'other') {
|
|
29
|
+
if (answers.framework === 'other' || answers.framework === 'none') {
|
|
30
30
|
answers.framework = undefined;
|
|
31
31
|
}
|
|
32
32
|
const oldContext = currentConfig?.context ?? [];
|
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CdkFramework } from './frameworks/cdkFramework.
|
|
2
|
-
export { SlsFramework } from './frameworks/slsFramework.
|
|
3
|
-
export { SamFramework } from './frameworks/samFramework.
|
|
4
|
-
export { TerraformFramework } from './frameworks/terraformFramework.
|
|
1
|
+
export { CdkFramework } from './frameworks/cdkFramework.mjs';
|
|
2
|
+
export { SlsFramework } from './frameworks/slsFramework.mjs';
|
|
3
|
+
export { SamFramework } from './frameworks/samFramework.mjs';
|
|
4
|
+
export { TerraformFramework } from './frameworks/terraformFramework.mjs';
|
package/fix-imports.js
CHANGED
|
@@ -20,7 +20,10 @@ async function processFiles(directory) {
|
|
|
20
20
|
const updatedData = data
|
|
21
21
|
.split('\n')
|
|
22
22
|
.map((line) => {
|
|
23
|
-
if (
|
|
23
|
+
if (
|
|
24
|
+
line.trim().startsWith('import') ||
|
|
25
|
+
line.trim().startsWith('export')
|
|
26
|
+
) {
|
|
24
27
|
return line.replace(/\.js"/g, '.mjs"').replace(/\.js'/g, ".mjs'");
|
|
25
28
|
}
|
|
26
29
|
return line;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lambda-live-debugger",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Debug Lambda functions locally like it is running in the cloud",
|
|
6
6
|
"repository": {
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"email": "marko@serverlesslife.com",
|
|
14
14
|
"organization": false
|
|
15
15
|
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": "./dist/index.mjs"
|
|
18
|
+
},
|
|
16
19
|
"keywords": [
|
|
17
20
|
"aws",
|
|
18
21
|
"lambda",
|