@prisma/internals 5.19.0-integration-feat-typed-sql.1 → 5.19.0-integration-feat-typed-sql.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-TXN4P2UY.js → chunk-2MV6JFB4.js} +7 -7
- package/dist/{chunk-WO5ENZU5.js → chunk-2MWIMEFK.js} +7 -7
- package/dist/{chunk-EYOPVHNV.js → chunk-3L4K6SFM.js} +7 -7
- package/dist/{chunk-QL3K6JIN.js → chunk-3VLJQQOA.js} +5 -5
- package/dist/{chunk-7OGLT63S.js → chunk-4SZRVZQO.js} +5 -5
- package/dist/chunk-5XRQ7ONW.js +122 -0
- package/dist/{chunk-PN2OFBAO.js → chunk-AYHYONDC.js} +5 -5
- package/dist/{chunk-OEXSUUW2.js → chunk-BGFWFIPR.js} +5 -5
- package/dist/{chunk-2HHWV7NR.js → chunk-CQHQ4JUN.js} +8 -8
- package/dist/chunk-CSV3AVJ4.js +177 -0
- package/dist/{chunk-5ACIJBB4.js → chunk-GRUJOQGE.js} +8 -8
- package/dist/{chunk-YFTWQDWC.js → chunk-ICI3HEHW.js} +5 -5
- package/dist/{chunk-INKUPLJ6.js → chunk-IEVQOUVE.js} +8 -8
- package/dist/{chunk-U5T2ALDL.js → chunk-IINMWKBZ.js} +8 -8
- package/dist/chunk-JD6UDOYA.js +54 -0
- package/dist/{chunk-PAX5TFEC.js → chunk-JSFAZ43I.js} +8 -8
- package/dist/chunk-JXQEYT4S.js +110 -0
- package/dist/{chunk-EV4E5GN6.js → chunk-LNF7AUE3.js} +27 -27
- package/dist/chunk-LZIL2VER.js +166 -0
- package/dist/{chunk-LVR5RA7C.js → chunk-NJB3A2FL.js} +5 -4
- package/dist/{chunk-ULQYCMW4.js → chunk-NM7ATUD2.js} +32 -803
- package/dist/chunk-NRYEKFWP.js +96 -0
- package/dist/chunk-QIVUAERL.js +2202 -0
- package/dist/{chunk-5S6LK7V2.js → chunk-RFDXHMHL.js} +7 -7
- package/dist/{chunk-SQX67EBR.js → chunk-RH2QBFDQ.js} +5 -5
- package/dist/{chunk-3LVVD3OG.js → chunk-SD47M7EE.js} +5 -5
- package/dist/{chunk-EIEZZJYX.js → chunk-SMYEIQP2.js} +5 -5
- package/dist/{chunk-D7HXSF3S.js → chunk-SQ2IEXGU.js} +5 -5
- package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
- package/dist/{chunk-HDWBT4CR.js → chunk-UFDOSVWQ.js} +4 -3
- package/dist/{chunk-NEEB3TIJ.js → chunk-WZYYLYEI.js} +5 -5
- package/dist/{chunk-VCLUGB7N.js → chunk-XIWZFSTR.js} +5 -5
- package/dist/{chunk-GHYJGM56.js → chunk-YHTJPMCB.js} +4 -4
- package/dist/{chunk-WLCAAW3G.js → chunk-YVSBIU6Z.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +26 -25
- package/dist/cli/getSchema.js +31 -30
- package/dist/cli/hashes.js +26 -25
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +25 -24
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/getEngineVersion.js +5 -5
- package/dist/engine-commands/getEnginesMetaInfo.js +7 -7
- package/dist/engine-commands/index.js +36 -35
- 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/generatorResolvers/generatorResolvers.js +25 -24
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +25 -24
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +25 -24
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +26 -25
- package/dist/get-generators/getGenerators.js +28 -27
- package/dist/highlight/highlight.js +5 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +67 -65
- package/dist/resolveBinary.js +7 -7
- package/dist/schemaEngineCommands.js +8 -8
- package/dist/sendPanic.js +25 -24
- package/dist/utils/getEnvPaths.js +25 -24
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +25 -24
- package/dist/utils/isValidJsIdentifier.d.ts +1 -0
- package/dist/utils/isValidJsIdentifier.js +25 -0
- package/dist/utils/loadEnvFile.js +25 -24
- package/dist/utils/missingDatasource.js +4 -4
- package/dist/utils/missingGeneratorMessage.js +6 -6
- package/dist/wasm.js +4 -4
- package/package.json +8 -7
|
@@ -0,0 +1,96 @@
|
|
|
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_NRYEKFWP_exports = {};
|
|
20
|
+
__export(chunk_NRYEKFWP_exports, {
|
|
21
|
+
isValidJsIdentifier: () => isValidJsIdentifier
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(chunk_NRYEKFWP_exports);
|
|
24
|
+
var identifiers = [
|
|
25
|
+
// Keywords
|
|
26
|
+
"await",
|
|
27
|
+
"break",
|
|
28
|
+
"case",
|
|
29
|
+
"catch",
|
|
30
|
+
"class",
|
|
31
|
+
"const",
|
|
32
|
+
"continue",
|
|
33
|
+
"debugger",
|
|
34
|
+
"default",
|
|
35
|
+
"delete",
|
|
36
|
+
"do",
|
|
37
|
+
"else",
|
|
38
|
+
"enum",
|
|
39
|
+
"export",
|
|
40
|
+
"extends",
|
|
41
|
+
"false",
|
|
42
|
+
"finally",
|
|
43
|
+
"for",
|
|
44
|
+
"function",
|
|
45
|
+
"if",
|
|
46
|
+
"import",
|
|
47
|
+
"in",
|
|
48
|
+
"instanceof",
|
|
49
|
+
"new",
|
|
50
|
+
"null",
|
|
51
|
+
"return",
|
|
52
|
+
"super",
|
|
53
|
+
"switch",
|
|
54
|
+
"this",
|
|
55
|
+
"throw",
|
|
56
|
+
"true",
|
|
57
|
+
"try",
|
|
58
|
+
"typeof",
|
|
59
|
+
"var",
|
|
60
|
+
"void",
|
|
61
|
+
"while",
|
|
62
|
+
"with",
|
|
63
|
+
"yield",
|
|
64
|
+
// Future reserved keywords
|
|
65
|
+
"implements",
|
|
66
|
+
"interface",
|
|
67
|
+
"package",
|
|
68
|
+
"private",
|
|
69
|
+
"protected",
|
|
70
|
+
"public",
|
|
71
|
+
// Not keywords, but still restricted
|
|
72
|
+
"arguments",
|
|
73
|
+
"eval"
|
|
74
|
+
];
|
|
75
|
+
var globalProperties = [
|
|
76
|
+
"globalThis",
|
|
77
|
+
"Infinity",
|
|
78
|
+
"NaN",
|
|
79
|
+
"undefined"
|
|
80
|
+
];
|
|
81
|
+
function reservedIdentifiers({ includeGlobalProperties = false } = {}) {
|
|
82
|
+
return /* @__PURE__ */ new Set([
|
|
83
|
+
...identifiers,
|
|
84
|
+
...includeGlobalProperties ? globalProperties : []
|
|
85
|
+
]);
|
|
86
|
+
}
|
|
87
|
+
var baseRegex = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*/u;
|
|
88
|
+
var basePattern = `(?!${[...reservedIdentifiers({ includeGlobalProperties: true })].join("|")})${baseRegex.source}`;
|
|
89
|
+
var regex = new RegExp(basePattern, "u");
|
|
90
|
+
var regexExact = new RegExp(`^${basePattern}$`, "u");
|
|
91
|
+
function identifierRegex({ exact = true } = {}) {
|
|
92
|
+
return exact ? regexExact : regex;
|
|
93
|
+
}
|
|
94
|
+
function isValidJsIdentifier(str) {
|
|
95
|
+
return identifierRegex().test(str);
|
|
96
|
+
}
|