@prisma/get-platform 6.20.0-integration-next.17 → 6.20.0-integration-next.19
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-OJINGNLI.js → chunk-3UEKS5W6.js} +70 -129
- package/dist/{chunk-6OBQDQYE.js → chunk-GGL63BNP.js} +7 -7
- package/dist/{chunk-YLRTNN74.js → chunk-M5T7GI2R.js} +5 -14
- package/dist/index.js +8 -8
- package/dist/link.js +2 -2
- package/dist/{magic-string.es-SDTMJBWP.js → magic-string.es-3WRPFX2A.js} +17 -26
- package/dist/test-utils/index.js +6 -6
- package/dist/test-utils/jestContext.js +6 -6
- package/dist/test-utils/vitestContext.js +1163 -1170
- package/package.json +2 -2
|
@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var magic_string_es_3WRPFX2A_exports = {};
|
|
20
|
+
__export(magic_string_es_3WRPFX2A_exports, {
|
|
21
21
|
Bundle: () => Bundle,
|
|
22
22
|
SourceMap: () => SourceMap,
|
|
23
23
|
default: () => MagicString
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(magic_string_es_3WRPFX2A_exports);
|
|
26
26
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
27
27
|
var comma = ",".charCodeAt(0);
|
|
28
28
|
var semicolon = ";".charCodeAt(0);
|
|
@@ -40,7 +40,8 @@ function encodeInteger(builder, num, relative) {
|
|
|
40
40
|
do {
|
|
41
41
|
let clamped = delta & 31;
|
|
42
42
|
delta >>>= 5;
|
|
43
|
-
if (delta > 0)
|
|
43
|
+
if (delta > 0)
|
|
44
|
+
clamped |= 32;
|
|
44
45
|
builder.write(intToChar[clamped]);
|
|
45
46
|
} while (delta > 0);
|
|
46
47
|
return num;
|
|
@@ -87,18 +88,23 @@ function encode(decoded) {
|
|
|
87
88
|
let namesIndex = 0;
|
|
88
89
|
for (let i = 0; i < decoded.length; i++) {
|
|
89
90
|
const line = decoded[i];
|
|
90
|
-
if (i > 0)
|
|
91
|
-
|
|
91
|
+
if (i > 0)
|
|
92
|
+
writer.write(semicolon);
|
|
93
|
+
if (line.length === 0)
|
|
94
|
+
continue;
|
|
92
95
|
let genColumn = 0;
|
|
93
96
|
for (let j = 0; j < line.length; j++) {
|
|
94
97
|
const segment = line[j];
|
|
95
|
-
if (j > 0)
|
|
98
|
+
if (j > 0)
|
|
99
|
+
writer.write(comma);
|
|
96
100
|
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
97
|
-
if (segment.length === 1)
|
|
101
|
+
if (segment.length === 1)
|
|
102
|
+
continue;
|
|
98
103
|
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
99
104
|
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
100
105
|
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
101
|
-
if (segment.length === 4)
|
|
106
|
+
if (segment.length === 4)
|
|
107
|
+
continue;
|
|
102
108
|
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
103
109
|
}
|
|
104
110
|
}
|
|
@@ -540,9 +546,6 @@ var MagicString = class _MagicString {
|
|
|
540
546
|
}
|
|
541
547
|
if (chunk.outro.length) mappings.advance(chunk.outro);
|
|
542
548
|
});
|
|
543
|
-
if (this.outro) {
|
|
544
|
-
mappings.advance(this.outro);
|
|
545
|
-
}
|
|
546
549
|
return {
|
|
547
550
|
file: options.file ? options.file.split(/[/\\]/).pop() : void 0,
|
|
548
551
|
sources: [
|
|
@@ -900,13 +903,10 @@ var MagicString = class _MagicString {
|
|
|
900
903
|
_split(index) {
|
|
901
904
|
if (this.byStart[index] || this.byEnd[index]) return;
|
|
902
905
|
let chunk = this.lastSearchedChunk;
|
|
903
|
-
let previousChunk = chunk;
|
|
904
906
|
const searchForward = index > chunk.end;
|
|
905
907
|
while (chunk) {
|
|
906
908
|
if (chunk.contains(index)) return this._splitChunk(chunk, index);
|
|
907
909
|
chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
|
|
908
|
-
if (chunk === previousChunk) return;
|
|
909
|
-
previousChunk = chunk;
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
_splitChunk(chunk, index) {
|
|
@@ -1053,12 +1053,7 @@ var MagicString = class _MagicString {
|
|
|
1053
1053
|
const { original } = this;
|
|
1054
1054
|
const index = original.indexOf(string);
|
|
1055
1055
|
if (index !== -1) {
|
|
1056
|
-
|
|
1057
|
-
replacement = replacement(string, index, original);
|
|
1058
|
-
}
|
|
1059
|
-
if (string !== replacement) {
|
|
1060
|
-
this.overwrite(index, index + string.length, replacement);
|
|
1061
|
-
}
|
|
1056
|
+
this.overwrite(index, index + string.length, replacement);
|
|
1062
1057
|
}
|
|
1063
1058
|
return this;
|
|
1064
1059
|
}
|
|
@@ -1073,11 +1068,7 @@ var MagicString = class _MagicString {
|
|
|
1073
1068
|
const stringLength = string.length;
|
|
1074
1069
|
for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) {
|
|
1075
1070
|
const previous = original.slice(index, index + stringLength);
|
|
1076
|
-
|
|
1077
|
-
if (typeof replacement === "function") {
|
|
1078
|
-
_replacement = replacement(previous, index, original);
|
|
1079
|
-
}
|
|
1080
|
-
if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
|
|
1071
|
+
if (previous !== replacement) this.overwrite(index, index + stringLength, replacement);
|
|
1081
1072
|
}
|
|
1082
1073
|
return this;
|
|
1083
1074
|
}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var test_utils_exports = {};
|
|
20
20
|
__export(test_utils_exports, {
|
|
21
|
-
jestConsoleContext: () =>
|
|
22
|
-
jestContext: () =>
|
|
23
|
-
jestStdoutContext: () =>
|
|
24
|
-
processExitContext: () =>
|
|
21
|
+
jestConsoleContext: () => import_chunk_GGL63BNP.jestConsoleContext,
|
|
22
|
+
jestContext: () => import_chunk_GGL63BNP.jestContext,
|
|
23
|
+
jestStdoutContext: () => import_chunk_GGL63BNP.jestStdoutContext,
|
|
24
|
+
processExitContext: () => import_chunk_GGL63BNP.processExitContext
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(test_utils_exports);
|
|
27
27
|
var import_chunk_6HZWON4S = require("../chunk-6HZWON4S.js");
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var import_chunk_GGL63BNP = require("../chunk-GGL63BNP.js");
|
|
29
|
+
var import_chunk_3UEKS5W6 = require("../chunk-3UEKS5W6.js");
|
|
30
30
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var jestContext_exports = {};
|
|
20
20
|
__export(jestContext_exports, {
|
|
21
|
-
jestConsoleContext: () =>
|
|
22
|
-
jestContext: () =>
|
|
23
|
-
jestStdoutContext: () =>
|
|
24
|
-
processExitContext: () =>
|
|
21
|
+
jestConsoleContext: () => import_chunk_GGL63BNP.jestConsoleContext,
|
|
22
|
+
jestContext: () => import_chunk_GGL63BNP.jestContext,
|
|
23
|
+
jestStdoutContext: () => import_chunk_GGL63BNP.jestStdoutContext,
|
|
24
|
+
processExitContext: () => import_chunk_GGL63BNP.processExitContext
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(jestContext_exports);
|
|
27
|
-
var
|
|
28
|
-
var
|
|
27
|
+
var import_chunk_GGL63BNP = require("../chunk-GGL63BNP.js");
|
|
28
|
+
var import_chunk_3UEKS5W6 = require("../chunk-3UEKS5W6.js");
|
|
29
29
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|