@bitfab/sdk 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
|
@@ -42,7 +42,7 @@ var __version__;
|
|
|
42
42
|
var init_version_generated = __esm({
|
|
43
43
|
"src/version.generated.ts"() {
|
|
44
44
|
"use strict";
|
|
45
|
-
__version__ = "0.36.
|
|
45
|
+
__version__ = "0.36.11";
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -2260,7 +2260,7 @@ async function captureCodeChangeFromGit(cwd, label) {
|
|
|
2260
2260
|
const tracked = await git(root, [
|
|
2261
2261
|
"diff",
|
|
2262
2262
|
"--name-status",
|
|
2263
|
-
"--
|
|
2263
|
+
"--find-renames",
|
|
2264
2264
|
"-z",
|
|
2265
2265
|
base,
|
|
2266
2266
|
"--",
|
|
@@ -2276,23 +2276,23 @@ async function captureCodeChangeFromGit(cwd, label) {
|
|
|
2276
2276
|
]);
|
|
2277
2277
|
const entries = [
|
|
2278
2278
|
...parseNameStatusZ(tracked ?? ""),
|
|
2279
|
-
...(untracked ?? "").split(NUL).filter((p) => p.length > 0).map((path) => ({ status: "A", path }))
|
|
2279
|
+
...(untracked ?? "").split(NUL).filter((p) => p.length > 0).map((path) => ({ status: "A", beforePath: path, path }))
|
|
2280
2280
|
];
|
|
2281
2281
|
if (entries.length === 0) {
|
|
2282
2282
|
return null;
|
|
2283
2283
|
}
|
|
2284
2284
|
const files = [];
|
|
2285
2285
|
let totalBytes = 0;
|
|
2286
|
-
for (const { status, path } of entries) {
|
|
2286
|
+
for (const { status, beforePath, path } of entries) {
|
|
2287
2287
|
if (files.length >= MAX_FILES) {
|
|
2288
2288
|
break;
|
|
2289
2289
|
}
|
|
2290
|
-
const beforeBytes = status === "A" ? 0 : await blobBytes(base,
|
|
2290
|
+
const beforeBytes = status === "A" ? 0 : await blobBytes(base, beforePath);
|
|
2291
2291
|
const afterBytes = status === "D" ? 0 : await workingBytes(path);
|
|
2292
2292
|
if (beforeBytes > MAX_FILE_BYTES || afterBytes > MAX_FILE_BYTES) {
|
|
2293
2293
|
continue;
|
|
2294
2294
|
}
|
|
2295
|
-
const before = (status === "A" ? "" : await git(root, ["show", `${base}:${
|
|
2295
|
+
const before = (status === "A" ? "" : await git(root, ["show", `${base}:${beforePath}`]) ?? "").replace(/\r\n/g, "\n");
|
|
2296
2296
|
const after = (status === "D" ? "" : await readWorkingFile(readFile, root, path)).replace(/\r\n/g, "\n");
|
|
2297
2297
|
if (before === after) {
|
|
2298
2298
|
continue;
|
|
@@ -2350,8 +2350,18 @@ async function readWorkingFile(readFile, root, path) {
|
|
|
2350
2350
|
function parseNameStatusZ(raw) {
|
|
2351
2351
|
const parts = raw.split(NUL).filter((p) => p.length > 0);
|
|
2352
2352
|
const out = [];
|
|
2353
|
-
|
|
2354
|
-
|
|
2353
|
+
let i = 0;
|
|
2354
|
+
while (i + 1 < parts.length) {
|
|
2355
|
+
const status = parts[i].charAt(0);
|
|
2356
|
+
i += 1;
|
|
2357
|
+
const beforePath = parts[i];
|
|
2358
|
+
i += 1;
|
|
2359
|
+
if ((status === "R" || status === "C") && i < parts.length) {
|
|
2360
|
+
out.push({ status, beforePath, path: parts[i] });
|
|
2361
|
+
i += 1;
|
|
2362
|
+
} else {
|
|
2363
|
+
out.push({ status, beforePath, path: beforePath });
|
|
2364
|
+
}
|
|
2355
2365
|
}
|
|
2356
2366
|
return out;
|
|
2357
2367
|
}
|