token-goat 2.6.30 → 2.6.32
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 +55 -16
- package/SECURITY.md +136 -0
- package/dist/{token-goat-hook-chunk-KNVHTGEX.mjs → token-goat-chunk-3KW5C2KQ.mjs} +1 -1
- package/dist/{token-goat-hook-chunk-7WC2H3EW.mjs → token-goat-chunk-3UOG7PSZ.mjs} +12 -3
- package/dist/{token-goat-hook-chunk-FKZ5RBT4.mjs → token-goat-chunk-4M7PSAO3.mjs} +8 -8
- package/dist/token-goat-chunk-5EXIMDHA.mjs +5113 -0
- package/dist/token-goat-chunk-DFBD2FFU.mjs +9627 -0
- package/dist/token-goat-chunk-DNEPSN3P.mjs +156 -0
- package/dist/token-goat-chunk-GWZJ5SI2.mjs +13684 -0
- package/dist/token-goat-chunk-N53GXI2Z.mjs +9660 -0
- package/dist/token-goat-chunk-O7TGKV5I.mjs +901 -0
- package/dist/token-goat-chunk-RD6O3PJU.mjs +15606 -0
- package/dist/token-goat-chunk-TBCLQTPG.mjs +24 -0
- package/dist/token-goat-chunk-W3MX4LQV.mjs +707 -0
- package/dist/token-goat-chunk-X5OPORR4.mjs +18331 -0
- package/dist/{token-goat-hook-chunk-ZRJUZZQE.mjs → token-goat-chunk-YWYITDOS.mjs} +5 -6
- package/dist/{token-goat-hook-chunk-XNZLMFQ2.mjs → token-goat-hook-chunk-6NF4WM2U.mjs} +2772 -883
- package/dist/token-goat-hook-chunk-ANFXTEQO.mjs +23 -0
- package/dist/token-goat-hook-chunk-DHW6SRHR.mjs +5099 -0
- package/dist/token-goat-hook-chunk-DJZGX27J.mjs +9624 -0
- package/dist/token-goat-hook-chunk-J2ZK2FYW.mjs +33 -0
- package/dist/token-goat-hook-chunk-K33JMLL7.mjs +63 -0
- package/dist/token-goat-hook-chunk-LFYT4DLB.mjs +901 -0
- package/dist/token-goat-hook-chunk-PCP4W65Z.mjs +112 -0
- package/dist/token-goat-hook-chunk-Q5URQRIF.mjs +9660 -0
- package/dist/{token-goat-hook-chunk-FMQ37OQD.mjs → token-goat-hook-chunk-TBJ5PUPQ.mjs} +28 -26
- package/dist/token-goat-hook-chunk-TKXOXN4J.mjs +14860 -0
- package/dist/token-goat-hook-chunk-UXD3B4OY.mjs +156 -0
- package/dist/token-goat-hook-chunk-VHZECEQD.mjs +13684 -0
- package/dist/token-goat-hook-chunk-WBTHUYJP.mjs +18329 -0
- package/dist/token-goat-hook.mjs +7 -4
- package/dist/token-goat.core.mjs +14 -89574
- package/package.json +15 -6
- package/dist/token-goat-hook-chunk-4SM2PAR6.mjs +0 -33590
- package/dist/token-goat-hook-chunk-5B3OWRNC.mjs +0 -145
- package/dist/token-goat-hook-chunk-VKAQNN2R.mjs +0 -24416
|
@@ -2,10 +2,10 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
clearModuleCaches
|
|
5
|
-
} from "./token-goat-
|
|
5
|
+
} from "./token-goat-chunk-3KW5C2KQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
init_define_import_meta_env
|
|
8
|
-
} from "./token-goat-
|
|
8
|
+
} from "./token-goat-chunk-3UOG7PSZ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/batch_serve.ts
|
|
11
11
|
init_define_import_meta_env();
|
|
@@ -23,12 +23,12 @@ function captureOutput() {
|
|
|
23
23
|
let errText = "";
|
|
24
24
|
const realOut = process.stdout.write.bind(process.stdout);
|
|
25
25
|
const realErr = process.stderr.write.bind(process.stderr);
|
|
26
|
-
const sink = (append) => (chunk, enc, cb) => {
|
|
26
|
+
const sink = (append) => ((chunk, enc, cb) => {
|
|
27
27
|
append(typeof chunk === "string" ? chunk : String(chunk));
|
|
28
28
|
const done = typeof enc === "function" ? enc : cb;
|
|
29
29
|
if (typeof done === "function") done();
|
|
30
30
|
return true;
|
|
31
|
-
};
|
|
31
|
+
});
|
|
32
32
|
process.stdout.write = sink((s) => {
|
|
33
33
|
out += s;
|
|
34
34
|
});
|
|
@@ -46,8 +46,7 @@ function captureOutput() {
|
|
|
46
46
|
}
|
|
47
47
|
async function serveOne(req, runFn) {
|
|
48
48
|
const cwdBefore = process.cwd();
|
|
49
|
-
const restoreEnv = req.env
|
|
50
|
-
} : swapEnv(req.env);
|
|
49
|
+
const restoreEnv = swapEnv(req.env ?? { ...process.env });
|
|
51
50
|
const cap = captureOutput();
|
|
52
51
|
let status;
|
|
53
52
|
try {
|