bitfab 0.36.10 → 0.36.11
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/{chunk-AAMRJGZJ.js → chunk-EKOAKLZC.js} +19 -9
- package/dist/chunk-EKOAKLZC.js.map +1 -0
- package/dist/{chunk-RSM2TLKG.js → chunk-VDFPZYLH.js} +3 -3
- package/dist/index.cjs +18 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/node.cjs +18 -8
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +2 -2
- package/dist/{replay-WKWBBIGE.js → replay-TW3ONJ3W.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-AAMRJGZJ.js.map +0 -1
- /package/dist/{chunk-RSM2TLKG.js.map → chunk-VDFPZYLH.js.map} +0 -0
- /package/dist/{replay-WKWBBIGE.js.map → replay-TW3ONJ3W.js.map} +0 -0
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
toJsonSafe,
|
|
17
17
|
toJsonSafeReport,
|
|
18
18
|
warnOnce
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EKOAKLZC.js";
|
|
20
20
|
|
|
21
21
|
// src/processorPayload.ts
|
|
22
22
|
var SERIALIZATION_DEGRADED_STEP = "serialization_degraded";
|
|
@@ -3371,7 +3371,7 @@ var Bitfab = class {
|
|
|
3371
3371
|
`Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
|
|
3372
3372
|
);
|
|
3373
3373
|
}
|
|
3374
|
-
const { replay: doReplay } = await import("./replay-
|
|
3374
|
+
const { replay: doReplay } = await import("./replay-TW3ONJ3W.js");
|
|
3375
3375
|
return doReplay(
|
|
3376
3376
|
this.httpClient,
|
|
3377
3377
|
this.serviceUrl,
|
|
@@ -3609,4 +3609,4 @@ export {
|
|
|
3609
3609
|
BitfabFunction,
|
|
3610
3610
|
finalizers
|
|
3611
3611
|
};
|
|
3612
|
-
//# sourceMappingURL=chunk-
|
|
3612
|
+
//# sourceMappingURL=chunk-VDFPZYLH.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -51,7 +51,7 @@ var __version__;
|
|
|
51
51
|
var init_version_generated = __esm({
|
|
52
52
|
"src/version.generated.ts"() {
|
|
53
53
|
"use strict";
|
|
54
|
-
__version__ = "0.36.
|
|
54
|
+
__version__ = "0.36.11";
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
|
|
@@ -2269,7 +2269,7 @@ async function captureCodeChangeFromGit(cwd, label) {
|
|
|
2269
2269
|
const tracked = await git(root, [
|
|
2270
2270
|
"diff",
|
|
2271
2271
|
"--name-status",
|
|
2272
|
-
"--
|
|
2272
|
+
"--find-renames",
|
|
2273
2273
|
"-z",
|
|
2274
2274
|
base,
|
|
2275
2275
|
"--",
|
|
@@ -2285,23 +2285,23 @@ async function captureCodeChangeFromGit(cwd, label) {
|
|
|
2285
2285
|
]);
|
|
2286
2286
|
const entries = [
|
|
2287
2287
|
...parseNameStatusZ(tracked ?? ""),
|
|
2288
|
-
...(untracked ?? "").split(NUL).filter((p) => p.length > 0).map((path) => ({ status: "A", path }))
|
|
2288
|
+
...(untracked ?? "").split(NUL).filter((p) => p.length > 0).map((path) => ({ status: "A", beforePath: path, path }))
|
|
2289
2289
|
];
|
|
2290
2290
|
if (entries.length === 0) {
|
|
2291
2291
|
return null;
|
|
2292
2292
|
}
|
|
2293
2293
|
const files = [];
|
|
2294
2294
|
let totalBytes = 0;
|
|
2295
|
-
for (const { status, path } of entries) {
|
|
2295
|
+
for (const { status, beforePath, path } of entries) {
|
|
2296
2296
|
if (files.length >= MAX_FILES) {
|
|
2297
2297
|
break;
|
|
2298
2298
|
}
|
|
2299
|
-
const beforeBytes = status === "A" ? 0 : await blobBytes(base,
|
|
2299
|
+
const beforeBytes = status === "A" ? 0 : await blobBytes(base, beforePath);
|
|
2300
2300
|
const afterBytes = status === "D" ? 0 : await workingBytes(path);
|
|
2301
2301
|
if (beforeBytes > MAX_FILE_BYTES || afterBytes > MAX_FILE_BYTES) {
|
|
2302
2302
|
continue;
|
|
2303
2303
|
}
|
|
2304
|
-
const before = (status === "A" ? "" : await git(root, ["show", `${base}:${
|
|
2304
|
+
const before = (status === "A" ? "" : await git(root, ["show", `${base}:${beforePath}`]) ?? "").replace(/\r\n/g, "\n");
|
|
2305
2305
|
const after = (status === "D" ? "" : await readWorkingFile(readFile, root, path)).replace(/\r\n/g, "\n");
|
|
2306
2306
|
if (before === after) {
|
|
2307
2307
|
continue;
|
|
@@ -2359,8 +2359,18 @@ async function readWorkingFile(readFile, root, path) {
|
|
|
2359
2359
|
function parseNameStatusZ(raw) {
|
|
2360
2360
|
const parts = raw.split(NUL).filter((p) => p.length > 0);
|
|
2361
2361
|
const out = [];
|
|
2362
|
-
|
|
2363
|
-
|
|
2362
|
+
let i = 0;
|
|
2363
|
+
while (i + 1 < parts.length) {
|
|
2364
|
+
const status = parts[i].charAt(0);
|
|
2365
|
+
i += 1;
|
|
2366
|
+
const beforePath = parts[i];
|
|
2367
|
+
i += 1;
|
|
2368
|
+
if ((status === "R" || status === "C") && i < parts.length) {
|
|
2369
|
+
out.push({ status, beforePath, path: parts[i] });
|
|
2370
|
+
i += 1;
|
|
2371
|
+
} else {
|
|
2372
|
+
out.push({ status, beforePath, path: beforePath });
|
|
2373
|
+
}
|
|
2364
2374
|
}
|
|
2365
2375
|
return out;
|
|
2366
2376
|
}
|