@prisma/composer-prisma-cloud 0.25.0-dev.4 → 0.25.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 +3 -3
- package/dist/control.mjs.map +1 -1
- package/dist/local-target.mjs +1 -1
- package/dist/{s3-credentials-resource-CySVP49N-C9ajw9EU.mjs → s3-credentials-resource-CySVP49N-CsR0crE5.mjs} +4 -4
- package/dist/{s3-credentials-resource-CySVP49N-C9ajw9EU.mjs.map → s3-credentials-resource-CySVP49N-CsR0crE5.mjs.map} +1 -1
- package/package.json +18 -18
package/dist/control.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { c as paramName, s as paramBindingFor } from "./secret-C__qAfZr-CUc_Mgbg
|
|
|
2
2
|
import { a as encode, c as paramEntries, d as serializeInput, n as configKey, o as encodeParamPointer, r as decodeParamPointer, s as isParamPointerRow } from "./serializer-CE3hLPYz-BnSjO4w7.mjs";
|
|
3
3
|
import { a as provisionedEdges, n as SELF_ORIGIN, r as STREAMS_API_KEY, t as RESERVED_PROVIDER_PARAMS } from "./provisioned-edges-CPrUiJ1K-DKbfx776.mjs";
|
|
4
4
|
import { n as requiredPackHeadOf } from "./required-pack-head-CMMJ2LaU-CfWu5JMj.mjs";
|
|
5
|
-
import { A as claimDatabaseUrlKeys, C as ServiceKeyProvider, D as PrismaApiError, E as ManagementClient, F as PrismaCredentials, I as fromEnv, L as managementApiBaseUrl, M as drivePagesAsync, N as layer, O as RESERVED_DATABASE_URL_KEYS, P as resolveDefaultBranchId, S as ServiceKey, T as isWithin, _ as resolveTargetRef, a as PRISMA_CLOUD_EXTENSION_ID, d as collectPreflightNames, f as containerDescriptor, g as resolveOrmConfig, h as prismaCloudContainerOf, i as OrmMigrationProvider, j as collectPages, k as call, l as S3Credentials, m as packHeadRefHashes, n as GeneratedParamProvider, o as PgWarm, r as OrmMigration, s as PgWarmProvider, t as GeneratedParam, u as S3CredentialsProvider, v as targetStorageHash, w as appAfterEnvironment, x as providers } from "./s3-credentials-resource-CySVP49N-
|
|
5
|
+
import { A as claimDatabaseUrlKeys, C as ServiceKeyProvider, D as PrismaApiError, E as ManagementClient, F as PrismaCredentials, I as fromEnv, L as managementApiBaseUrl, M as drivePagesAsync, N as layer, O as RESERVED_DATABASE_URL_KEYS, P as resolveDefaultBranchId, S as ServiceKey, T as isWithin, _ as resolveTargetRef, a as PRISMA_CLOUD_EXTENSION_ID, d as collectPreflightNames, f as containerDescriptor, g as resolveOrmConfig, h as prismaCloudContainerOf, i as OrmMigrationProvider, j as collectPages, k as call, l as S3Credentials, m as packHeadRefHashes, n as GeneratedParamProvider, o as PgWarm, r as OrmMigration, s as PgWarmProvider, t as GeneratedParam, u as S3CredentialsProvider, v as targetStorageHash, w as appAfterEnvironment, x as providers } from "./s3-credentials-resource-CySVP49N-CsR0crE5.mjs";
|
|
6
6
|
import { r as isPostgresResourceNode } from "./orm-postgres-ChW2Ewj7-Dnas0G3L.mjs";
|
|
7
7
|
import { isParamSource } from "@prisma/composer";
|
|
8
8
|
import { blindCast } from "@prisma/composer/casts";
|
|
@@ -1927,7 +1927,7 @@ function postgresDescriptor(o) {
|
|
|
1927
1927
|
const ref = yield* Effect.promise(() => resolveTargetRef(migrationsDir, contractJson, node.targetRef));
|
|
1928
1928
|
yield* Effect.promise(() => runPackPreflight(graph));
|
|
1929
1929
|
const warm = yield* PgWarm(`${id}-warm`, { url });
|
|
1930
|
-
yield* OrmMigration(`${id}-migrate`, {
|
|
1930
|
+
const migration = yield* OrmMigration(`${id}-migrate`, {
|
|
1931
1931
|
url: warm.url,
|
|
1932
1932
|
migrationsDir,
|
|
1933
1933
|
currentContractHash,
|
|
@@ -1938,7 +1938,7 @@ function postgresDescriptor(o) {
|
|
|
1938
1938
|
...node.targetRef !== void 0 ? { refName: node.targetRef } : {}
|
|
1939
1939
|
});
|
|
1940
1940
|
return {
|
|
1941
|
-
outputs: { url: warm.url },
|
|
1941
|
+
outputs: { url: Output.map(Output.all(warm.url, Output.of(migration)), ([value]) => value) },
|
|
1942
1942
|
entities: [{
|
|
1943
1943
|
kind: "postgres-database",
|
|
1944
1944
|
id: db.databaseId
|