@prisma/composer-prisma-cloud 0.3.0-dev.5 → 0.3.0-dev.7
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/control.d.mts +1 -1
- package/dist/control.mjs +28 -17
- package/dist/control.mjs.map +1 -1
- package/dist/cron/index.d.mts +33 -26
- package/dist/cron/index.d.mts.map +1 -1
- package/dist/cron/index.mjs +202 -77
- package/dist/cron/index.mjs.map +1 -1
- package/dist/cron/scheduler-entrypoint.mjs +133 -114
- package/dist/cron/scheduler-entrypoint.mjs.map +1 -1
- package/dist/cron/scheduler-service.mjs +200 -76
- package/dist/cron/scheduler-service.mjs.map +1 -1
- package/dist/email/email-entrypoint.mjs +162 -126
- package/dist/email/email-entrypoint.mjs.map +1 -1
- package/dist/email/email-service.mjs +230 -79
- package/dist/email/email-service.mjs.map +1 -1
- package/dist/email/index.d.mts +33 -29
- package/dist/email/index.d.mts.map +1 -1
- package/dist/email/index.mjs +236 -84
- package/dist/email/index.mjs.map +1 -1
- package/dist/email/testing.mjs +112 -89
- package/dist/email/testing.mjs.map +1 -1
- package/dist/index.d.mts +51 -43
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +47 -51
- package/dist/index.mjs.map +1 -1
- package/dist/local-target.mjs +1 -1
- package/dist/local-target.mjs.map +1 -1
- package/dist/{preflight-names-BPL-qsZF-BfoRgbgb.mjs → preflight-names-CpJUd9ZA-BCU-W3cT.mjs} +30 -14
- package/dist/{preflight-names-BPL-qsZF-BfoRgbgb.mjs.map → preflight-names-CpJUd9ZA-BCU-W3cT.mjs.map} +1 -1
- package/dist/{provisioned-edges-C1wSO3cx-YC5C19f9.mjs → provisioned-edges-Cxy18aoh-CUnaY96r.mjs} +3 -3
- package/dist/{provisioned-edges-C1wSO3cx-YC5C19f9.mjs.map → provisioned-edges-Cxy18aoh-CUnaY96r.mjs.map} +1 -1
- package/dist/{param-BTzY0ne5-CW6ojZ3E.mjs → secret-BVGxqHxY-DYDfiULl.mjs} +45 -4
- package/dist/secret-BVGxqHxY-DYDfiULl.mjs.map +1 -0
- package/dist/{serializer-Cx5slrV4-xJfH6EWS.d.mts → serializer-BD_6nkr4-DWn5NNTC.d.mts} +2 -2
- package/dist/serializer-BD_6nkr4-DWn5NNTC.d.mts.map +1 -0
- package/dist/serializer-sVE4UAmg-CikRngbR.mjs +475 -0
- package/dist/serializer-sVE4UAmg-CikRngbR.mjs.map +1 -0
- package/dist/storage/index.d.mts +31 -26
- package/dist/storage/index.d.mts.map +1 -1
- package/dist/storage/index.mjs +215 -89
- package/dist/storage/index.mjs.map +1 -1
- package/dist/storage/storage-entrypoint.mjs +147 -122
- package/dist/storage/storage-entrypoint.mjs.map +1 -1
- package/dist/storage/storage-service.mjs +212 -87
- package/dist/storage/storage-service.mjs.map +1 -1
- package/dist/streams/index.d.mts +29 -22
- package/dist/streams/index.d.mts.map +1 -1
- package/dist/streams/index.mjs +213 -88
- package/dist/streams/index.mjs.map +1 -1
- package/dist/streams/streams-entrypoint.mjs +139 -118
- package/dist/streams/streams-entrypoint.mjs.map +1 -1
- package/dist/streams/streams-service.mjs +212 -87
- package/dist/streams/streams-service.mjs.map +1 -1
- package/dist/testing.d.mts +19 -5
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +11 -3
- package/dist/testing.mjs.map +1 -1
- package/package.json +18 -18
- package/dist/param-BTzY0ne5-CW6ojZ3E.mjs.map +0 -1
- package/dist/secret-rz_ZqNeq-_xd97Jd9.mjs +0 -47
- package/dist/secret-rz_ZqNeq-_xd97Jd9.mjs.map +0 -1
- package/dist/serializer-CJiOhF2d-DJUjQj1i.mjs +0 -251
- package/dist/serializer-CJiOhF2d-DJUjQj1i.mjs.map +0 -1
- package/dist/serializer-Cx5slrV4-xJfH6EWS.d.mts.map +0 -1
package/dist/{preflight-names-BPL-qsZF-BfoRgbgb.mjs → preflight-names-CpJUd9ZA-BCU-W3cT.mjs}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as paramName, n as isEnvParamSource } from "./param-BTzY0ne5-CW6ojZ3E.mjs";
|
|
1
|
+
import { a as paramName, o as secretName, r as isEnvParamSource } from "./secret-BVGxqHxY-DYDfiULl.mjs";
|
|
3
2
|
import { r as withConnectionRetry, t as normalizeSslMode } from "./pg-connection-CadPZuEK-CF3FsSQu.mjs";
|
|
4
|
-
import {
|
|
3
|
+
import { inputManifest, isSecretSource, paramManifest } from "@prisma/composer";
|
|
5
4
|
import { createManagementApiClient } from "@prisma/management-api-sdk";
|
|
6
5
|
import * as Context from "effect/Context";
|
|
7
6
|
import * as Effect from "effect/Effect";
|
|
@@ -762,7 +761,7 @@ function mintKeyPair() {
|
|
|
762
761
|
};
|
|
763
762
|
}
|
|
764
763
|
//#endregion
|
|
765
|
-
//#region ../../1-prisma-cloud/1-extensions/target/dist/preflight-names-
|
|
764
|
+
//#region ../../1-prisma-cloud/1-extensions/target/dist/preflight-names-CpJUd9ZA.mjs
|
|
766
765
|
const PRISMA_CLOUD_EXTENSION_ID = "@prisma/composer-prisma-cloud";
|
|
767
766
|
var PrismaCloudContainer = class {
|
|
768
767
|
input;
|
|
@@ -1233,20 +1232,37 @@ function dedupedNames(entries) {
|
|
|
1233
1232
|
for (const entry of entries) if (!byName.has(entry.name)) byName.set(entry.name, entry);
|
|
1234
1233
|
return [...byName.values()];
|
|
1235
1234
|
}
|
|
1236
|
-
/**
|
|
1235
|
+
/** Every `envSecret` leaf of one input binding: its platform name, found by the same dumb recursive descent the serializer uses (ADR-0042). */
|
|
1236
|
+
function collectSecretLeafNames(binding, serviceAddress, out) {
|
|
1237
|
+
if (isSecretSource(binding)) {
|
|
1238
|
+
out.push(secretName(binding, `an input-binding secret leaf of service "${serviceAddress}"`));
|
|
1239
|
+
return;
|
|
1240
|
+
}
|
|
1241
|
+
if (typeof binding !== "object" || binding === null) return;
|
|
1242
|
+
const members = Array.isArray(binding) ? binding : Object.values(binding);
|
|
1243
|
+
for (const member of members) collectSecretLeafNames(member, serviceAddress, out);
|
|
1244
|
+
}
|
|
1245
|
+
/** Walks each service's input binding for `envSecret` leaves, and `graph.params` for env-sourced params (ADR-0042). */
|
|
1237
1246
|
function collectPreflightNames(graph) {
|
|
1247
|
+
const secretEntries = [];
|
|
1248
|
+
for (const { serviceAddress, binding } of inputManifest(graph)) {
|
|
1249
|
+
const leafNames = [];
|
|
1250
|
+
collectSecretLeafNames(binding, serviceAddress, leafNames);
|
|
1251
|
+
for (const name of leafNames) secretEntries.push({
|
|
1252
|
+
name,
|
|
1253
|
+
serviceAddress
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
const envParams = dedupedNames(paramManifest(graph).filter((binding) => isEnvParamSource(binding.binding)).map((binding) => ({
|
|
1257
|
+
name: paramName(binding),
|
|
1258
|
+
serviceAddress: binding.serviceAddress
|
|
1259
|
+
})));
|
|
1238
1260
|
return {
|
|
1239
|
-
secrets: dedupedNames(
|
|
1240
|
-
|
|
1241
|
-
serviceAddress: binding.serviceAddress
|
|
1242
|
-
}))),
|
|
1243
|
-
envParams: dedupedNames(paramManifest(graph).filter((binding) => isEnvParamSource(binding.binding)).map((binding) => ({
|
|
1244
|
-
name: paramName(binding),
|
|
1245
|
-
serviceAddress: binding.serviceAddress
|
|
1246
|
-
})))
|
|
1261
|
+
secrets: dedupedNames(secretEntries),
|
|
1262
|
+
envParams
|
|
1247
1263
|
};
|
|
1248
1264
|
}
|
|
1249
1265
|
//#endregion
|
|
1250
1266
|
export { PrismaApiError as A, EnvironmentVariable as C, Bucket as D, packageComputeArtifact as E, callVoid as M, fromEnv as N, BucketKey as O, layer as P, Deployment as S, ServiceKeyProvider as T, Connection as _, PnMigrationProvider as a, COMPUTE_REGIONS as b, S3CredentialsProvider as c, deserialize as d, prismaCloudContainerOf as f, providers as g, Providers as h, PnMigration as i, call as j, ManagementClient as k, collectPreflightNames as l, mintKeyPair as m, PgWarm as n, PrismaCloudContainer as o, resolveTargetRef as p, PgWarmProvider as r, S3Credentials as s, PRISMA_CLOUD_EXTENSION_ID as t, containerDescriptor as u, Database as v, ServiceKey as w, ComputeService as x, Project as y };
|
|
1251
1267
|
|
|
1252
|
-
//# sourceMappingURL=preflight-names-
|
|
1268
|
+
//# sourceMappingURL=preflight-names-CpJUd9ZA-BCU-W3cT.mjs.map
|