@prisma/composer-prisma-cloud 0.29.1-dev.1 → 0.29.1-dev.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/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/compute-main.mjs +2 -1
- package/dist/compute-main.mjs.map +1 -1
- package/dist/control.mjs +2 -2
- package/dist/control.mjs.map +1 -1
- package/dist/{get-port-BYnpbW5H.mjs → get-port-CwLPc-ca.mjs} +7 -2
- package/dist/{get-port-BYnpbW5H.mjs.map → get-port-CwLPc-ca.mjs.map} +1 -1
- package/dist/local-target.mjs +32 -7
- package/dist/local-target.mjs.map +1 -1
- package/dist/postgres-main.mjs +1 -1
- package/dist/{s3-credentials-resource-CySVP49N-Dpqeeey_.mjs → s3-credentials-resource-BZjtuopJ-DQGVbpHu.mjs} +10 -6
- package/dist/{s3-credentials-resource-CySVP49N-Dpqeeey_.mjs.map → s3-credentials-resource-BZjtuopJ-DQGVbpHu.mjs.map} +1 -1
- package/package.json +18 -18
package/dist/postgres-main.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as readOwnVersion, i as readJsonFile, n as isPidAlive, r as isValidSegment, t as StateFile } from "./segments-DRPHe3kK-BNgikNpo.mjs";
|
|
2
|
-
import { n as
|
|
2
|
+
import { n as getPorts, r as portNumbers } from "./get-port-CwLPc-ca.mjs";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -27,8 +27,8 @@ import { createPostgresControlClient } from "@prisma/orm-postgres/control";
|
|
|
27
27
|
import { readRef } from "@prisma/orm-toolchain/migration-tools/refs";
|
|
28
28
|
import { APP_SPACE_ID, readContractSpaceHeadRef, spaceMigrationDirectory, spaceRefsDirectory } from "@prisma/orm-toolchain/migration-tools/spaces";
|
|
29
29
|
import pg from "pg";
|
|
30
|
-
//#region ../../1-prisma-cloud/0-lowering/lowering/dist/credentials-
|
|
31
|
-
var version = "0.29.1-dev.
|
|
30
|
+
//#region ../../1-prisma-cloud/0-lowering/lowering/dist/credentials-D0Dv78r2.mjs
|
|
31
|
+
var version = "0.29.1-dev.2";
|
|
32
32
|
/**
|
|
33
33
|
* The Prisma service token used to authenticate Management API calls. Kept
|
|
34
34
|
* as a Redacted value so it never lands in logs or error output.
|
|
@@ -72,7 +72,7 @@ const deploySourceHeaders = () => ({
|
|
|
72
72
|
*/
|
|
73
73
|
const managementApiBaseUrl = (env) => env !== void 0 ? normalizeBaseUrl(env["PRISMA_API_URL"] || env["PRISMA_MANAGEMENT_API_URL"] || DEFAULT_BASE_URL) : Config$1.String("PRISMA_API_URL").pipe(Config$1.orElse(() => Config$1.String("PRISMA_MANAGEMENT_API_URL")), Config$1.withDefault(DEFAULT_BASE_URL), Effect.flatMap(normalizeBaseUrl));
|
|
74
74
|
//#endregion
|
|
75
|
-
//#region ../../1-prisma-cloud/0-lowering/lowering/dist/database-url-claim-
|
|
75
|
+
//#region ../../1-prisma-cloud/0-lowering/lowering/dist/database-url-claim-GVUnL8ql.mjs
|
|
76
76
|
/**
|
|
77
77
|
* The typed Prisma Management API client, built once from the resolved
|
|
78
78
|
* credentials. Providers yield this in their outer Effect and call it inside
|
|
@@ -501,7 +501,7 @@ function mintKeyPair() {
|
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
//#endregion
|
|
504
|
-
//#region ../../1-prisma-cloud/1-extensions/target/dist/s3-credentials-resource-
|
|
504
|
+
//#region ../../1-prisma-cloud/1-extensions/target/dist/s3-credentials-resource-BZjtuopJ.mjs
|
|
505
505
|
const PRISMA_CLOUD_EXTENSION_ID = "@prisma/composer-prisma-cloud";
|
|
506
506
|
/** Accepts exactly what Alchemy's own `--stage` validation accepts (pinned 2.0.0-beta.59, `Cli/commands/_shared.ts`), rewritten without overlapping quantifiers so it cannot backtrack catastrophically. Asserted before a Branch id is exposed as a stage. */
|
|
507
507
|
const ALCHEMY_STAGE_PATTERN = /^[a-z0-9][-_a-z0-9]*$/i;
|
|
@@ -738,6 +738,10 @@ const generatedParamProviderService = {
|
|
|
738
738
|
};
|
|
739
739
|
/** The `GeneratedParam` provider layer — merged into the extension descriptor's `providers()`. */
|
|
740
740
|
const GeneratedParamProvider = () => Provider.effect(GeneratedParam, Effect.succeed(generatedParamProviderService));
|
|
741
|
+
/** The `displayName` of a service's `Prisma.App`. Local dev reserves each service's emulator port under this name before converge, so both must come from here. */
|
|
742
|
+
function serviceAppName(address) {
|
|
743
|
+
return address;
|
|
744
|
+
}
|
|
741
745
|
/**
|
|
742
746
|
* Resolves a `postgres` resource's `prisma.config.ts` path to the
|
|
743
747
|
* project facts the deploy needs (ADR-0022, slice 2): the emitted
|
|
@@ -1157,6 +1161,6 @@ const s3CredentialsProviderService = {
|
|
|
1157
1161
|
/** The `S3Credentials` provider layer — merged into the extension descriptor's `providers()`. */
|
|
1158
1162
|
const S3CredentialsProvider = () => Provider.effect(S3Credentials, Effect.succeed(s3CredentialsProviderService));
|
|
1159
1163
|
//#endregion
|
|
1160
|
-
export {
|
|
1164
|
+
export { call as A, ServiceKey as C, ManagementClient as D, isWithin as E, resolveDefaultBranchId as F, PrismaCredentials as I, fromEnv as L, collectPages as M, drivePagesAsync as N, PrismaApiError as O, layer as P, managementApiBaseUrl as R, providers as S, appAfterEnvironment as T, resolveTargetRef as _, PRISMA_CLOUD_EXTENSION_ID as a, mintKeyPair as b, PrismaCloudContainer as c, collectPreflightNames as d, containerDescriptor as f, resolveOrmConfig as g, prismaCloudContainerOf as h, OrmMigrationProvider as i, claimDatabaseUrlKeys as j, RESERVED_DATABASE_URL_KEYS as k, S3Credentials as l, packHeadRefHashes as m, GeneratedParamProvider as n, PgWarm as o, deserialize as p, OrmMigration as r, PgWarmProvider as s, GeneratedParam as t, S3CredentialsProvider as u, serviceAppName as v, ServiceKeyProvider as w, Providers as x, targetStorageHash as y };
|
|
1161
1165
|
|
|
1162
|
-
//# sourceMappingURL=s3-credentials-resource-
|
|
1166
|
+
//# sourceMappingURL=s3-credentials-resource-BZjtuopJ-DQGVbpHu.mjs.map
|