@prisma/internals 7.10.0-dev.9 → 7.10.0-integration-fix-prisma-publish-token.1
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/{chunk-3OH47HQH.js → chunk-3IMRWXIL.js} +15 -15
- package/dist/{chunk-EBLNHWW6.js → chunk-3VD46SL7.js} +9 -9
- package/dist/{chunk-4YZJJPK2.js → chunk-56SGK3FA.js} +15 -15
- package/dist/{chunk-H2BTM6QL.js → chunk-5AOTWAVM.js} +14 -14
- package/dist/{chunk-AQYN6BFL.js → chunk-5BDP445D.js} +5 -5
- package/dist/{chunk-GZY7QBBF.js → chunk-5WRIOIZY.js} +5 -5
- package/dist/{chunk-LZ2DP3UC.js → chunk-6QMQ2JYG.js} +7 -7
- package/dist/{chunk-TZJROXB3.js → chunk-6Z766KGR.js} +6 -6
- package/dist/{chunk-JFFNC4AF.js → chunk-72IC6XXC.js} +5 -5
- package/dist/{chunk-KAH2NIWC.js → chunk-74RGCSUJ.js} +5 -5
- package/dist/{chunk-5P4WR3QW.js → chunk-7BDW72TQ.js} +13 -13
- package/dist/{chunk-3GIVRMID.js → chunk-CF53A7EF.js} +5 -5
- package/dist/{chunk-6PILE32P.js → chunk-CULHNO63.js} +29 -29
- package/dist/{chunk-GZLJZGHX.js → chunk-DUDEWDFC.js} +7 -7
- package/dist/{chunk-MD47SEWA.js → chunk-EWPXLBGE.js} +14 -14
- package/dist/{chunk-YXCPS3WU.js → chunk-FRVJZOHP.js} +6 -6
- package/dist/{chunk-T3LF4DKH.js → chunk-ISZV63ZU.js} +10 -10
- package/dist/{chunk-QKQKSUQO.js → chunk-JFXHOFJA.js} +5 -5
- package/dist/{chunk-VMG6ENBV.js → chunk-KVCNBZ75.js} +5 -5
- package/dist/{chunk-NZ7DJZZM.js → chunk-MV7NEBFP.js} +8 -8
- package/dist/{chunk-SH3LMKTB.js → chunk-PKF53VLJ.js} +5 -5
- package/dist/{chunk-PP22IZ7I.js → chunk-Q3A43VXT.js} +5 -5
- package/dist/{chunk-L2BUQUNG.js → chunk-QBNYSYZK.js} +5 -5
- package/dist/{chunk-6S5MN3NA.js → chunk-QMNPESAP.js} +4 -4
- package/dist/{chunk-ZB2V476P.js → chunk-R47SFJ5Z.js} +10 -10
- package/dist/{chunk-2BXDHSSY.js → chunk-TPCPXGC5.js} +5 -5
- package/dist/{chunk-CR3WUS3D.js → chunk-VUGB2H7M.js} +29 -29
- package/dist/{chunk-NUKBOD54.js → chunk-WFMA7DI5.js} +26 -22
- package/dist/{chunk-XGQEVNKT.js → chunk-XAAVALN7.js} +13 -13
- package/dist/chunk-YNDZCLVL.js +307 -0
- package/dist/{chunk-7IKUTPWQ.js → chunk-YXB6APHS.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.d.ts +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +23 -23
- package/dist/cli/completion-values.js +24 -24
- package/dist/cli/getSchema.js +7 -7
- package/dist/cli/hashes.js +4 -4
- package/dist/cli/schemaContext.js +24 -24
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +22 -22
- package/dist/engine-commands/getConfig.js +9 -9
- package/dist/engine-commands/getDmmf.js +10 -10
- package/dist/engine-commands/getEnginesInfo.js +4 -4
- package/dist/engine-commands/index.js +33 -33
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/validate.js +9 -9
- package/dist/get-generators/getGenerators.d.ts +1 -0
- package/dist/get-generators/getGenerators.js +25 -25
- package/dist/index.js +75 -75
- package/dist/migrateTypes.d.ts +1 -1
- package/dist/sendPanic.js +3 -3
- package/dist/utils/getGitHubIssueUrl.js +4 -4
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +5 -5
- package/dist/utils/missingGeneratorMessage.d.ts +3 -3
- package/dist/utils/missingGeneratorMessage.js +4 -4
- package/dist/utils/validatePrismaConfigWithDatasource.d.ts +2 -2
- package/dist/utils/validatePrismaConfigWithDatasource.js +3 -3
- package/dist/wasm.js +5 -5
- package/package.json +16 -16
- package/dist/chunk-XKZ6CBLA.js +0 -281
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_YNDZCLVL_exports = {};
|
|
20
|
+
__export(chunk_YNDZCLVL_exports, {
|
|
21
|
+
M: () => M,
|
|
22
|
+
z: () => z
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(chunk_YNDZCLVL_exports);
|
|
25
|
+
var t = Symbol.for("@ts-pattern/matcher");
|
|
26
|
+
var e = Symbol.for("@ts-pattern/isVariadic");
|
|
27
|
+
var n = "@ts-pattern/anonymous-select-key";
|
|
28
|
+
var r = (t2) => Boolean(t2 && "object" == typeof t2);
|
|
29
|
+
var i = (e2) => e2 && !!e2[t];
|
|
30
|
+
var o = (n2, s2, c2) => {
|
|
31
|
+
if (i(n2)) {
|
|
32
|
+
const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(s2);
|
|
33
|
+
return r2 && i2 && Object.keys(i2).forEach((t2) => c2(t2, i2[t2])), r2;
|
|
34
|
+
}
|
|
35
|
+
if (r(n2)) {
|
|
36
|
+
if (!r(s2)) return false;
|
|
37
|
+
if (Array.isArray(n2)) {
|
|
38
|
+
if (!Array.isArray(s2)) return false;
|
|
39
|
+
let t2 = [], r2 = [], u2 = [];
|
|
40
|
+
for (const o2 of n2.keys()) {
|
|
41
|
+
const s3 = n2[o2];
|
|
42
|
+
i(s3) && s3[e] ? u2.push(s3) : u2.length ? r2.push(s3) : t2.push(s3);
|
|
43
|
+
}
|
|
44
|
+
if (u2.length) {
|
|
45
|
+
if (u2.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
46
|
+
if (s2.length < t2.length + r2.length) return false;
|
|
47
|
+
const e2 = s2.slice(0, t2.length), n3 = 0 === r2.length ? [] : s2.slice(-r2.length), i2 = s2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
|
|
48
|
+
return t2.every((t3, n4) => o(t3, e2[n4], c2)) && r2.every((t3, e3) => o(t3, n3[e3], c2)) && (0 === u2.length || o(u2[0], i2, c2));
|
|
49
|
+
}
|
|
50
|
+
return n2.length === s2.length && n2.every((t3, e2) => o(t3, s2[e2], c2));
|
|
51
|
+
}
|
|
52
|
+
return Reflect.ownKeys(n2).every((e2) => {
|
|
53
|
+
const r2 = n2[e2];
|
|
54
|
+
return (e2 in s2 || i(u2 = r2) && "optional" === u2[t]().matcherType) && o(r2, s2[e2], c2);
|
|
55
|
+
var u2;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return Object.is(s2, n2);
|
|
59
|
+
};
|
|
60
|
+
var s = (e2) => {
|
|
61
|
+
var n2, o2, u2;
|
|
62
|
+
return r(e2) ? i(e2) ? null != (n2 = null == (o2 = (u2 = e2[t]()).getSelectionKeys) ? void 0 : o2.call(u2)) ? n2 : [] : Array.isArray(e2) ? c(e2, s) : c(Object.values(e2), s) : [];
|
|
63
|
+
};
|
|
64
|
+
var c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
|
|
65
|
+
function u(...t2) {
|
|
66
|
+
if (1 === t2.length) {
|
|
67
|
+
const [e2] = t2;
|
|
68
|
+
return (t3) => o(e2, t3, () => {
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
if (2 === t2.length) {
|
|
72
|
+
const [e2, n2] = t2;
|
|
73
|
+
return o(e2, n2, () => {
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t2.length}.`);
|
|
77
|
+
}
|
|
78
|
+
function a(t2) {
|
|
79
|
+
return Object.assign(t2, { optional: () => h(t2), and: (e2) => d(t2, e2), or: (e2) => y(t2, e2), select: (e2) => void 0 === e2 ? v(t2) : v(e2, t2) });
|
|
80
|
+
}
|
|
81
|
+
function l(t2) {
|
|
82
|
+
return Object.assign(((t3) => Object.assign(t3, { [Symbol.iterator]() {
|
|
83
|
+
let n2 = 0;
|
|
84
|
+
const r2 = [{ value: Object.assign(t3, { [e]: true }), done: false }, { done: true, value: void 0 }];
|
|
85
|
+
return { next: () => {
|
|
86
|
+
var t4;
|
|
87
|
+
return null != (t4 = r2[n2++]) ? t4 : r2.at(-1);
|
|
88
|
+
} };
|
|
89
|
+
} }))(t2), { optional: () => l(h(t2)), select: (e2) => l(void 0 === e2 ? v(t2) : v(e2, t2)) });
|
|
90
|
+
}
|
|
91
|
+
function h(e2) {
|
|
92
|
+
return a({ [t]: () => ({ match: (t2) => {
|
|
93
|
+
let n2 = {};
|
|
94
|
+
const r2 = (t3, e3) => {
|
|
95
|
+
n2[t3] = e3;
|
|
96
|
+
};
|
|
97
|
+
return void 0 === t2 ? (s(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: o(e2, t2, r2), selections: n2 };
|
|
98
|
+
}, getSelectionKeys: () => s(e2), matcherType: "optional" }) });
|
|
99
|
+
}
|
|
100
|
+
var f = (t2, e2) => {
|
|
101
|
+
for (const n2 of t2) if (!e2(n2)) return false;
|
|
102
|
+
return true;
|
|
103
|
+
};
|
|
104
|
+
var g = (t2, e2) => {
|
|
105
|
+
for (const [n2, r2] of t2.entries()) if (!e2(r2, n2)) return false;
|
|
106
|
+
return true;
|
|
107
|
+
};
|
|
108
|
+
var m = (t2, e2) => {
|
|
109
|
+
const n2 = Reflect.ownKeys(t2);
|
|
110
|
+
for (const r2 of n2) if (!e2(r2, t2[r2])) return false;
|
|
111
|
+
return true;
|
|
112
|
+
};
|
|
113
|
+
function d(...e2) {
|
|
114
|
+
return a({ [t]: () => ({ match: (t2) => {
|
|
115
|
+
let n2 = {};
|
|
116
|
+
const r2 = (t3, e3) => {
|
|
117
|
+
n2[t3] = e3;
|
|
118
|
+
};
|
|
119
|
+
return { matched: e2.every((e3) => o(e3, t2, r2)), selections: n2 };
|
|
120
|
+
}, getSelectionKeys: () => c(e2, s), matcherType: "and" }) });
|
|
121
|
+
}
|
|
122
|
+
function y(...e2) {
|
|
123
|
+
return a({ [t]: () => ({ match: (t2) => {
|
|
124
|
+
let n2 = {};
|
|
125
|
+
const r2 = (t3, e3) => {
|
|
126
|
+
n2[t3] = e3;
|
|
127
|
+
};
|
|
128
|
+
return c(e2, s).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => o(e3, t2, r2)), selections: n2 };
|
|
129
|
+
}, getSelectionKeys: () => c(e2, s), matcherType: "or" }) });
|
|
130
|
+
}
|
|
131
|
+
function p(e2) {
|
|
132
|
+
return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) };
|
|
133
|
+
}
|
|
134
|
+
function v(...e2) {
|
|
135
|
+
const r2 = "string" == typeof e2[0] ? e2[0] : void 0, i2 = 2 === e2.length ? e2[1] : "string" == typeof e2[0] ? void 0 : e2[0];
|
|
136
|
+
return a({ [t]: () => ({ match: (t2) => {
|
|
137
|
+
let e3 = { [null != r2 ? r2 : n]: t2 };
|
|
138
|
+
return { matched: void 0 === i2 || o(i2, t2, (t3, n2) => {
|
|
139
|
+
e3[t3] = n2;
|
|
140
|
+
}), selections: e3 };
|
|
141
|
+
}, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : s(i2)) }) });
|
|
142
|
+
}
|
|
143
|
+
function b(t2) {
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
function w(t2) {
|
|
147
|
+
return "number" == typeof t2;
|
|
148
|
+
}
|
|
149
|
+
function S(t2) {
|
|
150
|
+
return "string" == typeof t2;
|
|
151
|
+
}
|
|
152
|
+
function j(t2) {
|
|
153
|
+
return "bigint" == typeof t2;
|
|
154
|
+
}
|
|
155
|
+
var K = a(p(b));
|
|
156
|
+
var O = a(p(b));
|
|
157
|
+
var E = K;
|
|
158
|
+
var x = (t2) => Object.assign(a(t2), { startsWith: (e2) => {
|
|
159
|
+
return x(d(t2, (n2 = e2, p((t3) => S(t3) && t3.startsWith(n2)))));
|
|
160
|
+
var n2;
|
|
161
|
+
}, endsWith: (e2) => {
|
|
162
|
+
return x(d(t2, (n2 = e2, p((t3) => S(t3) && t3.endsWith(n2)))));
|
|
163
|
+
var n2;
|
|
164
|
+
}, minLength: (e2) => x(d(t2, ((t3) => p((e3) => S(e3) && e3.length >= t3))(e2))), length: (e2) => x(d(t2, ((t3) => p((e3) => S(e3) && e3.length === t3))(e2))), maxLength: (e2) => x(d(t2, ((t3) => p((e3) => S(e3) && e3.length <= t3))(e2))), includes: (e2) => {
|
|
165
|
+
return x(d(t2, (n2 = e2, p((t3) => S(t3) && t3.includes(n2)))));
|
|
166
|
+
var n2;
|
|
167
|
+
}, regex: (e2) => {
|
|
168
|
+
return x(d(t2, (n2 = e2, p((t3) => S(t3) && Boolean(t3.match(n2))))));
|
|
169
|
+
var n2;
|
|
170
|
+
} });
|
|
171
|
+
var A = x(p(S));
|
|
172
|
+
var N = (t2) => Object.assign(a(t2), { between: (e2, n2) => N(d(t2, ((t3, e3) => p((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => N(d(t2, ((t3) => p((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => N(d(t2, ((t3) => p((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => N(d(t2, ((t3) => p((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => N(d(t2, ((t3) => p((e3) => w(e3) && e3 >= t3))(e2))), int: () => N(d(t2, p((t3) => w(t3) && Number.isInteger(t3)))), finite: () => N(d(t2, p((t3) => w(t3) && Number.isFinite(t3)))), positive: () => N(d(t2, p((t3) => w(t3) && t3 > 0))), negative: () => N(d(t2, p((t3) => w(t3) && t3 < 0))) });
|
|
173
|
+
var P = N(p(w));
|
|
174
|
+
var k = (t2) => Object.assign(a(t2), { between: (e2, n2) => k(d(t2, ((t3, e3) => p((n3) => j(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => k(d(t2, ((t3) => p((e3) => j(e3) && e3 < t3))(e2))), gt: (e2) => k(d(t2, ((t3) => p((e3) => j(e3) && e3 > t3))(e2))), lte: (e2) => k(d(t2, ((t3) => p((e3) => j(e3) && e3 <= t3))(e2))), gte: (e2) => k(d(t2, ((t3) => p((e3) => j(e3) && e3 >= t3))(e2))), positive: () => k(d(t2, p((t3) => j(t3) && t3 > 0))), negative: () => k(d(t2, p((t3) => j(t3) && t3 < 0))) });
|
|
175
|
+
var T = k(p(j));
|
|
176
|
+
var B = a(p(function(t2) {
|
|
177
|
+
return "boolean" == typeof t2;
|
|
178
|
+
}));
|
|
179
|
+
var _ = a(p(function(t2) {
|
|
180
|
+
return "symbol" == typeof t2;
|
|
181
|
+
}));
|
|
182
|
+
var W = a(p(function(t2) {
|
|
183
|
+
return null == t2;
|
|
184
|
+
}));
|
|
185
|
+
var $ = a(p(function(t2) {
|
|
186
|
+
return null != t2;
|
|
187
|
+
}));
|
|
188
|
+
var z = { __proto__: null, matcher: t, optional: h, array: function(...e2) {
|
|
189
|
+
return l({ [t]: () => ({ match: (t2) => {
|
|
190
|
+
if (!Array.isArray(t2)) return { matched: false };
|
|
191
|
+
if (0 === e2.length) return { matched: true };
|
|
192
|
+
const n2 = e2[0];
|
|
193
|
+
let r2 = {};
|
|
194
|
+
if (0 === t2.length) return s(n2).forEach((t3) => {
|
|
195
|
+
r2[t3] = [];
|
|
196
|
+
}), { matched: true, selections: r2 };
|
|
197
|
+
const i2 = (t3, e3) => {
|
|
198
|
+
r2[t3] = (r2[t3] || []).concat([e3]);
|
|
199
|
+
};
|
|
200
|
+
return { matched: t2.every((t3) => o(n2, t3, i2)), selections: r2 };
|
|
201
|
+
}, getSelectionKeys: () => 0 === e2.length ? [] : s(e2[0]) }) });
|
|
202
|
+
}, set: function(...e2) {
|
|
203
|
+
return a({ [t]: () => ({ match: (t2) => {
|
|
204
|
+
if (!(t2 instanceof Set)) return { matched: false };
|
|
205
|
+
let n2 = {};
|
|
206
|
+
if (0 === t2.size) return { matched: true, selections: n2 };
|
|
207
|
+
if (0 === e2.length) return { matched: true };
|
|
208
|
+
const r2 = (t3, e3) => {
|
|
209
|
+
n2[t3] = (n2[t3] || []).concat([e3]);
|
|
210
|
+
}, i2 = e2[0];
|
|
211
|
+
return { matched: f(t2, (t3) => o(i2, t3, r2)), selections: n2 };
|
|
212
|
+
}, getSelectionKeys: () => 0 === e2.length ? [] : s(e2[0]) }) });
|
|
213
|
+
}, map: function(...e2) {
|
|
214
|
+
return a({ [t]: () => ({ match: (t2) => {
|
|
215
|
+
if (!(t2 instanceof Map)) return { matched: false };
|
|
216
|
+
let n2 = {};
|
|
217
|
+
if (0 === t2.size) return { matched: true, selections: n2 };
|
|
218
|
+
const r2 = (t3, e3) => {
|
|
219
|
+
n2[t3] = (n2[t3] || []).concat([e3]);
|
|
220
|
+
};
|
|
221
|
+
if (0 === e2.length) return { matched: true };
|
|
222
|
+
var i2;
|
|
223
|
+
if (1 === e2.length) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${null == (i2 = e2[0]) ? void 0 : i2.toString()}`);
|
|
224
|
+
const [s2, c2] = e2;
|
|
225
|
+
return { matched: g(t2, (t3, e3) => {
|
|
226
|
+
const n3 = o(s2, e3, r2), i3 = o(c2, t3, r2);
|
|
227
|
+
return n3 && i3;
|
|
228
|
+
}), selections: n2 };
|
|
229
|
+
}, getSelectionKeys: () => 0 === e2.length ? [] : [...s(e2[0]), ...s(e2[1])] }) });
|
|
230
|
+
}, record: function(...e2) {
|
|
231
|
+
return a({ [t]: () => ({ match: (t2) => {
|
|
232
|
+
if (null === t2 || "object" != typeof t2 || Array.isArray(t2)) return { matched: false };
|
|
233
|
+
var n2;
|
|
234
|
+
if (0 === e2.length) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${null == (n2 = e2[0]) ? void 0 : n2.toString()}`);
|
|
235
|
+
let r2 = {};
|
|
236
|
+
const i2 = (t3, e3) => {
|
|
237
|
+
r2[t3] = (r2[t3] || []).concat([e3]);
|
|
238
|
+
}, [s2, c2] = 1 === e2.length ? [A, e2[0]] : e2;
|
|
239
|
+
return { matched: m(t2, (t3, e3) => {
|
|
240
|
+
const n3 = "string" != typeof t3 || Number.isNaN(Number(t3)) ? null : Number(t3), r3 = null !== n3 && o(s2, n3, i2), u2 = o(s2, t3, i2), a2 = o(c2, e3, i2);
|
|
241
|
+
return (u2 || r3) && a2;
|
|
242
|
+
}), selections: r2 };
|
|
243
|
+
}, getSelectionKeys: () => 0 === e2.length ? [] : [...s(e2[0]), ...s(e2[1])] }) });
|
|
244
|
+
}, intersection: d, union: y, not: function(e2) {
|
|
245
|
+
return a({ [t]: () => ({ match: (t2) => ({ matched: !o(e2, t2, () => {
|
|
246
|
+
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
247
|
+
}, when: p, select: v, any: K, unknown: O, _: E, string: A, number: P, bigint: T, boolean: B, symbol: _, nullish: W, nonNullable: $, instanceOf: function(t2) {
|
|
248
|
+
return a(p(/* @__PURE__ */ function(t3) {
|
|
249
|
+
return (e2) => e2 instanceof t3;
|
|
250
|
+
}(t2)));
|
|
251
|
+
}, shape: function(t2) {
|
|
252
|
+
return a(p(u(t2)));
|
|
253
|
+
} };
|
|
254
|
+
var I = class extends Error {
|
|
255
|
+
constructor(t2) {
|
|
256
|
+
let e2;
|
|
257
|
+
try {
|
|
258
|
+
e2 = JSON.stringify(t2);
|
|
259
|
+
} catch (n2) {
|
|
260
|
+
e2 = t2;
|
|
261
|
+
}
|
|
262
|
+
super(`Pattern matching error: no pattern matches value ${e2}`), this.input = void 0, this.input = t2;
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
var L = { matched: false, value: void 0 };
|
|
266
|
+
function M(t2) {
|
|
267
|
+
return new R(t2, L);
|
|
268
|
+
}
|
|
269
|
+
var R = class _R {
|
|
270
|
+
constructor(t2, e2) {
|
|
271
|
+
this.input = void 0, this.state = void 0, this.input = t2, this.state = e2;
|
|
272
|
+
}
|
|
273
|
+
with(...t2) {
|
|
274
|
+
if (this.state.matched) return this;
|
|
275
|
+
const e2 = t2[t2.length - 1], r2 = [t2[0]];
|
|
276
|
+
let i2;
|
|
277
|
+
3 === t2.length && "function" == typeof t2[1] ? i2 = t2[1] : t2.length > 2 && r2.push(...t2.slice(1, t2.length - 1));
|
|
278
|
+
let s2 = false, c2 = {};
|
|
279
|
+
const u2 = (t3, e3) => {
|
|
280
|
+
s2 = true, c2[t3] = e3;
|
|
281
|
+
}, a2 = !r2.some((t3) => o(t3, this.input, u2)) || i2 && !Boolean(i2(this.input)) ? L : { matched: true, value: e2(s2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
|
|
282
|
+
return new _R(this.input, a2);
|
|
283
|
+
}
|
|
284
|
+
when(t2, e2) {
|
|
285
|
+
if (this.state.matched) return this;
|
|
286
|
+
const n2 = Boolean(t2(this.input));
|
|
287
|
+
return new _R(this.input, n2 ? { matched: true, value: e2(this.input, this.input) } : L);
|
|
288
|
+
}
|
|
289
|
+
otherwise(t2) {
|
|
290
|
+
return this.state.matched ? this.state.value : t2(this.input);
|
|
291
|
+
}
|
|
292
|
+
exhaustive(t2 = F) {
|
|
293
|
+
return this.state.matched ? this.state.value : t2(this.input);
|
|
294
|
+
}
|
|
295
|
+
run() {
|
|
296
|
+
return this.exhaustive();
|
|
297
|
+
}
|
|
298
|
+
returnType() {
|
|
299
|
+
return this;
|
|
300
|
+
}
|
|
301
|
+
narrow() {
|
|
302
|
+
return this;
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
function F(t2) {
|
|
306
|
+
throw new I(t2);
|
|
307
|
+
}
|
|
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_YXB6APHS_exports = {};
|
|
30
|
+
__export(chunk_YXB6APHS_exports, {
|
|
31
31
|
getGitHubIssueUrl: () => getGitHubIssueUrl,
|
|
32
32
|
wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(chunk_YXB6APHS_exports);
|
|
35
|
+
var import_chunk_YNDZCLVL = require("./chunk-YNDZCLVL.js");
|
|
36
36
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
37
37
|
var import_node_util = require("node:util");
|
|
38
38
|
var import_get_platform = require("@prisma/get-platform");
|
|
@@ -378,7 +378,7 @@ function getGitHubIssueUrl({
|
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
async function wouldYouLikeToCreateANewIssue(options) {
|
|
381
|
-
const shouldCreateNewIssue = await (0,
|
|
381
|
+
const shouldCreateNewIssue = await (0, import_chunk_YNDZCLVL.M)(options.prompt).with(true, async () => {
|
|
382
382
|
const createNewIssueResponse = await (0, import_prompts.default)({
|
|
383
383
|
type: "select",
|
|
384
384
|
name: "value",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { PrismaConfigWithDatasource } from '../utils/validatePrismaConfigWithDatasource';
|
|
2
2
|
/**
|
|
3
3
|
* Get the message to display when a command is forbidden with a data proxy flag
|
|
4
|
-
* @param
|
|
4
|
+
* @param command the full cli command (eg. prisma db push)
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
|
-
export declare const forbiddenCmdWithDataProxyFlagMessage: (
|
|
7
|
+
export declare const forbiddenCmdWithDataProxyFlagMessage: (command: string) => string;
|
|
8
8
|
/**
|
|
9
9
|
* Check that the data proxy cannot be used through the given urls and schema contexts
|
|
10
|
-
* @param
|
|
10
|
+
* @param command the full cli command (eg. prisma db push)
|
|
11
11
|
* @param validatedConfig the validated Prisma Config value
|
|
12
12
|
*/
|
|
13
|
-
export declare function checkUnsupportedDataProxy({
|
|
14
|
-
|
|
13
|
+
export declare function checkUnsupportedDataProxy({ command, validatedConfig, }: {
|
|
14
|
+
command: string;
|
|
15
15
|
validatedConfig: PrismaConfigWithDatasource;
|
|
16
16
|
}): void;
|
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var checkUnsupportedDataProxy_exports = {};
|
|
20
20
|
__export(checkUnsupportedDataProxy_exports, {
|
|
21
|
-
checkUnsupportedDataProxy: () =>
|
|
22
|
-
forbiddenCmdWithDataProxyFlagMessage: () =>
|
|
21
|
+
checkUnsupportedDataProxy: () => import_chunk_CULHNO63.checkUnsupportedDataProxy,
|
|
22
|
+
forbiddenCmdWithDataProxyFlagMessage: () => import_chunk_CULHNO63.forbiddenCmdWithDataProxyFlagMessage
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(checkUnsupportedDataProxy_exports);
|
|
25
|
-
var
|
|
25
|
+
var import_chunk_CULHNO63 = require("../chunk-CULHNO63.js");
|
|
26
26
|
var import_chunk_X77CS5RK = require("../chunk-X77CS5RK.js");
|
|
27
27
|
var import_chunk_DZ4QWHTB = require("../chunk-DZ4QWHTB.js");
|
|
28
28
|
var import_chunk_5I4ERIIY = require("../chunk-5I4ERIIY.js");
|
|
@@ -32,9 +32,9 @@ var import_chunk_LRU47BGE = require("../chunk-LRU47BGE.js");
|
|
|
32
32
|
var import_chunk_5FJ3MENK = require("../chunk-5FJ3MENK.js");
|
|
33
33
|
var import_chunk_PFYALFCY = require("../chunk-PFYALFCY.js");
|
|
34
34
|
var import_chunk_SP2ETLT2 = require("../chunk-SP2ETLT2.js");
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_JFXHOFJA = require("../chunk-JFXHOFJA.js");
|
|
36
36
|
var import_chunk_ANU3HEGF = require("../chunk-ANU3HEGF.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_WFMA7DI5 = require("../chunk-WFMA7DI5.js");
|
|
38
38
|
var import_chunk_2SDPW6AX = require("../chunk-2SDPW6AX.js");
|
|
39
39
|
var import_chunk_GXW4NTU2 = require("../chunk-GXW4NTU2.js");
|
|
40
40
|
var import_chunk_ZKWDIAVF = require("../chunk-ZKWDIAVF.js");
|
|
@@ -53,9 +53,9 @@ var import_chunk_K2EOOA2X = require("../chunk-K2EOOA2X.js");
|
|
|
53
53
|
var import_chunk_J77ZIDXB = require("../chunk-J77ZIDXB.js");
|
|
54
54
|
var import_chunk_CUD726EK = require("../chunk-CUD726EK.js");
|
|
55
55
|
var import_chunk_BERN76ZI = require("../chunk-BERN76ZI.js");
|
|
56
|
-
var
|
|
56
|
+
var import_chunk_DUDEWDFC = require("../chunk-DUDEWDFC.js");
|
|
57
57
|
var import_chunk_I6WLABB2 = require("../chunk-I6WLABB2.js");
|
|
58
|
-
var
|
|
58
|
+
var import_chunk_YXB6APHS = require("../chunk-YXB6APHS.js");
|
|
59
59
|
var import_chunk_DODIJPCS = require("../chunk-DODIJPCS.js");
|
|
60
60
|
var import_chunk_NIWBAJZV = require("../chunk-NIWBAJZV.js");
|
|
61
61
|
var import_chunk_FCYHZHVW = require("../chunk-FCYHZHVW.js");
|
|
@@ -63,35 +63,35 @@ var import_chunk_H4NI2RIK = require("../chunk-H4NI2RIK.js");
|
|
|
63
63
|
var import_chunk_ICFLO5JW = require("../chunk-ICFLO5JW.js");
|
|
64
64
|
var import_chunk_HHG4DGHC = require("../chunk-HHG4DGHC.js");
|
|
65
65
|
var import_chunk_EKGEKB22 = require("../chunk-EKGEKB22.js");
|
|
66
|
-
var
|
|
66
|
+
var import_chunk_5AOTWAVM = require("../chunk-5AOTWAVM.js");
|
|
67
67
|
var import_chunk_VNIE2AZB = require("../chunk-VNIE2AZB.js");
|
|
68
68
|
var import_chunk_CYAS6B5N = require("../chunk-CYAS6B5N.js");
|
|
69
69
|
var import_chunk_OIVPX3BR = require("../chunk-OIVPX3BR.js");
|
|
70
70
|
var import_chunk_HPVMQFIY = require("../chunk-HPVMQFIY.js");
|
|
71
71
|
var import_chunk_E23HYCQJ = require("../chunk-E23HYCQJ.js");
|
|
72
72
|
var import_chunk_Y4TOGY6I = require("../chunk-Y4TOGY6I.js");
|
|
73
|
-
var
|
|
74
|
-
var
|
|
73
|
+
var import_chunk_56SGK3FA = require("../chunk-56SGK3FA.js");
|
|
74
|
+
var import_chunk_ISZV63ZU = require("../chunk-ISZV63ZU.js");
|
|
75
75
|
var import_chunk_IL7PSY44 = require("../chunk-IL7PSY44.js");
|
|
76
|
-
var
|
|
76
|
+
var import_chunk_3VD46SL7 = require("../chunk-3VD46SL7.js");
|
|
77
77
|
var import_chunk_L6V54WGO = require("../chunk-L6V54WGO.js");
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
78
|
+
var import_chunk_72IC6XXC = require("../chunk-72IC6XXC.js");
|
|
79
|
+
var import_chunk_7BDW72TQ = require("../chunk-7BDW72TQ.js");
|
|
80
|
+
var import_chunk_6Z766KGR = require("../chunk-6Z766KGR.js");
|
|
81
81
|
var import_chunk_C47SCASR = require("../chunk-C47SCASR.js");
|
|
82
82
|
var import_chunk_R6QH57HZ = require("../chunk-R6QH57HZ.js");
|
|
83
83
|
var import_chunk_J7ZPY2XA = require("../chunk-J7ZPY2XA.js");
|
|
84
|
-
var
|
|
85
|
-
var
|
|
84
|
+
var import_chunk_74RGCSUJ = require("../chunk-74RGCSUJ.js");
|
|
85
|
+
var import_chunk_TPCPXGC5 = require("../chunk-TPCPXGC5.js");
|
|
86
86
|
var import_chunk_D4VZUY3O = require("../chunk-D4VZUY3O.js");
|
|
87
|
-
var
|
|
87
|
+
var import_chunk_KVCNBZ75 = require("../chunk-KVCNBZ75.js");
|
|
88
88
|
var import_chunk_QN6PSQY7 = require("../chunk-QN6PSQY7.js");
|
|
89
|
-
var
|
|
89
|
+
var import_chunk_CF53A7EF = require("../chunk-CF53A7EF.js");
|
|
90
90
|
var import_chunk_DTPFRZWV = require("../chunk-DTPFRZWV.js");
|
|
91
|
-
var
|
|
92
|
-
var
|
|
91
|
+
var import_chunk_Q3A43VXT = require("../chunk-Q3A43VXT.js");
|
|
92
|
+
var import_chunk_MV7NEBFP = require("../chunk-MV7NEBFP.js");
|
|
93
93
|
var import_chunk_6JE6QGSJ = require("../chunk-6JE6QGSJ.js");
|
|
94
|
-
var
|
|
94
|
+
var import_chunk_QMNPESAP = require("../chunk-QMNPESAP.js");
|
|
95
95
|
var import_chunk_NBWRGVYR = require("../chunk-NBWRGVYR.js");
|
|
96
96
|
var import_chunk_3ZHE2IX4 = require("../chunk-3ZHE2IX4.js");
|
|
97
97
|
var import_chunk_XYCIH36R = require("../chunk-XYCIH36R.js");
|
|
@@ -104,8 +104,8 @@ var import_chunk_M3GBKLGE = require("../chunk-M3GBKLGE.js");
|
|
|
104
104
|
var import_chunk_E476ARWS = require("../chunk-E476ARWS.js");
|
|
105
105
|
var import_chunk_TWSLDIFL = require("../chunk-TWSLDIFL.js");
|
|
106
106
|
var import_chunk_5DBOS77Y = require("../chunk-5DBOS77Y.js");
|
|
107
|
-
var
|
|
108
|
-
var
|
|
107
|
+
var import_chunk_FRVJZOHP = require("../chunk-FRVJZOHP.js");
|
|
108
|
+
var import_chunk_YNDZCLVL = require("../chunk-YNDZCLVL.js");
|
|
109
109
|
var import_chunk_LMVSIVKQ = require("../chunk-LMVSIVKQ.js");
|
|
110
110
|
var import_chunk_BPDMLM32 = require("../chunk-BPDMLM32.js");
|
|
111
111
|
var import_chunk_IOIAK7V7 = require("../chunk-IOIAK7V7.js");
|
|
@@ -18,30 +18,30 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var completion_values_exports = {};
|
|
20
20
|
__export(completion_values_exports, {
|
|
21
|
-
completionApiKeyHint: () =>
|
|
22
|
-
completionClientOutputPaths: () =>
|
|
23
|
-
completionCompositeTypeDepths: () =>
|
|
24
|
-
completionConfigPaths: () =>
|
|
25
|
-
completionDatabaseIdHint: () =>
|
|
26
|
-
completionDatabaseSchemas: () =>
|
|
27
|
-
completionDatasourceProviders: () =>
|
|
28
|
-
completionDatasourceUrls: () =>
|
|
29
|
-
completionDevDbPorts: () =>
|
|
30
|
-
completionDevHttpPorts: () =>
|
|
31
|
-
completionDevServerNames: () =>
|
|
32
|
-
completionDevShadowDbPorts: () =>
|
|
33
|
-
completionDiffOutputPaths: () =>
|
|
34
|
-
completionGeneratorNames: () =>
|
|
35
|
-
completionGeneratorProviders: () =>
|
|
36
|
-
completionMigrationIds: () =>
|
|
37
|
-
completionMigrationNames: () =>
|
|
38
|
-
completionMigrationsDirPaths: () =>
|
|
39
|
-
completionPreviewFeatures: () =>
|
|
40
|
-
completionSchemaPaths: () =>
|
|
41
|
-
completionSqlScriptPaths: () =>
|
|
42
|
-
completionStudioBrowsers: () =>
|
|
43
|
-
completionStudioPorts: () =>
|
|
21
|
+
completionApiKeyHint: () => import_chunk_QMNPESAP.completionApiKeyHint,
|
|
22
|
+
completionClientOutputPaths: () => import_chunk_QMNPESAP.completionClientOutputPaths,
|
|
23
|
+
completionCompositeTypeDepths: () => import_chunk_QMNPESAP.completionCompositeTypeDepths,
|
|
24
|
+
completionConfigPaths: () => import_chunk_QMNPESAP.completionConfigPaths,
|
|
25
|
+
completionDatabaseIdHint: () => import_chunk_QMNPESAP.completionDatabaseIdHint,
|
|
26
|
+
completionDatabaseSchemas: () => import_chunk_QMNPESAP.completionDatabaseSchemas,
|
|
27
|
+
completionDatasourceProviders: () => import_chunk_QMNPESAP.completionDatasourceProviders,
|
|
28
|
+
completionDatasourceUrls: () => import_chunk_QMNPESAP.completionDatasourceUrls,
|
|
29
|
+
completionDevDbPorts: () => import_chunk_QMNPESAP.completionDevDbPorts,
|
|
30
|
+
completionDevHttpPorts: () => import_chunk_QMNPESAP.completionDevHttpPorts,
|
|
31
|
+
completionDevServerNames: () => import_chunk_QMNPESAP.completionDevServerNames,
|
|
32
|
+
completionDevShadowDbPorts: () => import_chunk_QMNPESAP.completionDevShadowDbPorts,
|
|
33
|
+
completionDiffOutputPaths: () => import_chunk_QMNPESAP.completionDiffOutputPaths,
|
|
34
|
+
completionGeneratorNames: () => import_chunk_QMNPESAP.completionGeneratorNames,
|
|
35
|
+
completionGeneratorProviders: () => import_chunk_QMNPESAP.completionGeneratorProviders,
|
|
36
|
+
completionMigrationIds: () => import_chunk_QMNPESAP.completionMigrationIds,
|
|
37
|
+
completionMigrationNames: () => import_chunk_QMNPESAP.completionMigrationNames,
|
|
38
|
+
completionMigrationsDirPaths: () => import_chunk_QMNPESAP.completionMigrationsDirPaths,
|
|
39
|
+
completionPreviewFeatures: () => import_chunk_QMNPESAP.completionPreviewFeatures,
|
|
40
|
+
completionSchemaPaths: () => import_chunk_QMNPESAP.completionSchemaPaths,
|
|
41
|
+
completionSqlScriptPaths: () => import_chunk_QMNPESAP.completionSqlScriptPaths,
|
|
42
|
+
completionStudioBrowsers: () => import_chunk_QMNPESAP.completionStudioBrowsers,
|
|
43
|
+
completionStudioPorts: () => import_chunk_QMNPESAP.completionStudioPorts
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(completion_values_exports);
|
|
46
|
-
var
|
|
46
|
+
var import_chunk_QMNPESAP = require("../chunk-QMNPESAP.js");
|
|
47
47
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
package/dist/cli/getSchema.js
CHANGED
|
@@ -18,14 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var getSchema_exports = {};
|
|
20
20
|
__export(getSchema_exports, {
|
|
21
|
-
createSchemaPathInput: () =>
|
|
22
|
-
getCliProvidedSchemaFile: () =>
|
|
23
|
-
getConfigProvidedSchemaFile: () =>
|
|
24
|
-
getSchemaWithPath: () =>
|
|
25
|
-
getSchemaWithPathOptional: () =>
|
|
26
|
-
printSchemaLoadedMessage: () =>
|
|
21
|
+
createSchemaPathInput: () => import_chunk_TPCPXGC5.createSchemaPathInput,
|
|
22
|
+
getCliProvidedSchemaFile: () => import_chunk_TPCPXGC5.getCliProvidedSchemaFile,
|
|
23
|
+
getConfigProvidedSchemaFile: () => import_chunk_TPCPXGC5.getConfigProvidedSchemaFile,
|
|
24
|
+
getSchemaWithPath: () => import_chunk_TPCPXGC5.getSchemaWithPath,
|
|
25
|
+
getSchemaWithPathOptional: () => import_chunk_TPCPXGC5.getSchemaWithPathOptional,
|
|
26
|
+
printSchemaLoadedMessage: () => import_chunk_TPCPXGC5.printSchemaLoadedMessage
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(getSchema_exports);
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_TPCPXGC5 = require("../chunk-TPCPXGC5.js");
|
|
30
30
|
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
31
31
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|
package/dist/cli/hashes.js
CHANGED
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var hashes_exports = {};
|
|
20
20
|
__export(hashes_exports, {
|
|
21
|
-
getCLIPathHash: () =>
|
|
22
|
-
getProjectHash: () =>
|
|
21
|
+
getCLIPathHash: () => import_chunk_74RGCSUJ.getCLIPathHash,
|
|
22
|
+
getProjectHash: () => import_chunk_74RGCSUJ.getProjectHash
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(hashes_exports);
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var import_chunk_74RGCSUJ = require("../chunk-74RGCSUJ.js");
|
|
26
|
+
var import_chunk_TPCPXGC5 = require("../chunk-TPCPXGC5.js");
|
|
27
27
|
var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
|
|
28
28
|
var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
|