@prisma/get-platform 7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1 → 7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.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/assertNodeAPISupported.d.ts +4 -0
- package/dist/assertNodeAPISupported.js +25 -0
- package/dist/chunk-2U36ISZO.js +34 -0
- package/dist/{chunk-GGL63BNP.js → chunk-5EPDNTW3.js} +3 -4
- package/dist/chunk-O5EOXX3N.js +43 -0
- package/dist/getNodeAPIName.d.ts +8 -0
- package/dist/getNodeAPIName.js +25 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -7
- package/dist/test-utils/index.js +5 -5
- package/dist/test-utils/jestContext.js +5 -5
- package/dist/test-utils/jestSnapshotSerializer.js +8 -14
- package/dist/test-utils/vitestContext.js +1 -2
- package/package.json +3 -3
|
@@ -0,0 +1,25 @@
|
|
|
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 assertNodeAPISupported_exports = {};
|
|
20
|
+
__export(assertNodeAPISupported_exports, {
|
|
21
|
+
assertNodeAPISupported: () => import_chunk_O5EOXX3N.assertNodeAPISupported
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(assertNodeAPISupported_exports);
|
|
24
|
+
var import_chunk_O5EOXX3N = require("./chunk-O5EOXX3N.js");
|
|
25
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
@@ -0,0 +1,34 @@
|
|
|
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_2U36ISZO_exports = {};
|
|
20
|
+
__export(chunk_2U36ISZO_exports, {
|
|
21
|
+
getNodeAPIName: () => getNodeAPIName
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(chunk_2U36ISZO_exports);
|
|
24
|
+
var NODE_API_QUERY_ENGINE_URL_BASE = "libquery_engine";
|
|
25
|
+
function getNodeAPIName(binaryTarget, type) {
|
|
26
|
+
const isUrl = type === "url";
|
|
27
|
+
if (binaryTarget.includes("windows")) {
|
|
28
|
+
return isUrl ? `query_engine.dll.node` : `query_engine-${binaryTarget}.dll.node`;
|
|
29
|
+
} else if (binaryTarget.includes("darwin")) {
|
|
30
|
+
return isUrl ? `${NODE_API_QUERY_ENGINE_URL_BASE}.dylib.node` : `${NODE_API_QUERY_ENGINE_URL_BASE}-${binaryTarget}.dylib.node`;
|
|
31
|
+
} else {
|
|
32
|
+
return isUrl ? `${NODE_API_QUERY_ENGINE_URL_BASE}.so.node` : `${NODE_API_QUERY_ENGINE_URL_BASE}-${binaryTarget}.so.node`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -26,14 +26,14 @@ 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_5EPDNTW3_exports = {};
|
|
30
|
+
__export(chunk_5EPDNTW3_exports, {
|
|
31
31
|
jestConsoleContext: () => jestConsoleContext,
|
|
32
32
|
jestContext: () => jestContext,
|
|
33
33
|
jestStdoutContext: () => jestStdoutContext,
|
|
34
34
|
processExitContext: () => processExitContext
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(chunk_5EPDNTW3_exports);
|
|
37
37
|
var import_chunk_3UEKS5W6 = require("./chunk-3UEKS5W6.js");
|
|
38
38
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
39
39
|
var import_node_path = __toESM(require("node:path"));
|
|
@@ -75,7 +75,6 @@ ${[...generateDirectoryTree(children, indent)].join("\n")}
|
|
|
75
75
|
overwrite: true
|
|
76
76
|
});
|
|
77
77
|
c.fs.symlink(import_node_path.default.join(originalCwd, "..", "client"), import_node_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "client"));
|
|
78
|
-
c.fs.symlink(import_node_path.default.join(originalCwd, "..", "config"), import_node_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "config"));
|
|
79
78
|
};
|
|
80
79
|
c.cli = (...input) => {
|
|
81
80
|
return (0, import_chunk_3UEKS5W6.execaNode)(import_node_path.default.join(originalCwd, "../cli/build/index.js"), input, {
|
|
@@ -0,0 +1,43 @@
|
|
|
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_O5EOXX3N_exports = {};
|
|
30
|
+
__export(chunk_O5EOXX3N_exports, {
|
|
31
|
+
assertNodeAPISupported: () => assertNodeAPISupported
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(chunk_O5EOXX3N_exports);
|
|
34
|
+
var import_fs = __toESM(require("fs"));
|
|
35
|
+
function assertNodeAPISupported() {
|
|
36
|
+
const customLibraryPath = process.env.PRISMA_QUERY_ENGINE_LIBRARY;
|
|
37
|
+
const customLibraryExists = customLibraryPath && import_fs.default.existsSync(customLibraryPath);
|
|
38
|
+
if (!customLibraryExists && process.arch === "ia32") {
|
|
39
|
+
throw new Error(
|
|
40
|
+
`The default query engine type (Node-API, "library") is currently not supported for 32bit Node. Please set \`engineType = "binary"\` in the "generator" block of your "schema.prisma" file (or use the environment variables "PRISMA_CLIENT_ENGINE_TYPE=binary" and/or "PRISMA_CLI_QUERY_ENGINE_TYPE=binary".)`
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BinaryTarget } from './binaryTargets';
|
|
2
|
+
/**
|
|
3
|
+
* Gets Node-API Library name depending on the binary target
|
|
4
|
+
* @param binaryTarget
|
|
5
|
+
* @param type `fs` gets name used on the file system, `url` gets the name required to download the library from S3
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function getNodeAPIName(binaryTarget: BinaryTarget, type: 'url' | 'fs'): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 getNodeAPIName_exports = {};
|
|
20
|
+
__export(getNodeAPIName_exports, {
|
|
21
|
+
getNodeAPIName: () => import_chunk_2U36ISZO.getNodeAPIName
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getNodeAPIName_exports);
|
|
24
|
+
var import_chunk_2U36ISZO = require("./chunk-2U36ISZO.js");
|
|
25
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { assertNodeAPISupported } from './assertNodeAPISupported';
|
|
1
2
|
export { type BinaryTarget, binaryTargets } from './binaryTargets';
|
|
3
|
+
export { getNodeAPIName } from './getNodeAPIName';
|
|
2
4
|
export type { PlatformInfo } from './getPlatform';
|
|
3
5
|
export { getBinaryTargetForCurrentPlatform, getos, getPlatformInfo } from './getPlatform';
|
|
4
6
|
export { link } from './link';
|
package/dist/index.js
CHANGED
|
@@ -18,24 +18,28 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var index_exports = {};
|
|
20
20
|
__export(index_exports, {
|
|
21
|
+
assertNodeAPISupported: () => import_chunk_O5EOXX3N.assertNodeAPISupported,
|
|
21
22
|
binaryTargets: () => import_chunk_7MLUNQIZ.binaryTargets,
|
|
22
23
|
getBinaryTargetForCurrentPlatform: () => import_chunk_7PMGXL6S.getBinaryTargetForCurrentPlatform,
|
|
24
|
+
getNodeAPIName: () => import_chunk_2U36ISZO.getNodeAPIName,
|
|
23
25
|
getPlatformInfo: () => import_chunk_7PMGXL6S.getPlatformInfo,
|
|
24
26
|
getos: () => import_chunk_7PMGXL6S.getos,
|
|
25
|
-
jestConsoleContext: () =>
|
|
26
|
-
jestContext: () =>
|
|
27
|
-
jestStdoutContext: () =>
|
|
27
|
+
jestConsoleContext: () => import_chunk_5EPDNTW3.jestConsoleContext,
|
|
28
|
+
jestContext: () => import_chunk_5EPDNTW3.jestContext,
|
|
29
|
+
jestStdoutContext: () => import_chunk_5EPDNTW3.jestStdoutContext,
|
|
28
30
|
link: () => import_chunk_M5T7GI2R.link,
|
|
29
|
-
processExitContext: () =>
|
|
31
|
+
processExitContext: () => import_chunk_5EPDNTW3.processExitContext
|
|
30
32
|
});
|
|
31
33
|
module.exports = __toCommonJS(index_exports);
|
|
34
|
+
var import_chunk_6HZWON4S = require("./chunk-6HZWON4S.js");
|
|
35
|
+
var import_chunk_5EPDNTW3 = require("./chunk-5EPDNTW3.js");
|
|
36
|
+
var import_chunk_3UEKS5W6 = require("./chunk-3UEKS5W6.js");
|
|
37
|
+
var import_chunk_O5EOXX3N = require("./chunk-O5EOXX3N.js");
|
|
38
|
+
var import_chunk_2U36ISZO = require("./chunk-2U36ISZO.js");
|
|
32
39
|
var import_chunk_7PMGXL6S = require("./chunk-7PMGXL6S.js");
|
|
33
40
|
var import_chunk_M5T7GI2R = require("./chunk-M5T7GI2R.js");
|
|
34
41
|
var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js");
|
|
35
42
|
var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
|
|
36
43
|
var import_chunk_7MLUNQIZ = require("./chunk-7MLUNQIZ.js");
|
|
37
|
-
var import_chunk_6HZWON4S = require("./chunk-6HZWON4S.js");
|
|
38
|
-
var import_chunk_GGL63BNP = require("./chunk-GGL63BNP.js");
|
|
39
|
-
var import_chunk_3UEKS5W6 = require("./chunk-3UEKS5W6.js");
|
|
40
44
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
41
45
|
(0, import_chunk_7MLUNQIZ.init_binaryTargets)();
|
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_5EPDNTW3.jestConsoleContext,
|
|
22
|
+
jestContext: () => import_chunk_5EPDNTW3.jestContext,
|
|
23
|
+
jestStdoutContext: () => import_chunk_5EPDNTW3.jestStdoutContext,
|
|
24
|
+
processExitContext: () => import_chunk_5EPDNTW3.processExitContext
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(test_utils_exports);
|
|
27
27
|
var import_chunk_6HZWON4S = require("../chunk-6HZWON4S.js");
|
|
28
|
-
var
|
|
28
|
+
var import_chunk_5EPDNTW3 = require("../chunk-5EPDNTW3.js");
|
|
29
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_5EPDNTW3.jestConsoleContext,
|
|
22
|
+
jestContext: () => import_chunk_5EPDNTW3.jestContext,
|
|
23
|
+
jestStdoutContext: () => import_chunk_5EPDNTW3.jestStdoutContext,
|
|
24
|
+
processExitContext: () => import_chunk_5EPDNTW3.processExitContext
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(jestContext_exports);
|
|
27
|
-
var
|
|
27
|
+
var import_chunk_5EPDNTW3 = require("../chunk-5EPDNTW3.js");
|
|
28
28
|
var import_chunk_3UEKS5W6 = require("../chunk-3UEKS5W6.js");
|
|
29
29
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
@@ -40,20 +40,7 @@ var require_jestSnapshotSerializer = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
40
40
|
).replace(/Starting a postgresql pool with \d+ connections./g, "Starting a postgresql pool with XX connections.");
|
|
41
41
|
}
|
|
42
42
|
function normalizeTmpDir(str) {
|
|
43
|
-
|
|
44
|
-
// Linux
|
|
45
|
-
/\/tmp\/([a-z0-9]+)/g,
|
|
46
|
-
// macOS
|
|
47
|
-
/\/private\/var\/folders\/[^/]+\/[^/]+\/T\/[a-z0-9]+/g
|
|
48
|
-
];
|
|
49
|
-
if (process.env.TEMP) {
|
|
50
|
-
const escapedPath = process.env.TEMP.replaceAll("\\", "\\\\");
|
|
51
|
-
tempDirRegexes.push(new RegExp(`${escapedPath}\\\\[a-z0-9]+`, "g"));
|
|
52
|
-
}
|
|
53
|
-
for (const regex of tempDirRegexes) {
|
|
54
|
-
str = str.replace(regex, "/tmp/dir");
|
|
55
|
-
}
|
|
56
|
-
return str;
|
|
43
|
+
return str.replace(/\/tmp\/([a-z0-9]+)\//g, "/tmp/dir/");
|
|
57
44
|
}
|
|
58
45
|
function trimErrorPaths(str) {
|
|
59
46
|
const parentDir = path.dirname(path.dirname(path.dirname(__dirname)));
|
|
@@ -71,6 +58,12 @@ var require_jestSnapshotSerializer = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
71
58
|
function removePlatforms(str) {
|
|
72
59
|
return str.replace(binaryTargetRegex, "TEST_PLATFORM");
|
|
73
60
|
}
|
|
61
|
+
function normalizeNodeApiLibFilePath(str) {
|
|
62
|
+
return str.replace(
|
|
63
|
+
/((lib)?query_engine-TEST_PLATFORM\.)(.*)(\.node)/g,
|
|
64
|
+
"libquery_engine-TEST_PLATFORM.LIBRARY_TYPE.node"
|
|
65
|
+
);
|
|
66
|
+
}
|
|
74
67
|
function normalizeBinaryFilePath(str) {
|
|
75
68
|
return str.replace(/\.exe(\s+)?(\W.*)/g, "$1$2").replace(/\.exe$/g, "");
|
|
76
69
|
}
|
|
@@ -128,6 +121,7 @@ var require_jestSnapshotSerializer = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
128
121
|
// From Client package
|
|
129
122
|
normalizeGitHubLinks,
|
|
130
123
|
removePlatforms,
|
|
124
|
+
normalizeNodeApiLibFilePath,
|
|
131
125
|
normalizeBinaryFilePath,
|
|
132
126
|
normalizeTsClientStackTrace,
|
|
133
127
|
trimErrorPaths,
|
|
@@ -17231,7 +17231,6 @@ ${[...generateDirectoryTree(children, indent)].join("\n")}
|
|
|
17231
17231
|
overwrite: true
|
|
17232
17232
|
});
|
|
17233
17233
|
c.fs.symlink(import_node_path.default.join(originalCwd, "..", "client"), import_node_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "client"));
|
|
17234
|
-
c.fs.symlink(import_node_path.default.join(originalCwd, "..", "config"), import_node_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "config"));
|
|
17235
17234
|
};
|
|
17236
17235
|
c.cli = (...input) => {
|
|
17237
17236
|
return (0, import_chunk_3UEKS5W6.execaNode)(import_node_path.default.join(originalCwd, "../cli/build/index.js"), input, {
|
|
@@ -17320,7 +17319,7 @@ var vitestProcessExitContext = () => (c) => {
|
|
|
17320
17319
|
ctx.mocked["process.exit"] = vi.spyOn(process, "exit").mockImplementation((number) => {
|
|
17321
17320
|
throw new Error("process.exit: " + number);
|
|
17322
17321
|
});
|
|
17323
|
-
ctx.recordedExitCode = () =>
|
|
17322
|
+
ctx.recordedExitCode = () => ctx.mocked["process.exit"].mock.calls[0]?.[0] ?? 0;
|
|
17324
17323
|
});
|
|
17325
17324
|
afterEach(() => {
|
|
17326
17325
|
ctx.mocked["process.exit"].mockRestore();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/get-platform",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
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",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@swc/core": "1.11.5",
|
|
19
19
|
"@swc/jest": "0.2.37",
|
|
20
20
|
"@types/jest": "29.5.14",
|
|
21
|
-
"@types/node": "
|
|
21
|
+
"@types/node": "18.19.76",
|
|
22
22
|
"benchmark": "2.1.4",
|
|
23
23
|
"escape-string-regexp": "5.0.0",
|
|
24
24
|
"execa": "8.0.1",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"vitest": "3.2.4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@prisma/debug": "7.
|
|
36
|
+
"@prisma/debug": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"README.md",
|