@prisma/composer-prisma-cloud 0.34.0-dev.5 → 0.34.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/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 +12 -9
- package/dist/local-target.mjs.map +1 -1
- package/dist/{s3-credentials-resource-CeXppCQf-CatR1H_B.mjs → s3-credentials-resource-CeXppCQf-CjkQJ2ik.mjs} +7 -5
- package/dist/s3-credentials-resource-CeXppCQf-CjkQJ2ik.mjs.map +1 -0
- package/package.json +19 -19
- package/dist/s3-credentials-resource-CeXppCQf-CatR1H_B.mjs.map +0 -1
package/dist/local-target.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as blindCast$1, k as stashRows } from "./serializer-P5LDR985-6KWCUQ6O.mjs";
|
|
2
|
-
import { D as isWithin, S as Providers, T as ServiceKeyProvider, c as PgWarmProvider, d as S3CredentialsProvider, f as collectPreflightNames, g as prismaCloudContainerOf, l as PrismaCloudContainer, m as deserialize, n as GeneratedParamProvider, r as LocalOrmMigrationProvider, x as mintKeyPair, y as resourceId } from "./s3-credentials-resource-CeXppCQf-
|
|
2
|
+
import { D as isWithin, S as Providers, T as ServiceKeyProvider, c as PgWarmProvider, d as S3CredentialsProvider, f as collectPreflightNames, g as prismaCloudContainerOf, l as PrismaCloudContainer, m as deserialize, n as GeneratedParamProvider, r as LocalOrmMigrationProvider, x as mintKeyPair, y as resourceId } from "./s3-credentials-resource-CeXppCQf-CjkQJ2ik.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { blindCast } from "@prisma/composer/casts";
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
@@ -6849,6 +6849,14 @@ function removeAppDevState(devDir, app) {
|
|
|
6849
6849
|
removeLocalPaths([...entries.filter((entry) => !kept.has(entry)).map((entry) => path$1.join(devDir, entry)), path$1.join(devDir, BUCKETS_DIR, app)]);
|
|
6850
6850
|
}
|
|
6851
6851
|
//#endregion
|
|
6852
|
+
//#region ../../1-prisma-cloud/0-lowering/lowering/dist/deployed.mjs
|
|
6853
|
+
/** The platform row each Prisma Cloud resource type deploys to. A type missing here, such as an S3 credentials resource, has no row. */
|
|
6854
|
+
const RESOURCE_ROW_KINDS = /* @__PURE__ */ new Map([
|
|
6855
|
+
["postgres", "database"],
|
|
6856
|
+
["raw-postgres", "database"],
|
|
6857
|
+
["s3", "bucket"]
|
|
6858
|
+
]);
|
|
6859
|
+
//#endregion
|
|
6852
6860
|
//#region ../../1-prisma-cloud/1-extensions/target/dist/local-target.mjs
|
|
6853
6861
|
/**
|
|
6854
6862
|
* The developer's shell environment, which a dev server keeps (ADR-0056): unlike a
|
|
@@ -7012,8 +7020,6 @@ function devContainerDescriptor() {
|
|
|
7012
7020
|
function daemonEntry(name) {
|
|
7013
7021
|
return resolvePackageEntry(`@prisma/composer-prisma-cloud/local-target/${name}-main`);
|
|
7014
7022
|
}
|
|
7015
|
-
const DATABASE_TYPES = /* @__PURE__ */ new Set(["raw-postgres", "postgres"]);
|
|
7016
|
-
const BUCKET_TYPE = "s3";
|
|
7017
7023
|
/**
|
|
7018
7024
|
* This extension's nodes that run on an emulator, in `graph.nodes` order —
|
|
7019
7025
|
* dependencies first, ties in declaration order — keyed by their main
|
|
@@ -7025,13 +7031,10 @@ function appNodes(input) {
|
|
|
7025
7031
|
address: resourceId(n.id),
|
|
7026
7032
|
kind: "service"
|
|
7027
7033
|
}];
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
kind: "database"
|
|
7031
|
-
}];
|
|
7032
|
-
if (n.node.kind === "resource" && n.node.type === BUCKET_TYPE) return [{
|
|
7034
|
+
const rowKind = n.node.kind === "resource" ? RESOURCE_ROW_KINDS.get(n.node.type) : void 0;
|
|
7035
|
+
if (rowKind !== void 0) return [{
|
|
7033
7036
|
address: resourceId(n.id),
|
|
7034
|
-
kind:
|
|
7037
|
+
kind: rowKind
|
|
7035
7038
|
}];
|
|
7036
7039
|
return [];
|
|
7037
7040
|
});
|