@prisma/get-platform 6.19.0-integration-next.16 → 6.19.0-integration-feat-remove-library-engine.5
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-GGL63BNP.js → chunk-6OBQDQYE.js} +7 -7
- package/dist/{chunk-3UEKS5W6.js → chunk-OJINGNLI.js} +129 -70
- package/dist/{chunk-M5T7GI2R.js → chunk-YLRTNN74.js} +14 -5
- package/dist/index.d.ts +0 -2
- package/dist/index.js +9 -13
- package/dist/link.js +2 -2
- package/dist/{magic-string.es-3WRPFX2A.js → magic-string.es-SDTMJBWP.js} +26 -17
- package/dist/test-utils/index.js +6 -6
- package/dist/test-utils/jestContext.js +6 -6
- package/dist/test-utils/vitestContext.js +1170 -1163
- package/package.json +3 -3
- package/dist/assertNodeAPISupported.d.ts +0 -4
- package/dist/assertNodeAPISupported.js +0 -25
- package/dist/chunk-2U36ISZO.js +0 -34
- package/dist/chunk-4AMY4VV4.js +0 -41
- package/dist/getNodeAPIName.d.ts +0 -8
- package/dist/getNodeAPIName.js +0 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/get-platform",
|
|
3
|
-
"version": "6.19.0-integration-
|
|
3
|
+
"version": "6.19.0-integration-feat-remove-library-engine.5",
|
|
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": "~20.19.
|
|
21
|
+
"@types/node": "~20.19.24",
|
|
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": "6.19.0-integration-
|
|
36
|
+
"@prisma/debug": "6.19.0-integration-feat-remove-library-engine.5"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"README.md",
|
|
@@ -1,25 +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 assertNodeAPISupported_exports = {};
|
|
20
|
-
__export(assertNodeAPISupported_exports, {
|
|
21
|
-
assertNodeAPISupported: () => import_chunk_4AMY4VV4.assertNodeAPISupported
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(assertNodeAPISupported_exports);
|
|
24
|
-
var import_chunk_4AMY4VV4 = require("./chunk-4AMY4VV4.js");
|
|
25
|
-
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
package/dist/chunk-2U36ISZO.js
DELETED
|
@@ -1,34 +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_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
|
-
}
|
package/dist/chunk-4AMY4VV4.js
DELETED
|
@@ -1,41 +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_4AMY4VV4_exports = {};
|
|
30
|
-
__export(chunk_4AMY4VV4_exports, {
|
|
31
|
-
assertNodeAPISupported: () => assertNodeAPISupported
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(chunk_4AMY4VV4_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(`The default query engine type (Node-API, "library") is currently not supported for 32bit Node.)`);
|
|
40
|
-
}
|
|
41
|
-
}
|
package/dist/getNodeAPIName.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
package/dist/getNodeAPIName.js
DELETED
|
@@ -1,25 +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 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");
|