@prisma/composer-prisma-cloud 0.20.0-dev.3 → 0.20.0-dev.5
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/auth/pack.mjs +1 -1
- package/dist/auth/pack.mjs.map +1 -1
- package/dist/auth/testing.mjs +1 -1
- package/dist/auth/testing.mjs.map +1 -1
- package/dist/control.mjs +1 -1
- package/dist/control.mjs.map +1 -1
- package/dist/local-target.mjs +7 -7
- package/dist/local-target.mjs.map +1 -1
- package/dist/postgres-main.mjs +1 -1
- package/dist/postgres-main.mjs.map +1 -1
- package/dist/{s3-credentials-resource-CLB5qGGZ-DXaOsu5J.mjs → s3-credentials-resource-CLB5qGGZ-DU52P0yF.mjs} +7 -6
- package/dist/s3-credentials-resource-CLB5qGGZ-DU52P0yF.mjs.map +1 -0
- package/package.json +18 -18
- package/dist/s3-credentials-resource-CLB5qGGZ-DXaOsu5J.mjs.map +0 -1
package/dist/local-target.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ServiceKeyProvider, T as isWithin, b as Providers, c as PrismaCloudContainer, d as collectPreflightNames, h as prismaCloudContainerOf, i as OrmMigrationProvider, n as GeneratedParamProvider, p as deserialize, s as PgWarmProvider, u as S3CredentialsProvider, y as mintKeyPair } from "./s3-credentials-resource-CLB5qGGZ-
|
|
1
|
+
import { C as ServiceKeyProvider, T as isWithin, b as Providers, c as PrismaCloudContainer, d as collectPreflightNames, h as prismaCloudContainerOf, i as OrmMigrationProvider, n as GeneratedParamProvider, p as deserialize, s as PgWarmProvider, u as S3CredentialsProvider, y as mintKeyPair } from "./s3-credentials-resource-CLB5qGGZ-DU52P0yF.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { blindCast } from "@prisma/composer/casts";
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
@@ -5986,15 +5986,15 @@ function databaseIdOfInput(value) {
|
|
|
5986
5986
|
if (Predicate.isObject(value) && typeof value["databaseId"] === "string") return value["databaseId"];
|
|
5987
5987
|
}
|
|
5988
5988
|
function noPrismaDevError() {
|
|
5989
|
-
return /* @__PURE__ */ new Error("local dev needs @prisma/dev for its local Postgres emulator — add \"prisma\" to
|
|
5989
|
+
return /* @__PURE__ */ new Error("local dev needs @prisma/dev for its local Postgres emulator — add \"@prisma/dev\" to the devDependencies of the project where you run Composer.");
|
|
5990
5990
|
}
|
|
5991
5991
|
/**
|
|
5992
5992
|
* Two-step resolution, pinned (local-dev spec § 4): (1) resolve
|
|
5993
5993
|
* `@prisma/dev` directly from the app's own `node_modules`; (2) on failure,
|
|
5994
|
-
* resolve `prisma`
|
|
5995
|
-
*
|
|
5996
|
-
*
|
|
5997
|
-
*
|
|
5994
|
+
* resolve `prisma/package.json` and check that installation for `@prisma/dev`
|
|
5995
|
+
* (older CLI releases carry it; Prisma 8 does not). The daemon imports the
|
|
5996
|
+
* returned path dynamically, so the app owns its local Postgres runtime.
|
|
5997
|
+
* `cwd` is the one place a local provider legitimately
|
|
5998
5998
|
* reads `process.cwd()` — finding the app's own installed version is
|
|
5999
5999
|
* inherently cwd-relative.
|
|
6000
6000
|
*/
|
|
@@ -6004,7 +6004,7 @@ function resolvePrismaDevModulePath(cwd) {
|
|
|
6004
6004
|
return appRequire.resolve("@prisma/dev");
|
|
6005
6005
|
} catch {}
|
|
6006
6006
|
try {
|
|
6007
|
-
return createRequire(appRequire.resolve("prisma")).resolve("@prisma/dev");
|
|
6007
|
+
return createRequire(appRequire.resolve("prisma/package.json")).resolve("@prisma/dev");
|
|
6008
6008
|
} catch {
|
|
6009
6009
|
throw noPrismaDevError();
|
|
6010
6010
|
}
|