@hot-updater/server 1.2.0-rc.23 → 1.2.0-rc.25

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.
@@ -0,0 +1,13 @@
1
+ //#region src/core/nativeBuildDestinations.ts
2
+ /** Store destinations accepted for each native platform. */
3
+ const NATIVE_BUILD_SUBMISSION_DESTINATIONS = {
4
+ android: [
5
+ "play-internal",
6
+ "play-closed",
7
+ "play-open",
8
+ "play-production"
9
+ ],
10
+ ios: ["testflight"]
11
+ };
12
+ //#endregion
13
+ exports.NATIVE_BUILD_SUBMISSION_DESTINATIONS = NATIVE_BUILD_SUBMISSION_DESTINATIONS;
@@ -0,0 +1,13 @@
1
+ //#region src/core/nativeBuildDestinations.ts
2
+ /** Store destinations accepted for each native platform. */
3
+ const NATIVE_BUILD_SUBMISSION_DESTINATIONS = {
4
+ android: [
5
+ "play-internal",
6
+ "play-closed",
7
+ "play-open",
8
+ "play-production"
9
+ ],
10
+ ios: ["testflight"]
11
+ };
12
+ //#endregion
13
+ export { NATIVE_BUILD_SUBMISSION_DESTINATIONS };
@@ -1,3 +1,4 @@
1
+ const require_nativeBuildDestinations = require("./nativeBuildDestinations.cjs");
1
2
  const require_reads = require("./reads.cjs");
2
3
  const require_writes = require("./writes.cjs");
3
4
  let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
@@ -18,6 +19,13 @@ const GIT_COMMIT_HASH_MAX_LENGTH = 255;
18
19
  * and looks up nothing else.
19
20
  */
20
21
  const BUILD_KEY = /^nbk1:[0-9a-f]{64}$/;
22
+ /** `native_builds.sandbox_url_scheme`'s bound in core's schema. */
23
+ const SANDBOX_URL_SCHEME_MAX_LENGTH = 255;
24
+ /**
25
+ * A URL scheme as RFC 3986 spells it, in lower case: what a sandbox build's
26
+ * artifact registers, as `@hot-updater/protocol/native-artifact` reads it.
27
+ */
28
+ const URL_SCHEME = new RegExp(`^[a-z][a-z0-9+.-]{0,254}$`);
21
29
  /** A native build or scope core cannot store or look up: the caller's input. */
22
30
  var NativeBuildInputError = class extends TypeError {
23
31
  name = "NativeBuildInputError";
@@ -41,7 +49,8 @@ const pick = (row) => ({
41
49
  submitted_at_ms: row.submitted_at_ms ?? null,
42
50
  submitted_version: row.submitted_version ?? null,
43
51
  is_store_build: row.is_store_build === true,
44
- is_sandbox: row.is_sandbox === true
52
+ is_sandbox: row.is_sandbox === true,
53
+ sandbox_url_scheme: row.sandbox_url_scheme ?? null
45
54
  });
46
55
  /**
47
56
  * The channels only sandbox builds register on: a registration's `sandbox`
@@ -56,11 +65,6 @@ const SANDBOX_CHANNEL_PREFIX = "sandbox-";
56
65
  const OLDER_BUILDS_PAGE = 20;
57
66
  /** How many times a mark runs again after losing its scope's mark to another. */
58
67
  const MARK_ATTEMPTS = 8;
59
- /** The store track each platform's builds are submitted to. */
60
- const SUBMISSION_DESTINATIONS = {
61
- android: "play-internal",
62
- ios: "testflight"
63
- };
64
68
  /** `native_builds.build_number`'s bound in core's schema. */
65
69
  const BUILD_NUMBER_MAX_LENGTH = 64;
66
70
  /** `native_builds.submitted_version`'s bound in core's schema. */
@@ -93,7 +97,7 @@ const nativeBuildScopeKey = (scope) => {
93
97
  };
94
98
  /** Whether `bundleId` is a native build's built-in bundle: one unique read. */
95
99
  const isBuiltInBundle = async (db, bundleId) => await db.findOne("native_builds", { min_bundle_id: bundleId }) !== null;
96
- const problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, isSandbox, artifact }) => {
100
+ const problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, isSandbox, sandboxUrlScheme, artifact }) => {
97
101
  if (!(0, _hot_updater_plugin_core.isUUIDv7)(id)) return "id must be a UUIDv7";
98
102
  if (!(0, _hot_updater_plugin_core.isUUIDv7)(minBundleId)) return "minBundleId must be the UUIDv7 a release build compiles in";
99
103
  if (platform !== "ios" && platform !== "android") return "platform must be ios or android";
@@ -102,6 +106,10 @@ const problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVer
102
106
  const reserved = channel.startsWith(SANDBOX_CHANNEL_PREFIX);
103
107
  if (isSandbox === true && !reserved) return `a sandbox build registers on a ${SANDBOX_CHANNEL_PREFIX}* channel, not ${channel}`;
104
108
  if (isSandbox !== true && reserved) return `channel ${channel} is reserved for sandbox builds`;
109
+ if (sandboxUrlScheme !== void 0 && sandboxUrlScheme !== null) {
110
+ if (isSandbox !== true) return "sandboxUrlScheme is a sandbox build's, and this isn't one";
111
+ if (typeof sandboxUrlScheme !== "string" || !URL_SCHEME.test(sandboxUrlScheme)) return `sandboxUrlScheme must be a URL scheme in lower case, up to ${SANDBOX_URL_SCHEME_MAX_LENGTH} characters, or null`;
112
+ }
105
113
  if (gitCommitHash !== null && gitCommitHash.length > GIT_COMMIT_HASH_MAX_LENGTH) return `gitCommitHash must be at most ${GIT_COMMIT_HASH_MAX_LENGTH} characters`;
106
114
  if (fingerprintHash === null === (appVersion === null)) return "exactly one of fingerprintHash and appVersion is required";
107
115
  if (buildKey !== null && !BUILD_KEY.test(buildKey)) return "buildKey must be nbk1: and a SHA-256, or null";
@@ -138,7 +146,8 @@ const createNativeBuildApi = (db, { now = Date.now } = {}) => ({
138
146
  submitted_at_ms: null,
139
147
  submitted_version: null,
140
148
  is_store_build: false,
141
- is_sandbox: registration.isSandbox === true
149
+ is_sandbox: registration.isSandbox === true,
150
+ sandbox_url_scheme: registration.sandboxUrlScheme ?? null
142
151
  };
143
152
  for (let attempt = 1;; attempt += 1) {
144
153
  await require_writes.insertChannel(db, {
@@ -219,7 +228,8 @@ const createNativeBuildApi = (db, { now = Date.now } = {}) => ({
219
228
  const row = await tx.findOne("native_builds", { id });
220
229
  if (row === null) return null;
221
230
  const build = pick(row);
222
- if (SUBMISSION_DESTINATIONS[build.platform] !== destination) throw new NativeBuildInputError(`Invalid native build submission: an ${build.platform} build is submitted to ${SUBMISSION_DESTINATIONS[build.platform]}, not ${destination}.`);
231
+ if (!require_nativeBuildDestinations.NATIVE_BUILD_SUBMISSION_DESTINATIONS[build.platform].includes(destination)) throw new NativeBuildInputError(`Invalid native build submission: an ${build.platform} build is submitted to ${require_nativeBuildDestinations.NATIVE_BUILD_SUBMISSION_DESTINATIONS[build.platform].join(" or ")}, not ${destination}.`);
232
+ if (build.is_sandbox && destination !== "testflight" && destination !== "play-internal") throw new NativeBuildInputError("A sandbox build can submit only to TestFlight or Play internal testing.");
223
233
  const set = {
224
234
  submitted_to: destination,
225
235
  submitted_at_ms: now(),
@@ -1,3 +1,4 @@
1
+ import { NATIVE_BUILD_SUBMISSION_DESTINATIONS } from "./nativeBuildDestinations.mjs";
1
2
  import { after } from "./reads.mjs";
2
3
  import { insertChannel } from "./writes.mjs";
3
4
  import { DatabaseConstraintError, isUUIDv7 } from "@hot-updater/plugin-core";
@@ -18,6 +19,13 @@ const GIT_COMMIT_HASH_MAX_LENGTH = 255;
18
19
  * and looks up nothing else.
19
20
  */
20
21
  const BUILD_KEY = /^nbk1:[0-9a-f]{64}$/;
22
+ /** `native_builds.sandbox_url_scheme`'s bound in core's schema. */
23
+ const SANDBOX_URL_SCHEME_MAX_LENGTH = 255;
24
+ /**
25
+ * A URL scheme as RFC 3986 spells it, in lower case: what a sandbox build's
26
+ * artifact registers, as `@hot-updater/protocol/native-artifact` reads it.
27
+ */
28
+ const URL_SCHEME = new RegExp(`^[a-z][a-z0-9+.-]{0,254}$`);
21
29
  /** A native build or scope core cannot store or look up: the caller's input. */
22
30
  var NativeBuildInputError = class extends TypeError {
23
31
  name = "NativeBuildInputError";
@@ -41,7 +49,8 @@ const pick = (row) => ({
41
49
  submitted_at_ms: row.submitted_at_ms ?? null,
42
50
  submitted_version: row.submitted_version ?? null,
43
51
  is_store_build: row.is_store_build === true,
44
- is_sandbox: row.is_sandbox === true
52
+ is_sandbox: row.is_sandbox === true,
53
+ sandbox_url_scheme: row.sandbox_url_scheme ?? null
45
54
  });
46
55
  /**
47
56
  * The channels only sandbox builds register on: a registration's `sandbox`
@@ -56,11 +65,6 @@ const SANDBOX_CHANNEL_PREFIX = "sandbox-";
56
65
  const OLDER_BUILDS_PAGE = 20;
57
66
  /** How many times a mark runs again after losing its scope's mark to another. */
58
67
  const MARK_ATTEMPTS = 8;
59
- /** The store track each platform's builds are submitted to. */
60
- const SUBMISSION_DESTINATIONS = {
61
- android: "play-internal",
62
- ios: "testflight"
63
- };
64
68
  /** `native_builds.build_number`'s bound in core's schema. */
65
69
  const BUILD_NUMBER_MAX_LENGTH = 64;
66
70
  /** `native_builds.submitted_version`'s bound in core's schema. */
@@ -93,7 +97,7 @@ const nativeBuildScopeKey = (scope) => {
93
97
  };
94
98
  /** Whether `bundleId` is a native build's built-in bundle: one unique read. */
95
99
  const isBuiltInBundle = async (db, bundleId) => await db.findOne("native_builds", { min_bundle_id: bundleId }) !== null;
96
- const problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, isSandbox, artifact }) => {
100
+ const problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, isSandbox, sandboxUrlScheme, artifact }) => {
97
101
  if (!isUUIDv7(id)) return "id must be a UUIDv7";
98
102
  if (!isUUIDv7(minBundleId)) return "minBundleId must be the UUIDv7 a release build compiles in";
99
103
  if (platform !== "ios" && platform !== "android") return "platform must be ios or android";
@@ -102,6 +106,10 @@ const problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVer
102
106
  const reserved = channel.startsWith(SANDBOX_CHANNEL_PREFIX);
103
107
  if (isSandbox === true && !reserved) return `a sandbox build registers on a ${SANDBOX_CHANNEL_PREFIX}* channel, not ${channel}`;
104
108
  if (isSandbox !== true && reserved) return `channel ${channel} is reserved for sandbox builds`;
109
+ if (sandboxUrlScheme !== void 0 && sandboxUrlScheme !== null) {
110
+ if (isSandbox !== true) return "sandboxUrlScheme is a sandbox build's, and this isn't one";
111
+ if (typeof sandboxUrlScheme !== "string" || !URL_SCHEME.test(sandboxUrlScheme)) return `sandboxUrlScheme must be a URL scheme in lower case, up to ${SANDBOX_URL_SCHEME_MAX_LENGTH} characters, or null`;
112
+ }
105
113
  if (gitCommitHash !== null && gitCommitHash.length > GIT_COMMIT_HASH_MAX_LENGTH) return `gitCommitHash must be at most ${GIT_COMMIT_HASH_MAX_LENGTH} characters`;
106
114
  if (fingerprintHash === null === (appVersion === null)) return "exactly one of fingerprintHash and appVersion is required";
107
115
  if (buildKey !== null && !BUILD_KEY.test(buildKey)) return "buildKey must be nbk1: and a SHA-256, or null";
@@ -138,7 +146,8 @@ const createNativeBuildApi = (db, { now = Date.now } = {}) => ({
138
146
  submitted_at_ms: null,
139
147
  submitted_version: null,
140
148
  is_store_build: false,
141
- is_sandbox: registration.isSandbox === true
149
+ is_sandbox: registration.isSandbox === true,
150
+ sandbox_url_scheme: registration.sandboxUrlScheme ?? null
142
151
  };
143
152
  for (let attempt = 1;; attempt += 1) {
144
153
  await insertChannel(db, {
@@ -219,7 +228,8 @@ const createNativeBuildApi = (db, { now = Date.now } = {}) => ({
219
228
  const row = await tx.findOne("native_builds", { id });
220
229
  if (row === null) return null;
221
230
  const build = pick(row);
222
- if (SUBMISSION_DESTINATIONS[build.platform] !== destination) throw new NativeBuildInputError(`Invalid native build submission: an ${build.platform} build is submitted to ${SUBMISSION_DESTINATIONS[build.platform]}, not ${destination}.`);
231
+ if (!NATIVE_BUILD_SUBMISSION_DESTINATIONS[build.platform].includes(destination)) throw new NativeBuildInputError(`Invalid native build submission: an ${build.platform} build is submitted to ${NATIVE_BUILD_SUBMISSION_DESTINATIONS[build.platform].join(" or ")}, not ${destination}.`);
232
+ if (build.is_sandbox && destination !== "testflight" && destination !== "play-internal") throw new NativeBuildInputError("A sandbox build can submit only to TestFlight or Play internal testing.");
223
233
  const set = {
224
234
  submitted_to: destination,
225
235
  submitted_at_ms: now(),
@@ -1,3 +1,4 @@
1
+ const require_nativeBuildDestinations = require("./core/nativeBuildDestinations.cjs");
1
2
  const require_nativeBuilds = require("./core/nativeBuilds.cjs");
2
3
  const require_handlerErrors = require("./handlerErrors.cjs");
3
4
  const require_handlerParameters = require("./handlerParameters.cjs");
@@ -169,7 +170,7 @@ const refusingInvalid = async (operation) => {
169
170
  throw error;
170
171
  }
171
172
  };
172
- const isNativeBuildRegistration = (value) => isRecord(value) && isText(value.id) && isText(value.minBundleId) && typeof value.platform === "string" && require_handlerParameters.isPlatform(value.platform) && isText(value.channel) && isTextOrNull(value.fingerprintHash) && isTextOrNull(value.appVersion) && value.fingerprintHash === null !== (value.appVersion === null) && isTextOrNull(value.gitCommitHash) && isTextOrNull(value.buildKey) && (value.buildNumber === void 0 || isTextOrNull(value.buildNumber)) && (value.isSandbox === void 0 || typeof value.isSandbox === "boolean") && isRecord(value.artifact) && typeof value.artifact.kind === "string" && NATIVE_BUILD_ARTIFACT_KINDS.has(value.artifact.kind) && isText(value.artifact.storageUri) && Number.isSafeInteger(value.artifact.byteSize) && value.artifact.byteSize >= 0 && isRecord(value.embeddedBundle) && isText(value.embeddedBundle.manifestStorageUri) && isText(value.embeddedBundle.manifestFileHash) && isText(value.embeddedBundle.assetBaseStorageUri) && (value.embeddedBundle.metadata === void 0 || isRecord(value.embeddedBundle.metadata));
173
+ const isNativeBuildRegistration = (value) => isRecord(value) && isText(value.id) && isText(value.minBundleId) && typeof value.platform === "string" && require_handlerParameters.isPlatform(value.platform) && isText(value.channel) && isTextOrNull(value.fingerprintHash) && isTextOrNull(value.appVersion) && value.fingerprintHash === null !== (value.appVersion === null) && isTextOrNull(value.gitCommitHash) && isTextOrNull(value.buildKey) && (value.buildNumber === void 0 || isTextOrNull(value.buildNumber)) && (value.isSandbox === void 0 || typeof value.isSandbox === "boolean") && (value.sandboxUrlScheme === void 0 || isTextOrNull(value.sandboxUrlScheme)) && isRecord(value.artifact) && typeof value.artifact.kind === "string" && NATIVE_BUILD_ARTIFACT_KINDS.has(value.artifact.kind) && isText(value.artifact.storageUri) && Number.isSafeInteger(value.artifact.byteSize) && value.artifact.byteSize >= 0 && isRecord(value.embeddedBundle) && isText(value.embeddedBundle.manifestStorageUri) && isText(value.embeddedBundle.manifestFileHash) && isText(value.embeddedBundle.assetBaseStorageUri) && (value.embeddedBundle.metadata === void 0 || isRecord(value.embeddedBundle.metadata));
173
174
  const scopeKeyOf = (params) => require_handlerParameters.decodeMaybe(require_handlerParameters.requireRouteParam(params, "scopeKey")) ?? "";
174
175
  /** Every admin route's handler, by the name `ADMIN_ROUTES` mounts it under. */
175
176
  const createAdminRouteHandlers = () => ({
@@ -318,7 +319,7 @@ const createAdminRouteHandlers = () => ({
318
319
  }),
319
320
  recordNativeBuildSubmission: onCore(async (core, request, params) => {
320
321
  const input = await body(request);
321
- if (!isRecord(input) || input.destination !== "testflight" && input.destination !== "play-internal" || !isText(input.version)) throw new require_handlerErrors.HandlerBadRequestError("A native build submission needs destination (testflight or play-internal) and version.");
322
+ if (!isRecord(input) || !Object.values(require_nativeBuildDestinations.NATIVE_BUILD_SUBMISSION_DESTINATIONS).flat().includes(input.destination) || !isText(input.version)) throw new require_handlerErrors.HandlerBadRequestError("A native build submission needs a valid store destination and version.");
322
323
  const submission = {
323
324
  destination: input.destination,
324
325
  version: input.version
@@ -1,3 +1,4 @@
1
+ import { NATIVE_BUILD_SUBMISSION_DESTINATIONS } from "./core/nativeBuildDestinations.mjs";
1
2
  import { NativeBuildInputError } from "./core/nativeBuilds.mjs";
2
3
  import { HandlerBadRequestError } from "./handlerErrors.mjs";
3
4
  import { decodeMaybe, isPlatform, parseBooleanSearchParam, requireRouteParam } from "./handlerParameters.mjs";
@@ -169,7 +170,7 @@ const refusingInvalid = async (operation) => {
169
170
  throw error;
170
171
  }
171
172
  };
172
- const isNativeBuildRegistration = (value) => isRecord(value) && isText(value.id) && isText(value.minBundleId) && typeof value.platform === "string" && isPlatform(value.platform) && isText(value.channel) && isTextOrNull(value.fingerprintHash) && isTextOrNull(value.appVersion) && value.fingerprintHash === null !== (value.appVersion === null) && isTextOrNull(value.gitCommitHash) && isTextOrNull(value.buildKey) && (value.buildNumber === void 0 || isTextOrNull(value.buildNumber)) && (value.isSandbox === void 0 || typeof value.isSandbox === "boolean") && isRecord(value.artifact) && typeof value.artifact.kind === "string" && NATIVE_BUILD_ARTIFACT_KINDS.has(value.artifact.kind) && isText(value.artifact.storageUri) && Number.isSafeInteger(value.artifact.byteSize) && value.artifact.byteSize >= 0 && isRecord(value.embeddedBundle) && isText(value.embeddedBundle.manifestStorageUri) && isText(value.embeddedBundle.manifestFileHash) && isText(value.embeddedBundle.assetBaseStorageUri) && (value.embeddedBundle.metadata === void 0 || isRecord(value.embeddedBundle.metadata));
173
+ const isNativeBuildRegistration = (value) => isRecord(value) && isText(value.id) && isText(value.minBundleId) && typeof value.platform === "string" && isPlatform(value.platform) && isText(value.channel) && isTextOrNull(value.fingerprintHash) && isTextOrNull(value.appVersion) && value.fingerprintHash === null !== (value.appVersion === null) && isTextOrNull(value.gitCommitHash) && isTextOrNull(value.buildKey) && (value.buildNumber === void 0 || isTextOrNull(value.buildNumber)) && (value.isSandbox === void 0 || typeof value.isSandbox === "boolean") && (value.sandboxUrlScheme === void 0 || isTextOrNull(value.sandboxUrlScheme)) && isRecord(value.artifact) && typeof value.artifact.kind === "string" && NATIVE_BUILD_ARTIFACT_KINDS.has(value.artifact.kind) && isText(value.artifact.storageUri) && Number.isSafeInteger(value.artifact.byteSize) && value.artifact.byteSize >= 0 && isRecord(value.embeddedBundle) && isText(value.embeddedBundle.manifestStorageUri) && isText(value.embeddedBundle.manifestFileHash) && isText(value.embeddedBundle.assetBaseStorageUri) && (value.embeddedBundle.metadata === void 0 || isRecord(value.embeddedBundle.metadata));
173
174
  const scopeKeyOf = (params) => decodeMaybe(requireRouteParam(params, "scopeKey")) ?? "";
174
175
  /** Every admin route's handler, by the name `ADMIN_ROUTES` mounts it under. */
175
176
  const createAdminRouteHandlers = () => ({
@@ -318,7 +319,7 @@ const createAdminRouteHandlers = () => ({
318
319
  }),
319
320
  recordNativeBuildSubmission: onCore(async (core, request, params) => {
320
321
  const input = await body(request);
321
- if (!isRecord(input) || input.destination !== "testflight" && input.destination !== "play-internal" || !isText(input.version)) throw new HandlerBadRequestError("A native build submission needs destination (testflight or play-internal) and version.");
322
+ if (!isRecord(input) || !Object.values(NATIVE_BUILD_SUBMISSION_DESTINATIONS).flat().includes(input.destination) || !isText(input.version)) throw new HandlerBadRequestError("A native build submission needs a valid store destination and version.");
322
323
  const submission = {
323
324
  destination: input.destination,
324
325
  version: input.version
package/dist/package.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "1.2.0-rc.23";
2
+ var version = "1.2.0-rc.25";
3
3
  //#endregion
4
4
  Object.defineProperty(exports, "version", {
5
5
  enumerable: true,
package/dist/package.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.2.0-rc.23";
2
+ var version = "1.2.0-rc.25";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/server",
3
- "version": "1.2.0-rc.23",
3
+ "version": "1.2.0-rc.25",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
@@ -50,11 +50,11 @@
50
50
  "dependencies": {
51
51
  "rou3": "0.7.9",
52
52
  "verkit": "0.4.0",
53
- "@hot-updater/plugin-api-keys": "1.2.0-rc.23",
54
- "@hot-updater/plugin-remote-config": "1.2.0-rc.23",
55
- "@hot-updater/plugin-insights": "1.2.0-rc.23",
56
- "@hot-updater/protocol": "1.2.0-rc.23",
57
- "@hot-updater/plugin-core": "1.2.0-rc.23"
53
+ "@hot-updater/plugin-core": "1.2.0-rc.25",
54
+ "@hot-updater/plugin-api-keys": "1.2.0-rc.25",
55
+ "@hot-updater/plugin-insights": "1.2.0-rc.25",
56
+ "@hot-updater/plugin-remote-config": "1.2.0-rc.25",
57
+ "@hot-updater/protocol": "1.2.0-rc.25"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@prisma/client": "*",