@prisma/cli-engine 8.0.0-rc.1 → 8.0.0-rc.2
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/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as TokenStorage, F as TelemetryPayload, K as PackageManagerId, L as RunSummary, O as Host, P as Runtime, R as ChildResult, St as ManagementApiClientConfig, U as SpawnRequest, V as SpawnChild, Y as PackageManagerRunner, bt as StoredSessions, dt as StreamEvent, gt as CredentialManager, i as MountedTree, lt as EngineEvent, mt as Credential, n as CommandFamily, nt as PresentedResult, pt as ActiveCredential, t as TelemetryDeclaration, xt as ManagementApiClient, yt as Session } from "./report-DID_e0si.js";
|
|
2
2
|
|
|
3
3
|
//#region src/in-memory-credential-manager.d.ts
|
|
4
4
|
/** A stored session with its credential material — what the manager
|
|
@@ -201,6 +201,9 @@ declare function createTestCli(spec: {
|
|
|
201
201
|
/** Overrides detection, the same way a host's Runtime does; absent
|
|
202
202
|
* means the engine detects from the run's cwd. */
|
|
203
203
|
readonly packageManager?: PackageManagerId;
|
|
204
|
+
/** What the run reports itself as running on; defaults to a fixed
|
|
205
|
+
* host so a bug-report payload asserts the same on every machine. */
|
|
206
|
+
readonly host?: Host;
|
|
204
207
|
/** The scripted stand-in for the shipped bin's spawner: assert the
|
|
205
208
|
* composed file/args/cwd, script exit codes and stderr, drive
|
|
206
209
|
* onOutput. Absent means this host has no runner, which is the
|
package/dist/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as noSessionForWorkspaceError, h as credentialsRequiredError, i as buildEngine, m as credentialWorkspaceMismatchError, n as claimedIdentity, r as credentialWorkspaceId, t as claimedExpiresAt } from "./token-claims-CJNNCGkL.js";
|
|
2
2
|
import { Buffer } from "node:buffer";
|
|
3
3
|
//#region src/in-memory-credential-manager.ts
|
|
4
4
|
/**
|
|
@@ -441,7 +441,15 @@ function createTestCli(spec) {
|
|
|
441
441
|
openUrl,
|
|
442
442
|
managementApi: { baseUrl: managementApiBaseUrl },
|
|
443
443
|
packageManager: spec.packageManager,
|
|
444
|
-
runPackageManager: spec.packageManagerRunner
|
|
444
|
+
runPackageManager: spec.packageManagerRunner,
|
|
445
|
+
host: spec.host ?? {
|
|
446
|
+
runtime: {
|
|
447
|
+
name: "node",
|
|
448
|
+
version: "v22.12.0"
|
|
449
|
+
},
|
|
450
|
+
platform: "linux",
|
|
451
|
+
arch: "x64"
|
|
452
|
+
}
|
|
445
453
|
};
|
|
446
454
|
const running = engine.execute(argv, runtime, {
|
|
447
455
|
onEvent: (event) => {
|