@prisma/composer-prisma-cloud 0.1.0
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/LICENSE +201 -0
- package/dist/control.d.mts +56 -0
- package/dist/control.mjs +1814 -0
- package/dist/control.mjs.map +1 -0
- package/dist/cron/index.d.mts +96 -0
- package/dist/cron/index.mjs +356 -0
- package/dist/cron/index.mjs.map +1 -0
- package/dist/cron/scheduler-entrypoint.mjs +7713 -0
- package/dist/cron/scheduler-entrypoint.mjs.map +1 -0
- package/dist/cron/scheduler-service.mjs +282 -0
- package/dist/cron/scheduler-service.mjs.map +1 -0
- package/dist/index.d.mts +168 -0
- package/dist/index.mjs +179 -0
- package/dist/index.mjs.map +1 -0
- package/dist/prisma-next-COrwlg3N.mjs +176 -0
- package/dist/prisma-next-COrwlg3N.mjs.map +1 -0
- package/dist/prisma-next.d.mts +72 -0
- package/dist/prisma-next.mjs +2 -0
- package/dist/serializer-C2CsA7xm-29Eg2Tjl.mjs +207 -0
- package/dist/serializer-C2CsA7xm-29Eg2Tjl.mjs.map +1 -0
- package/dist/storage/index.d.mts +67 -0
- package/dist/storage/index.mjs +374 -0
- package/dist/storage/index.mjs.map +1 -0
- package/dist/storage/storage-entrypoint.mjs +1138 -0
- package/dist/storage/storage-entrypoint.mjs.map +1 -0
- package/dist/storage/storage-service.mjs +340 -0
- package/dist/storage/storage-service.mjs.map +1 -0
- package/dist/storage/testing.d.mts +82 -0
- package/dist/storage/testing.mjs +531 -0
- package/dist/storage/testing.mjs.map +1 -0
- package/dist/testing.d.mts +26 -0
- package/dist/testing.mjs +32 -0
- package/dist/testing.mjs.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.mjs","names":[],"sources":["../../../1-prisma-cloud/1-extensions/target/dist/testing.mjs"],"sourcesContent":["import { s as stash } from \"./serializer-C2CsA7xm.mjs\";\n//#region src/testing.ts\n/**\n* Boots `service`'s real entry against `config`, in-process. By default the\n* entry is `service.build.entry` resolved against `service.build.module` —\n* exactly how the printed deploy bootstrap imports it (see `@internal/lowering`'s\n* artifact.ts) — which fits a build adapter whose `entry` is a plain\n* module-relative path (`@prisma/composer/node`'s). A build adapter whose bootable\n* path isn't module-relative (`@prisma/composer/nextjs`'s standalone output)\n* supplies its own `boot` thunk; the target owns that resolution.\n*\n* `config.service.port` must be concrete — the entry self-listens and never\n* reports an OS-assigned port back. No `close()`: teardown rides bun-test's\n* per-file process isolation (H3's resolved decision).\n*/\nasync function bootstrapService(service, config, boot) {\n\tconst port = config.service[\"port\"];\n\tif (typeof port !== \"number\") throw new Error(\"bootstrapService(): config.service.port must be a concrete port number — the booted entry self-listens with no way to report an OS-assigned one back to the caller.\");\n\tconst bootEntry = boot ?? (async () => {\n\t\tawait import(new URL(service.build.entry, service.build.module).href);\n\t});\n\tstash(service, config);\n\tawait bootEntry();\n\treturn {\n\t\turl: `http://localhost:${port}/`,\n\t\tfetch\n\t};\n}\n//#endregion\nexport { bootstrapService };\n\n//# sourceMappingURL=testing.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,eAAe,iBAAiB,SAAS,QAAQ,MAAM;CACtD,MAAM,OAAO,OAAO,QAAQ;CAC5B,IAAI,OAAO,SAAS,UAAU,MAAM,IAAI,MAAM,qKAAqK;CACnN,MAAM,YAAY,SAAS,YAAY;EACtC,MAAM,OAAO,IAAI,IAAI,QAAQ,MAAM,OAAO,QAAQ,MAAM,MAAM,CAAC,CAAC;CACjE;CACA,MAAM,SAAS,MAAM;CACrB,MAAM,UAAU;CAChB,OAAO;EACN,KAAK,oBAAoB,KAAK;EAC9B;CACD;AACD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@prisma/composer-prisma-cloud",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "The Prisma Cloud target for Prisma Composer: compute(), postgres(), the target extension, and first-party modules realized on Prisma Cloud (cron).",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./dist/index.mjs",
|
|
8
|
+
"./control": "./dist/control.mjs",
|
|
9
|
+
"./prisma-next": "./dist/prisma-next.mjs",
|
|
10
|
+
"./testing": "./dist/testing.mjs",
|
|
11
|
+
"./cron": "./dist/cron/index.mjs",
|
|
12
|
+
"./cron/scheduler-entrypoint": "./dist/cron/scheduler-entrypoint.mjs",
|
|
13
|
+
"./storage": "./dist/storage/index.mjs",
|
|
14
|
+
"./storage/storage-entrypoint": "./dist/storage/storage-entrypoint.mjs",
|
|
15
|
+
"./storage/testing": "./dist/storage/testing.mjs",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@prisma-next/cli": "0.14.0",
|
|
23
|
+
"@prisma-next/contract": "0.14.0",
|
|
24
|
+
"@prisma-next/migration-tools": "0.14.0",
|
|
25
|
+
"@prisma-next/postgres": "0.14.0",
|
|
26
|
+
"@prisma-next/sql-contract": "0.14.0",
|
|
27
|
+
"@prisma/composer": "0.1.0",
|
|
28
|
+
"@prisma/management-api-sdk": "^1.47.0",
|
|
29
|
+
"@standard-schema/spec": "^1.1.0",
|
|
30
|
+
"alchemy": "2.0.0-beta.59",
|
|
31
|
+
"arktype": "^2.2.3",
|
|
32
|
+
"effect": "4.0.0-beta.92",
|
|
33
|
+
"pathe": "^2.0.3",
|
|
34
|
+
"pg": "8.21.0",
|
|
35
|
+
"postgres": "^3.4.9",
|
|
36
|
+
"tsdown": "^0.22.3"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@internal/core": "0.1.0",
|
|
40
|
+
"@internal/cron": "0.1.0",
|
|
41
|
+
"@internal/foundation": "0.1.0",
|
|
42
|
+
"@internal/lowering": "0.1.0",
|
|
43
|
+
"@internal/nextjs": "0.1.0",
|
|
44
|
+
"@internal/node": "0.1.0",
|
|
45
|
+
"@internal/prisma-cloud": "0.1.0",
|
|
46
|
+
"@internal/rpc": "0.1.0",
|
|
47
|
+
"@internal/storage": "0.1.0",
|
|
48
|
+
"@internal/tsdown-config": "0.1.0",
|
|
49
|
+
"@types/node": "^25.9.3",
|
|
50
|
+
"typescript": "^6.0.3"
|
|
51
|
+
},
|
|
52
|
+
"license": "Apache-2.0",
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "https://github.com/prisma/compose.git",
|
|
56
|
+
"directory": "packages/9-public/composer-prisma-cloud"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=24"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "tsdown && node scripts/rewrite-internal-dts.mjs",
|
|
66
|
+
"clean": "rm -rf dist",
|
|
67
|
+
"typecheck": "tsc --noEmit"
|
|
68
|
+
}
|
|
69
|
+
}
|