disk 1.12.0 → 1.12.1
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/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as deleteApiKey, k as ArchilApiError, l as listApiKeys, n as createApiKey, r as createDisk, s as getDisk, t as configure, u as listDisks } from "./src-
|
|
3
|
-
import { a as addGlobalOptions, c as resolveProgramCredentials, d as Command, l as renderTable, o as addProfileCommands, s as isProfileCommand, t as optionalInteger } from "./sandbox-options-
|
|
2
|
+
import { a as deleteApiKey, k as ArchilApiError, l as listApiKeys, n as createApiKey, r as createDisk, s as getDisk, t as configure, u as listDisks } from "./src-CsxpFPq3.mjs";
|
|
3
|
+
import { a as addGlobalOptions, c as resolveProgramCredentials, d as Command, l as renderTable, o as addProfileCommands, s as isProfileCommand, t as optionalInteger } from "./sandbox-options-Df_pRGJW.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
//#region bin/cli.ts
|
|
6
6
|
const pkg = createRequire(import.meta.url)("../package.json");
|
package/dist/index.cjs
CHANGED
|
@@ -288,14 +288,15 @@ function deriveS3BaseUrl(controlBaseUrl) {
|
|
|
288
288
|
}
|
|
289
289
|
//#endregion
|
|
290
290
|
//#region src/version.ts
|
|
291
|
-
const VERSION = "1.12.
|
|
291
|
+
const VERSION = "1.12.1";
|
|
292
292
|
const USER_AGENT = `archil-js/${VERSION}`;
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region src/client.ts
|
|
295
295
|
function isNodeRuntime() {
|
|
296
296
|
return typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
297
297
|
}
|
|
298
|
-
const
|
|
298
|
+
const undiciSpecifier = isNodeRuntime() && process.versions.bun !== void 0 ? "undici/index.js" : "undici";
|
|
299
|
+
const undiciModule = isNodeRuntime() ? import(undiciSpecifier) : void 0;
|
|
299
300
|
const CONTROL_PLANE_CONNECTIONS = 1;
|
|
300
301
|
const IDLE_SESSION_TIMEOUT_MS = 3e4;
|
|
301
302
|
function isAsyncIterableBody(body) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ArchilError, C as Disk, D as VERSION, E as USER_AGENT, M as ImageBuildError, N as SandboxFileTransferError, P as SandboxPauseError, S as Disks, T as effectiveUploadPartSize, _ as Sandbox, a as deleteApiKey, b as SandboxProcesses, c as getSandbox, d as listSandboxes, f as workspace, g as Sandboxes, h as Tokens, i as createSandbox, j as ArchilS3Error, k as ArchilApiError, l as listApiKeys, m as Workspace, n as createApiKey, o as exec, p as Archil, r as createDisk, s as getDisk, t as configure, u as listDisks, v as SandboxFiles, w as DiskMultipart, x as Images, y as SandboxProcess } from "./src-
|
|
1
|
+
import { A as ArchilError, C as Disk, D as VERSION, E as USER_AGENT, M as ImageBuildError, N as SandboxFileTransferError, P as SandboxPauseError, S as Disks, T as effectiveUploadPartSize, _ as Sandbox, a as deleteApiKey, b as SandboxProcesses, c as getSandbox, d as listSandboxes, f as workspace, g as Sandboxes, h as Tokens, i as createSandbox, j as ArchilS3Error, k as ArchilApiError, l as listApiKeys, m as Workspace, n as createApiKey, o as exec, p as Archil, r as createDisk, s as getDisk, t as configure, u as listDisks, v as SandboxFiles, w as DiskMultipart, x as Images, y as SandboxProcess } from "./src-CsxpFPq3.mjs";
|
|
2
2
|
export { Archil, ArchilApiError, ArchilError, ArchilS3Error, Disk, DiskMultipart, Disks, ImageBuildError, Images, Sandbox, SandboxFileTransferError, SandboxFiles, SandboxPauseError, SandboxProcess, SandboxProcesses, Sandboxes, Tokens, USER_AGENT, VERSION, Workspace, configure, createApiKey, createDisk, createSandbox, deleteApiKey, effectiveUploadPartSize, exec, getDisk, getSandbox, listApiKeys, listDisks, listSandboxes, workspace };
|
package/dist/sandbox-cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { k as ArchilApiError, p as Archil } from "./src-
|
|
3
|
-
import { a as addGlobalOptions, c as resolveProgramCredentials, d as Command, i as validateSandboxName, l as renderTable, n as parseCreateSandboxOptions, o as addProfileCommands, r as parseRunOptions, s as isProfileCommand, u as spinner } from "./sandbox-options-
|
|
2
|
+
import { k as ArchilApiError, p as Archil } from "./src-CsxpFPq3.mjs";
|
|
3
|
+
import { a as addGlobalOptions, c as resolveProgramCredentials, d as Command, i as validateSandboxName, l as renderTable, n as parseCreateSandboxOptions, o as addProfileCommands, r as parseRunOptions, s as isProfileCommand, u as spinner } from "./sandbox-options-Df_pRGJW.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { createInterface } from "node:readline/promises";
|
|
6
6
|
//#region src/cli/sandbox-output.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as REGION_URLS, p as Archil } from "./src-
|
|
1
|
+
import { O as REGION_URLS, p as Archil } from "./src-CsxpFPq3.mjs";
|
|
2
2
|
import { chmod, mkdir, open, readFile, rename, rm, stat } from "node:fs/promises";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
@@ -287,14 +287,15 @@ function deriveS3BaseUrl(controlBaseUrl) {
|
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region src/version.ts
|
|
290
|
-
const VERSION = "1.12.
|
|
290
|
+
const VERSION = "1.12.1";
|
|
291
291
|
const USER_AGENT = `archil-js/${VERSION}`;
|
|
292
292
|
//#endregion
|
|
293
293
|
//#region src/client.ts
|
|
294
294
|
function isNodeRuntime() {
|
|
295
295
|
return typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
296
296
|
}
|
|
297
|
-
const
|
|
297
|
+
const undiciSpecifier = isNodeRuntime() && process.versions.bun !== void 0 ? "undici/index.js" : "undici";
|
|
298
|
+
const undiciModule = isNodeRuntime() ? import(undiciSpecifier) : void 0;
|
|
298
299
|
const CONTROL_PLANE_CONNECTIONS = 1;
|
|
299
300
|
const IDLE_SESSION_TIMEOUT_MS = 3e4;
|
|
300
301
|
function isAsyncIterableBody(body) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "disk",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Pure-JS client and CLIs for Archil disks and sandboxes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"archil",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"build": "tsdown",
|
|
66
66
|
"dev": "tsdown --watch",
|
|
67
67
|
"typecheck": "tsc --noEmit",
|
|
68
|
-
"test": "vitest run"
|
|
68
|
+
"test": "vitest run",
|
|
69
|
+
"test:bun": "bun test test/client-pool.test.ts test/client-tls.test.ts test/control-plane-retries.test.ts test/http2-goaway.test.ts"
|
|
69
70
|
}
|
|
70
71
|
}
|