@prisma/internals 6.16.0-integration-feat-orm-1074-package-dev-export.3 → 6.16.0-integration-push-prynymnkvlrn.2
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-SALRSUZG.js → chunk-2VFBKHI2.js} +7 -7
- package/dist/{chunk-BYGNIJDV.js → chunk-52ASY4CW.js} +5 -5
- package/dist/{chunk-IZ4NMSSP.js → chunk-5HNRUUBE.js} +17 -17
- package/dist/{chunk-O6PXBED7.js → chunk-5VRJPLKG.js} +5 -5
- package/dist/{chunk-FXMGS3L5.js → chunk-7IKUTPWQ.js} +5 -6
- package/dist/{chunk-NQXKLZGJ.js → chunk-B45NZMES.js} +8 -8
- package/dist/{chunk-S4XVZEFO.js → chunk-BDL26P3J.js} +8 -8
- package/dist/chunk-BERN76ZI.js +347 -0
- package/dist/{chunk-LRJ4X43J.js → chunk-CUD726EK.js} +5 -5
- package/dist/{chunk-DWKRDIHJ.js → chunk-DLSAVGHV.js} +5 -6
- package/dist/{chunk-YR5KNFKN.js → chunk-HFFWZTVM.js} +5 -6
- package/dist/{chunk-2W7ST6EG.js → chunk-JWH7HAXA.js} +8 -8
- package/dist/{chunk-G3E7V3AX.js → chunk-O3BZKGI7.js} +8 -8
- package/dist/{chunk-CBXAPH2I.js → chunk-O5KOSAG4.js} +5 -5
- package/dist/{chunk-HDFCF353.js → chunk-PL7WBYQ6.js} +5 -5
- package/dist/{chunk-BCV5Q55A.js → chunk-QCRM4SFJ.js} +7 -7
- package/dist/{chunk-DJW3QOZ2.js → chunk-SXY7Q46O.js} +5 -5
- package/dist/{chunk-SX2SEPBC.js → chunk-TEXXLXHJ.js} +8 -8
- package/dist/{chunk-YVO3LF2V.js → chunk-UAG4EV22.js} +5 -5
- package/dist/{chunk-3234BSVB.js → chunk-UQOBOVMQ.js} +4 -5
- package/dist/{chunk-S6Z7TU3K.js → chunk-UQUWZJVN.js} +7 -7
- package/dist/{chunk-TY5BSE32.js → chunk-W2GHU6FK.js} +5 -5
- package/dist/{chunk-3XRV3YW3.js → chunk-WGU7VDS3.js} +8 -8
- package/dist/{chunk-PCIN2G75.js → chunk-XDO5YZCK.js} +17 -17
- package/dist/{chunk-NXIYO62X.js → chunk-ZZ6XMV4L.js} +5 -5
- package/dist/cli/checkUnsupportedDataProxy.js +17 -18
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +17 -18
- package/dist/cli/schemaContext.js +17 -18
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +16 -17
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +25 -26
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/getGenerators.js +19 -20
- package/dist/index.js +40 -41
- package/dist/sendPanic.js +2 -3
- package/dist/tracing/types.d.ts +1 -1
- package/dist/utils/getCommandWithExecutor.js +3 -3
- package/dist/utils/getGitHubIssueUrl.js +3 -4
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +4 -5
- package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
- package/dist/wasm.js +5 -5
- package/package.json +12 -13
- package/dist/chunk-CR3XKUEA.js +0 -296
- package/dist/chunk-ZSINRHD4.js +0 -43
package/dist/chunk-CR3XKUEA.js
DELETED
@@ -1,296 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
-
var __export = (target, all) => {
|
9
|
-
for (var name in all)
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
-
};
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
-
for (let key of __getOwnPropNames(from))
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
-
}
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
-
mod
|
27
|
-
));
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var chunk_CR3XKUEA_exports = {};
|
30
|
-
__export(chunk_CR3XKUEA_exports, {
|
31
|
-
isCurrentBinInstalledGlobally: () => isCurrentBinInstalledGlobally
|
32
|
-
});
|
33
|
-
module.exports = __toCommonJS(chunk_CR3XKUEA_exports);
|
34
|
-
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
35
|
-
var import_fs = __toESM(require("fs"));
|
36
|
-
var require_ini = (0, import_chunk_4VNS5WPM.__commonJS)({
|
37
|
-
"../../node_modules/.pnpm/ini@2.0.0/node_modules/ini/ini.js"(exports, module2) {
|
38
|
-
"use strict";
|
39
|
-
var { hasOwnProperty } = Object.prototype;
|
40
|
-
var eol = typeof process !== "undefined" && process.platform === "win32" ? "\r\n" : "\n";
|
41
|
-
var encode = (obj, opt) => {
|
42
|
-
const children = [];
|
43
|
-
let out = "";
|
44
|
-
if (typeof opt === "string") {
|
45
|
-
opt = {
|
46
|
-
section: opt,
|
47
|
-
whitespace: false
|
48
|
-
};
|
49
|
-
} else {
|
50
|
-
opt = opt || /* @__PURE__ */ Object.create(null);
|
51
|
-
opt.whitespace = opt.whitespace === true;
|
52
|
-
}
|
53
|
-
const separator = opt.whitespace ? " = " : "=";
|
54
|
-
for (const k of Object.keys(obj)) {
|
55
|
-
const val = obj[k];
|
56
|
-
if (val && Array.isArray(val)) {
|
57
|
-
for (const item of val)
|
58
|
-
out += safe(k + "[]") + separator + safe(item) + "\n";
|
59
|
-
} else if (val && typeof val === "object")
|
60
|
-
children.push(k);
|
61
|
-
else
|
62
|
-
out += safe(k) + separator + safe(val) + eol;
|
63
|
-
}
|
64
|
-
if (opt.section && out.length)
|
65
|
-
out = "[" + safe(opt.section) + "]" + eol + out;
|
66
|
-
for (const k of children) {
|
67
|
-
const nk = dotSplit(k).join("\\.");
|
68
|
-
const section = (opt.section ? opt.section + "." : "") + nk;
|
69
|
-
const { whitespace } = opt;
|
70
|
-
const child = encode(obj[k], {
|
71
|
-
section,
|
72
|
-
whitespace
|
73
|
-
});
|
74
|
-
if (out.length && child.length)
|
75
|
-
out += eol;
|
76
|
-
out += child;
|
77
|
-
}
|
78
|
-
return out;
|
79
|
-
};
|
80
|
-
var dotSplit = (str) => str.replace(/\1/g, "LITERAL\\1LITERAL").replace(/\\\./g, "").split(/\./).map((part) => part.replace(/\1/g, "\\.").replace(/\2LITERAL\\1LITERAL\2/g, ""));
|
81
|
-
var decode = (str) => {
|
82
|
-
const out = /* @__PURE__ */ Object.create(null);
|
83
|
-
let p = out;
|
84
|
-
let section = null;
|
85
|
-
const re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;
|
86
|
-
const lines = str.split(/[\r\n]+/g);
|
87
|
-
for (const line of lines) {
|
88
|
-
if (!line || line.match(/^\s*[;#]/))
|
89
|
-
continue;
|
90
|
-
const match = line.match(re);
|
91
|
-
if (!match)
|
92
|
-
continue;
|
93
|
-
if (match[1] !== void 0) {
|
94
|
-
section = unsafe(match[1]);
|
95
|
-
if (section === "__proto__") {
|
96
|
-
p = /* @__PURE__ */ Object.create(null);
|
97
|
-
continue;
|
98
|
-
}
|
99
|
-
p = out[section] = out[section] || /* @__PURE__ */ Object.create(null);
|
100
|
-
continue;
|
101
|
-
}
|
102
|
-
const keyRaw = unsafe(match[2]);
|
103
|
-
const isArray = keyRaw.length > 2 && keyRaw.slice(-2) === "[]";
|
104
|
-
const key = isArray ? keyRaw.slice(0, -2) : keyRaw;
|
105
|
-
if (key === "__proto__")
|
106
|
-
continue;
|
107
|
-
const valueRaw = match[3] ? unsafe(match[4]) : true;
|
108
|
-
const value = valueRaw === "true" || valueRaw === "false" || valueRaw === "null" ? JSON.parse(valueRaw) : valueRaw;
|
109
|
-
if (isArray) {
|
110
|
-
if (!hasOwnProperty.call(p, key))
|
111
|
-
p[key] = [];
|
112
|
-
else if (!Array.isArray(p[key]))
|
113
|
-
p[key] = [p[key]];
|
114
|
-
}
|
115
|
-
if (Array.isArray(p[key]))
|
116
|
-
p[key].push(value);
|
117
|
-
else
|
118
|
-
p[key] = value;
|
119
|
-
}
|
120
|
-
const remove = [];
|
121
|
-
for (const k of Object.keys(out)) {
|
122
|
-
if (!hasOwnProperty.call(out, k) || typeof out[k] !== "object" || Array.isArray(out[k]))
|
123
|
-
continue;
|
124
|
-
const parts = dotSplit(k);
|
125
|
-
let p2 = out;
|
126
|
-
const l = parts.pop();
|
127
|
-
const nl = l.replace(/\\\./g, ".");
|
128
|
-
for (const part of parts) {
|
129
|
-
if (part === "__proto__")
|
130
|
-
continue;
|
131
|
-
if (!hasOwnProperty.call(p2, part) || typeof p2[part] !== "object")
|
132
|
-
p2[part] = /* @__PURE__ */ Object.create(null);
|
133
|
-
p2 = p2[part];
|
134
|
-
}
|
135
|
-
if (p2 === out && nl === l)
|
136
|
-
continue;
|
137
|
-
p2[nl] = out[k];
|
138
|
-
remove.push(k);
|
139
|
-
}
|
140
|
-
for (const del of remove)
|
141
|
-
delete out[del];
|
142
|
-
return out;
|
143
|
-
};
|
144
|
-
var isQuoted = (val) => val.charAt(0) === '"' && val.slice(-1) === '"' || val.charAt(0) === "'" && val.slice(-1) === "'";
|
145
|
-
var safe = (val) => typeof val !== "string" || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim() ? JSON.stringify(val) : val.replace(/;/g, "\\;").replace(/#/g, "\\#");
|
146
|
-
var unsafe = (val, doUnesc) => {
|
147
|
-
val = (val || "").trim();
|
148
|
-
if (isQuoted(val)) {
|
149
|
-
if (val.charAt(0) === "'")
|
150
|
-
val = val.substr(1, val.length - 2);
|
151
|
-
try {
|
152
|
-
val = JSON.parse(val);
|
153
|
-
} catch (_) {
|
154
|
-
}
|
155
|
-
} else {
|
156
|
-
let esc = false;
|
157
|
-
let unesc = "";
|
158
|
-
for (let i = 0, l = val.length; i < l; i++) {
|
159
|
-
const c = val.charAt(i);
|
160
|
-
if (esc) {
|
161
|
-
if ("\\;#".indexOf(c) !== -1)
|
162
|
-
unesc += c;
|
163
|
-
else
|
164
|
-
unesc += "\\" + c;
|
165
|
-
esc = false;
|
166
|
-
} else if (";#".indexOf(c) !== -1)
|
167
|
-
break;
|
168
|
-
else if (c === "\\")
|
169
|
-
esc = true;
|
170
|
-
else
|
171
|
-
unesc += c;
|
172
|
-
}
|
173
|
-
if (esc)
|
174
|
-
unesc += "\\";
|
175
|
-
return unesc.trim();
|
176
|
-
}
|
177
|
-
return val;
|
178
|
-
};
|
179
|
-
module2.exports = {
|
180
|
-
parse: decode,
|
181
|
-
decode,
|
182
|
-
stringify: encode,
|
183
|
-
encode,
|
184
|
-
safe,
|
185
|
-
unsafe
|
186
|
-
};
|
187
|
-
}
|
188
|
-
});
|
189
|
-
var require_global_dirs = (0, import_chunk_4VNS5WPM.__commonJS)({
|
190
|
-
"../../node_modules/.pnpm/global-dirs@4.0.0/node_modules/global-dirs/index.js"(exports) {
|
191
|
-
"use strict";
|
192
|
-
var path = (0, import_chunk_4VNS5WPM.__require)("path");
|
193
|
-
var os = (0, import_chunk_4VNS5WPM.__require)("os");
|
194
|
-
var fs2 = (0, import_chunk_4VNS5WPM.__require)("fs");
|
195
|
-
var ini = require_ini();
|
196
|
-
var isWindows = process.platform === "win32";
|
197
|
-
var readRc = (filePath) => {
|
198
|
-
try {
|
199
|
-
return ini.parse(fs2.readFileSync(filePath, "utf8")).prefix;
|
200
|
-
} catch {
|
201
|
-
}
|
202
|
-
};
|
203
|
-
var getEnvNpmPrefix = () => {
|
204
|
-
return Object.keys(process.env).reduce((prefix, name) => {
|
205
|
-
return /^npm_config_prefix$/i.test(name) ? process.env[name] : prefix;
|
206
|
-
}, void 0);
|
207
|
-
};
|
208
|
-
var getGlobalNpmrc = () => {
|
209
|
-
if (isWindows && process.env.APPDATA) {
|
210
|
-
return path.join(process.env.APPDATA, "/npm/etc/npmrc");
|
211
|
-
}
|
212
|
-
if (process.execPath.includes("/Cellar/node")) {
|
213
|
-
const homebrewPrefix = process.execPath.slice(0, process.execPath.indexOf("/Cellar/node"));
|
214
|
-
return path.join(homebrewPrefix, "/lib/node_modules/npm/npmrc");
|
215
|
-
}
|
216
|
-
if (process.execPath.endsWith("/bin/node")) {
|
217
|
-
const installDir = path.dirname(path.dirname(process.execPath));
|
218
|
-
return path.join(installDir, "/etc/npmrc");
|
219
|
-
}
|
220
|
-
};
|
221
|
-
var getDefaultNpmPrefix = () => {
|
222
|
-
if (isWindows) {
|
223
|
-
const { APPDATA } = process.env;
|
224
|
-
return APPDATA ? path.join(APPDATA, "npm") : path.dirname(process.execPath);
|
225
|
-
}
|
226
|
-
return path.dirname(path.dirname(process.execPath));
|
227
|
-
};
|
228
|
-
var getNpmPrefix = () => {
|
229
|
-
const envPrefix = getEnvNpmPrefix();
|
230
|
-
if (envPrefix) {
|
231
|
-
return envPrefix;
|
232
|
-
}
|
233
|
-
const homePrefix = readRc(path.join(os.homedir(), ".npmrc"));
|
234
|
-
if (homePrefix) {
|
235
|
-
return homePrefix;
|
236
|
-
}
|
237
|
-
if (process.env.PREFIX) {
|
238
|
-
return process.env.PREFIX;
|
239
|
-
}
|
240
|
-
const globalPrefix = readRc(getGlobalNpmrc());
|
241
|
-
if (globalPrefix) {
|
242
|
-
return globalPrefix;
|
243
|
-
}
|
244
|
-
return getDefaultNpmPrefix();
|
245
|
-
};
|
246
|
-
var npmPrefix = path.resolve(getNpmPrefix());
|
247
|
-
var getYarnWindowsDirectory = () => {
|
248
|
-
if (isWindows && process.env.LOCALAPPDATA) {
|
249
|
-
const dir = path.join(process.env.LOCALAPPDATA, "Yarn");
|
250
|
-
if (fs2.existsSync(dir)) {
|
251
|
-
return dir;
|
252
|
-
}
|
253
|
-
}
|
254
|
-
return false;
|
255
|
-
};
|
256
|
-
var getYarnPrefix = () => {
|
257
|
-
if (process.env.PREFIX) {
|
258
|
-
return process.env.PREFIX;
|
259
|
-
}
|
260
|
-
const windowsPrefix = getYarnWindowsDirectory();
|
261
|
-
if (windowsPrefix) {
|
262
|
-
return windowsPrefix;
|
263
|
-
}
|
264
|
-
const configPrefix = path.join(os.homedir(), ".config/yarn");
|
265
|
-
if (fs2.existsSync(configPrefix)) {
|
266
|
-
return configPrefix;
|
267
|
-
}
|
268
|
-
const homePrefix = path.join(os.homedir(), ".yarn-config");
|
269
|
-
if (fs2.existsSync(homePrefix)) {
|
270
|
-
return homePrefix;
|
271
|
-
}
|
272
|
-
return npmPrefix;
|
273
|
-
};
|
274
|
-
exports.npm = {};
|
275
|
-
exports.npm.prefix = npmPrefix;
|
276
|
-
exports.npm.packages = path.join(npmPrefix, isWindows ? "node_modules" : "lib/node_modules");
|
277
|
-
exports.npm.binaries = isWindows ? npmPrefix : path.join(npmPrefix, "bin");
|
278
|
-
var yarnPrefix = path.resolve(getYarnPrefix());
|
279
|
-
exports.yarn = {};
|
280
|
-
exports.yarn.prefix = yarnPrefix;
|
281
|
-
exports.yarn.packages = path.join(yarnPrefix, getYarnWindowsDirectory() ? "Data/global/node_modules" : "global/node_modules");
|
282
|
-
exports.yarn.binaries = path.join(exports.yarn.packages, ".bin");
|
283
|
-
}
|
284
|
-
});
|
285
|
-
var import_global_dirs = (0, import_chunk_4VNS5WPM.__toESM)(require_global_dirs());
|
286
|
-
function isCurrentBinInstalledGlobally() {
|
287
|
-
try {
|
288
|
-
const realPrismaPath = import_fs.default.realpathSync(process.argv[1]);
|
289
|
-
const usingGlobalNpm = realPrismaPath.indexOf(import_fs.default.realpathSync(import_global_dirs.default.npm.packages)) === 0;
|
290
|
-
if (usingGlobalNpm) {
|
291
|
-
return "npm";
|
292
|
-
}
|
293
|
-
} catch (e) {
|
294
|
-
}
|
295
|
-
return false;
|
296
|
-
}
|
package/dist/chunk-ZSINRHD4.js
DELETED
@@ -1,43 +0,0 @@
|
|
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_ZSINRHD4_exports = {};
|
20
|
-
__export(chunk_ZSINRHD4_exports, {
|
21
|
-
require_strip_ansi: () => require_strip_ansi
|
22
|
-
});
|
23
|
-
module.exports = __toCommonJS(chunk_ZSINRHD4_exports);
|
24
|
-
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
25
|
-
var require_ansi_regex = (0, import_chunk_4VNS5WPM.__commonJS)({
|
26
|
-
"../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module2) {
|
27
|
-
"use strict";
|
28
|
-
module2.exports = ({ onlyFirst = false } = {}) => {
|
29
|
-
const pattern = [
|
30
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
31
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
32
|
-
].join("|");
|
33
|
-
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
34
|
-
};
|
35
|
-
}
|
36
|
-
});
|
37
|
-
var require_strip_ansi = (0, import_chunk_4VNS5WPM.__commonJS)({
|
38
|
-
"../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports, module2) {
|
39
|
-
"use strict";
|
40
|
-
var ansiRegex = require_ansi_regex();
|
41
|
-
module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex(), "") : string;
|
42
|
-
}
|
43
|
-
});
|