@prisma/get-platform 6.5.0-dev.3 → 6.5.0-dev.31
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.
|
@@ -24,46 +24,6 @@ module.exports = __toCommonJS(jestSnapshotSerializer_exports);
|
|
|
24
24
|
var import_chunk_B23KD6U3 = require("../chunk-B23KD6U3.js");
|
|
25
25
|
var import_chunk_7MLUNQIZ = require("../chunk-7MLUNQIZ.js");
|
|
26
26
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
27
|
-
var require_replace_string = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
28
|
-
"../../node_modules/.pnpm/replace-string@3.1.0/node_modules/replace-string/index.js"(exports, module2) {
|
|
29
|
-
"use strict";
|
|
30
|
-
module2.exports = (string, needle, replacement, options = {}) => {
|
|
31
|
-
if (typeof string !== "string") {
|
|
32
|
-
throw new TypeError(`Expected input to be a string, got ${typeof string}`);
|
|
33
|
-
}
|
|
34
|
-
if (!(typeof needle === "string" && needle.length > 0) || !(typeof replacement === "string" || typeof replacement === "function")) {
|
|
35
|
-
return string;
|
|
36
|
-
}
|
|
37
|
-
let result = "";
|
|
38
|
-
let matchCount = 0;
|
|
39
|
-
let prevIndex = options.fromIndex > 0 ? options.fromIndex : 0;
|
|
40
|
-
if (prevIndex > string.length) {
|
|
41
|
-
return string;
|
|
42
|
-
}
|
|
43
|
-
while (true) {
|
|
44
|
-
const index = options.caseInsensitive ? string.toLowerCase().indexOf(needle.toLowerCase(), prevIndex) : string.indexOf(needle, prevIndex);
|
|
45
|
-
if (index === -1) {
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
matchCount++;
|
|
49
|
-
const replaceStr = typeof replacement === "string" ? replacement : replacement(
|
|
50
|
-
// If `caseInsensitive`` is enabled, the matched substring may be different from the needle.
|
|
51
|
-
string.slice(index, index + needle.length),
|
|
52
|
-
matchCount,
|
|
53
|
-
string,
|
|
54
|
-
index
|
|
55
|
-
);
|
|
56
|
-
const beginSlice = matchCount === 1 ? 0 : prevIndex;
|
|
57
|
-
result += string.slice(beginSlice, index) + replaceStr;
|
|
58
|
-
prevIndex = index + needle.length;
|
|
59
|
-
}
|
|
60
|
-
if (matchCount === 0) {
|
|
61
|
-
return string;
|
|
62
|
-
}
|
|
63
|
-
return result + string.slice(prevIndex);
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
27
|
var require_ansi_regex = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
68
28
|
"../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module2) {
|
|
69
29
|
"use strict";
|
|
@@ -86,7 +46,6 @@ var require_strip_ansi = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
86
46
|
var require_jestSnapshotSerializer = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
87
47
|
"src/test-utils/jestSnapshotSerializer.js"(exports, module2) {
|
|
88
48
|
var path = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
89
|
-
var replaceAll = require_replace_string();
|
|
90
49
|
var stripAnsi = require_strip_ansi();
|
|
91
50
|
var { binaryTargetRegex } = ((0, import_chunk_B23KD6U3.init_binaryTargetRegex)(), (0, import_chunk_2ESYSVXG.__toCommonJS)(import_chunk_B23KD6U3.binaryTargetRegex_exports));
|
|
92
51
|
var pipe = (...fns) => (x) => fns.reduce((v, f) => f(v), x);
|
|
@@ -104,10 +63,10 @@ var require_jestSnapshotSerializer = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
104
63
|
}
|
|
105
64
|
function trimErrorPaths(str) {
|
|
106
65
|
const parentDir = path.dirname(path.dirname(path.dirname(__dirname)));
|
|
107
|
-
return replaceAll(
|
|
66
|
+
return str.replaceAll(parentDir, "");
|
|
108
67
|
}
|
|
109
68
|
function normalizeToUnixPaths(str) {
|
|
110
|
-
return replaceAll(
|
|
69
|
+
return str.replaceAll(path.sep, "/");
|
|
111
70
|
}
|
|
112
71
|
function normalizeGitHubLinks(str) {
|
|
113
72
|
return str.replace(/https:\/\/github.com\/prisma\/prisma(-client-js)?\/issues\/new\S+/, "TEST_GITHUB_LINK");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/get-platform",
|
|
3
|
-
"version": "6.5.0-dev.
|
|
3
|
+
"version": "6.5.0-dev.31",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"bugs": "https://github.com/prisma/prisma/issues",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@codspeed/benchmark.js-plugin": "
|
|
17
|
+
"@codspeed/benchmark.js-plugin": "4.0.0",
|
|
18
18
|
"@swc/core": "1.10.11",
|
|
19
19
|
"@swc/jest": "0.2.37",
|
|
20
20
|
"@types/jest": "29.5.14",
|
|
21
|
-
"@types/node": "18.19.
|
|
21
|
+
"@types/node": "18.19.76",
|
|
22
22
|
"benchmark": "2.1.4",
|
|
23
23
|
"jest": "29.7.0",
|
|
24
24
|
"jest-junit": "16.0.0",
|
|
@@ -27,14 +27,13 @@
|
|
|
27
27
|
"execa": "5.1.1",
|
|
28
28
|
"fs-jetpack": "5.1.0",
|
|
29
29
|
"kleur": "4.1.5",
|
|
30
|
-
"replace-string": "3.1.0",
|
|
31
30
|
"strip-ansi": "6.0.1",
|
|
32
31
|
"tempy": "1.0.1",
|
|
33
32
|
"terminal-link": "2.1.1",
|
|
34
33
|
"ts-pattern": "5.6.2"
|
|
35
34
|
},
|
|
36
35
|
"dependencies": {
|
|
37
|
-
"@prisma/debug": "6.5.0-dev.
|
|
36
|
+
"@prisma/debug": "6.5.0-dev.31"
|
|
38
37
|
},
|
|
39
38
|
"files": [
|
|
40
39
|
"README.md",
|