serverless-spy 0.0.22 → 0.0.25
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/.jsii +2 -2
- package/dist/releasetag.txt +1 -1
- package/lib/extension/dist/layer/nodejs/node_modules/interceptor.js +25260 -0
- package/lib/extension/dist/layer/nodejs/node_modules/interceptor.js.map +7 -0
- package/lib/src/ServerlessSpy.js +1 -1
- package/package.json +1 -1
- package/scripts/run-task +0 -1836
- package/sst-esbuild/esbuild.js +0 -57
- package/tsconfig.npm.json +0 -51
package/sst-esbuild/esbuild.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
|
|
3
|
-
const getCopyFunction =
|
|
4
|
-
(files = {}) =>
|
|
5
|
-
async () => {
|
|
6
|
-
// const operations = Object.entries(files).map(([target, source]) =>
|
|
7
|
-
// cp(source, target)
|
|
8
|
-
// );
|
|
9
|
-
// await Promise.all(operations);
|
|
10
|
-
//console.log("************** getCopyFunction");
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const afterFunction =
|
|
14
|
-
(out = {}) =>
|
|
15
|
-
async (e) => {
|
|
16
|
-
// const operations = Object.entries(files).map(([target, source]) =>
|
|
17
|
-
// cp(source, target)
|
|
18
|
-
// );
|
|
19
|
-
// await Promise.all(operations);
|
|
20
|
-
//console.log("AFTER", out);
|
|
21
|
-
|
|
22
|
-
// fs.appendFileSync(
|
|
23
|
-
// out,
|
|
24
|
-
// "\nconsole.log('*************** INJECTED ***************')"
|
|
25
|
-
// );
|
|
26
|
-
|
|
27
|
-
const data = fs.readFileSync(out, 'utf8');
|
|
28
|
-
//console.log(data);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const copyFilePlugin = ({ before, after }) => ({
|
|
32
|
-
name: 'copyFile',
|
|
33
|
-
async setup(build) {
|
|
34
|
-
//console.log("************** before: " + before);
|
|
35
|
-
//console.log("BUILD ", build);
|
|
36
|
-
const out = build.initialOptions.outfile;
|
|
37
|
-
|
|
38
|
-
//before && build.onStart(getCopyFunction(before));
|
|
39
|
-
//after && build.onEnd(getCopyFunction(after));
|
|
40
|
-
build.onEnd(afterFunction(out));
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
console.log('**************** DELA *****************');
|
|
45
|
-
|
|
46
|
-
module.exports = [
|
|
47
|
-
copyFilePlugin({
|
|
48
|
-
before: {
|
|
49
|
-
// copy before bundling
|
|
50
|
-
'./assets/favicon.png': './media/images/favicon.png',
|
|
51
|
-
},
|
|
52
|
-
after: {
|
|
53
|
-
// copy after bundling
|
|
54
|
-
'./logs/build-report.json': './dist/report.json',
|
|
55
|
-
},
|
|
56
|
-
}),
|
|
57
|
-
];
|
package/tsconfig.npm.json
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
//"lib": ["es2021"],
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
//"target": "es2021",
|
|
6
|
-
//"strict": true,
|
|
7
|
-
"allowSyntheticDefaultImports": true,
|
|
8
|
-
//"esModuleInterop": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
//"forceConsistentCasingInFileNames": true,
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
//"resolveJsonModule": true,
|
|
13
|
-
|
|
14
|
-
// "outDir": "build",
|
|
15
|
-
"declarationMap": false,
|
|
16
|
-
"inlineSourceMap": true,
|
|
17
|
-
"inlineSources": true,
|
|
18
|
-
"alwaysStrict": true,
|
|
19
|
-
"charset": "utf8",
|
|
20
|
-
"declaration": true,
|
|
21
|
-
"experimentalDecorators": true,
|
|
22
|
-
"incremental": true,
|
|
23
|
-
"lib": [
|
|
24
|
-
"es2020"
|
|
25
|
-
],
|
|
26
|
-
// "module": "CommonJS",
|
|
27
|
-
"newLine": "lf",
|
|
28
|
-
"noEmitOnError": true,
|
|
29
|
-
"noFallthroughCasesInSwitch": true,
|
|
30
|
-
"noImplicitAny": true,
|
|
31
|
-
"noImplicitReturns": true,
|
|
32
|
-
"noImplicitThis": true,
|
|
33
|
-
"noUnusedLocals": true,
|
|
34
|
-
"noUnusedParameters": true,
|
|
35
|
-
"resolveJsonModule": true,
|
|
36
|
-
"strict": true,
|
|
37
|
-
"strictNullChecks": true,
|
|
38
|
-
"strictPropertyInitialization": true,
|
|
39
|
-
"stripInternal": false,
|
|
40
|
-
"target": "ES2020",
|
|
41
|
-
"composite": false,
|
|
42
|
-
"tsBuildInfoFile": "lib/tsconfig.tsbuildinfo"
|
|
43
|
-
},
|
|
44
|
-
"include": [
|
|
45
|
-
"src/**/*.ts",
|
|
46
|
-
"common/**/*.ts",
|
|
47
|
-
"listener/**/*.ts",
|
|
48
|
-
"cli/**/*.ts",
|
|
49
|
-
"index.ts",
|
|
50
|
-
]
|
|
51
|
-
}
|