@alienplatform/commands 3.3.64 → 3.3.65
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/index.js +6 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlienError, AlienError as AlienError$1, CommandStatusResponseSchema, CreateCommandResponseSchema, LeaseResponseSchema, ResponseHandlingSchema, defineError, defineError as defineError$1 } from "@alienplatform/core";
|
|
2
|
-
import { open, readFile } from "node:fs/promises";
|
|
2
|
+
import { open as open$1, readFile } from "node:fs/promises";
|
|
3
3
|
// ../../node_modules/.pnpm/zod@4.5.2/node_modules/zod/v4/core/util.js
|
|
4
4
|
function getEnumValues(entries) {
|
|
5
5
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
@@ -2536,7 +2536,7 @@ function bucketFor(state, inst) {
|
|
|
2536
2536
|
return bucket;
|
|
2537
2537
|
}
|
|
2538
2538
|
let handoff;
|
|
2539
|
-
const open
|
|
2539
|
+
const open = [];
|
|
2540
2540
|
const memo = {
|
|
2541
2541
|
alloc(_inst, payload, empty) {
|
|
2542
2542
|
const bucket = handoff;
|
|
@@ -2547,7 +2547,7 @@ const memo = {
|
|
|
2547
2547
|
issues: null
|
|
2548
2548
|
};
|
|
2549
2549
|
bucket.set(payload.value, entry);
|
|
2550
|
-
open
|
|
2550
|
+
open.push(entry);
|
|
2551
2551
|
return empty;
|
|
2552
2552
|
},
|
|
2553
2553
|
guard(inst) {
|
|
@@ -2610,10 +2610,10 @@ const memo = {
|
|
|
2610
2610
|
return payload;
|
|
2611
2611
|
}
|
|
2612
2612
|
handoff = bucket;
|
|
2613
|
-
const depth = open
|
|
2613
|
+
const depth = open.length;
|
|
2614
2614
|
const result = base(payload, ctx);
|
|
2615
2615
|
handoff = void 0;
|
|
2616
|
-
const entry = open
|
|
2616
|
+
const entry = open.length > depth ? open.pop() : void 0;
|
|
2617
2617
|
if (result instanceof Promise) return result.then((r) => {
|
|
2618
2618
|
if (entry) entry.issues = r.issues.length ? cloneIssues(r.issues) : NO_ISSUES;
|
|
2619
2619
|
return r;
|
|
@@ -5841,7 +5841,7 @@ var CapabilityFile = class {
|
|
|
5841
5841
|
async readText() {
|
|
5842
5842
|
let handle;
|
|
5843
5843
|
try {
|
|
5844
|
-
handle = await open(this.path, "r");
|
|
5844
|
+
handle = await open$1(this.path, "r");
|
|
5845
5845
|
} catch (error) {
|
|
5846
5846
|
throw unusable("cannot open the capability file", await AlienError$1.from(error));
|
|
5847
5847
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/commands",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.65",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@alienplatform/typescript-config": "^1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@alienplatform/core": "^3.3.
|
|
53
|
+
"@alienplatform/core": "^3.3.65"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsdown && tsc -p tsconfig.build.json --emitDeclarationOnly",
|