@prisma/fetch-engine 6.5.0-integration-fix-use-webcrypto.3 → 6.5.0-integration-fix-use-webcrypto.4
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.
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_2QOVMJWE_exports = {};
|
30
|
+
__export(chunk_2QOVMJWE_exports, {
|
31
31
|
download: () => download,
|
32
32
|
getBinaryName: () => getBinaryName,
|
33
33
|
getVersion: () => getVersion,
|
@@ -35,14 +35,14 @@ __export(chunk_XXBB6PXP_exports, {
|
|
35
35
|
plusX: () => plusX,
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_2QOVMJWE_exports);
|
39
39
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
40
40
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
41
41
|
var import_chunk_I3P4GT6A = require("./chunk-I3P4GT6A.js");
|
42
42
|
var import_chunk_ORVVLJ4G = require("./chunk-ORVVLJ4G.js");
|
43
43
|
var import_chunk_HACCWU3B = require("./chunk-HACCWU3B.js");
|
44
44
|
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
|
45
|
-
var
|
45
|
+
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
|
46
46
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
47
47
|
var import_debug = __toESM2(require("@prisma/debug"));
|
48
48
|
var import_get_platform = require("@prisma/get-platform");
|
@@ -2291,14 +2291,14 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
2291
2291
|
const sha256FilePath = cachedFile + ".sha256";
|
2292
2292
|
if (await exists(sha256FilePath)) {
|
2293
2293
|
const sha256File = await import_fs.default.promises.readFile(sha256FilePath, "utf-8");
|
2294
|
-
const sha256Cache = await (0,
|
2294
|
+
const sha256Cache = await (0, import_chunk_CWGQAQ3T.getHash)(cachedFile);
|
2295
2295
|
if (sha256File === sha256Cache) {
|
2296
2296
|
if (!targetExists) {
|
2297
2297
|
debug(`copying ${cachedFile} to ${job.targetFilePath}`);
|
2298
2298
|
await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
|
2299
2299
|
await (0, import_chunk_HACCWU3B.overwriteFile)(cachedFile, job.targetFilePath);
|
2300
2300
|
}
|
2301
|
-
const targetSha256 = await (0,
|
2301
|
+
const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
|
2302
2302
|
if (sha256File !== targetSha256) {
|
2303
2303
|
debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
|
2304
2304
|
await (0, import_chunk_HACCWU3B.overwriteFile)(cachedFile, job.targetFilePath);
|
@@ -26,14 +26,15 @@ 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_CWGQAQ3T_exports = {};
|
30
|
+
__export(chunk_CWGQAQ3T_exports, {
|
31
31
|
getHash: () => getHash
|
32
32
|
});
|
33
|
-
module.exports = __toCommonJS(
|
33
|
+
module.exports = __toCommonJS(chunk_CWGQAQ3T_exports);
|
34
|
+
var import_crypto = __toESM(require("crypto"));
|
34
35
|
var import_fs = __toESM(require("fs"));
|
35
36
|
function getHash(filePath) {
|
36
|
-
const hash =
|
37
|
+
const hash = import_crypto.default.createHash("sha256");
|
37
38
|
const input = import_fs.default.createReadStream(filePath);
|
38
39
|
return new Promise((resolve) => {
|
39
40
|
input.on("readable", () => {
|
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_JY2BC5KL_exports = {};
|
30
|
+
__export(chunk_JY2BC5KL_exports, {
|
31
31
|
download: () => download,
|
32
32
|
getBinaryName: () => getBinaryName,
|
33
33
|
getVersion: () => getVersion,
|
@@ -35,14 +35,14 @@ __export(chunk_YIUT2YWF_exports, {
|
|
35
35
|
plusX: () => plusX,
|
36
36
|
vercelPkgPathRegex: () => vercelPkgPathRegex
|
37
37
|
});
|
38
|
-
module.exports = __toCommonJS(
|
38
|
+
module.exports = __toCommonJS(chunk_JY2BC5KL_exports);
|
39
39
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
40
40
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
41
41
|
var import_chunk_I3P4GT6A = require("./chunk-I3P4GT6A.js");
|
42
42
|
var import_chunk_ORVVLJ4G = require("./chunk-ORVVLJ4G.js");
|
43
43
|
var import_chunk_HACCWU3B = require("./chunk-HACCWU3B.js");
|
44
44
|
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
|
45
|
-
var
|
45
|
+
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
|
46
46
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
47
47
|
var import_debug = __toESM2(require("@prisma/debug"));
|
48
48
|
var import_get_platform = require("@prisma/get-platform");
|
@@ -1936,7 +1936,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
1936
1936
|
"package.json"(exports, module2) {
|
1937
1937
|
module2.exports = {
|
1938
1938
|
name: "@prisma/fetch-engine",
|
1939
|
-
version: "6.5.0-integration-fix-use-webcrypto.
|
1939
|
+
version: "6.5.0-integration-fix-use-webcrypto.4",
|
1940
1940
|
description: "This package is intended for Prisma's internal use",
|
1941
1941
|
main: "dist/index.js",
|
1942
1942
|
types: "dist/index.d.ts",
|
@@ -2291,14 +2291,14 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
|
|
2291
2291
|
const sha256FilePath = cachedFile + ".sha256";
|
2292
2292
|
if (await exists(sha256FilePath)) {
|
2293
2293
|
const sha256File = await import_fs.default.promises.readFile(sha256FilePath, "utf-8");
|
2294
|
-
const sha256Cache = await (0,
|
2294
|
+
const sha256Cache = await (0, import_chunk_CWGQAQ3T.getHash)(cachedFile);
|
2295
2295
|
if (sha256File === sha256Cache) {
|
2296
2296
|
if (!targetExists) {
|
2297
2297
|
debug(`copying ${cachedFile} to ${job.targetFilePath}`);
|
2298
2298
|
await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
|
2299
2299
|
await (0, import_chunk_HACCWU3B.overwriteFile)(cachedFile, job.targetFilePath);
|
2300
2300
|
}
|
2301
|
-
const targetSha256 = await (0,
|
2301
|
+
const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
|
2302
2302
|
if (sha256File !== targetSha256) {
|
2303
2303
|
debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
|
2304
2304
|
await (0, import_chunk_HACCWU3B.overwriteFile)(cachedFile, job.targetFilePath);
|
package/dist/download.js
CHANGED
@@ -18,15 +18,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var download_exports = {};
|
20
20
|
__export(download_exports, {
|
21
|
-
download: () =>
|
22
|
-
getBinaryName: () =>
|
23
|
-
getVersion: () =>
|
24
|
-
maybeCopyToTmp: () =>
|
25
|
-
plusX: () =>
|
26
|
-
vercelPkgPathRegex: () =>
|
21
|
+
download: () => import_chunk_JY2BC5KL.download,
|
22
|
+
getBinaryName: () => import_chunk_JY2BC5KL.getBinaryName,
|
23
|
+
getVersion: () => import_chunk_JY2BC5KL.getVersion,
|
24
|
+
maybeCopyToTmp: () => import_chunk_JY2BC5KL.maybeCopyToTmp,
|
25
|
+
plusX: () => import_chunk_JY2BC5KL.plusX,
|
26
|
+
vercelPkgPathRegex: () => import_chunk_JY2BC5KL.vercelPkgPathRegex
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(download_exports);
|
29
|
-
var
|
29
|
+
var import_chunk_JY2BC5KL = require("./chunk-JY2BC5KL.js");
|
30
30
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
31
31
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
32
32
|
var import_chunk_I3P4GT6A = require("./chunk-I3P4GT6A.js");
|
@@ -36,6 +36,6 @@ var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
|
36
36
|
var import_chunk_HACCWU3B = require("./chunk-HACCWU3B.js");
|
37
37
|
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
|
38
38
|
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
39
|
-
var
|
39
|
+
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
|
40
40
|
var import_chunk_ZSBPBV34 = require("./chunk-ZSBPBV34.js");
|
41
41
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/dist/getHash.js
CHANGED
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var getHash_exports = {};
|
20
20
|
__export(getHash_exports, {
|
21
|
-
getHash: () =>
|
21
|
+
getHash: () => import_chunk_CWGQAQ3T.getHash
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(getHash_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
|
25
25
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/dist/index.js
CHANGED
@@ -21,20 +21,20 @@ __export(index_exports, {
|
|
21
21
|
BinaryType: () => import_chunk_X37PZICB.BinaryType,
|
22
22
|
allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet,
|
23
23
|
deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap,
|
24
|
-
download: () =>
|
24
|
+
download: () => import_chunk_JY2BC5KL.download,
|
25
25
|
engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
|
26
26
|
getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
|
27
|
-
getBinaryName: () =>
|
27
|
+
getBinaryName: () => import_chunk_JY2BC5KL.getBinaryName,
|
28
28
|
getCacheDir: () => import_chunk_HACCWU3B.getCacheDir,
|
29
29
|
getProxyAgent: () => import_chunk_ZSBPBV34.getProxyAgent,
|
30
|
-
getVersion: () =>
|
31
|
-
maybeCopyToTmp: () =>
|
30
|
+
getVersion: () => import_chunk_JY2BC5KL.getVersion,
|
31
|
+
maybeCopyToTmp: () => import_chunk_JY2BC5KL.maybeCopyToTmp,
|
32
32
|
overwriteFile: () => import_chunk_HACCWU3B.overwriteFile,
|
33
|
-
plusX: () =>
|
34
|
-
vercelPkgPathRegex: () =>
|
33
|
+
plusX: () => import_chunk_JY2BC5KL.plusX,
|
34
|
+
vercelPkgPathRegex: () => import_chunk_JY2BC5KL.vercelPkgPathRegex
|
35
35
|
});
|
36
36
|
module.exports = __toCommonJS(index_exports);
|
37
|
-
var
|
37
|
+
var import_chunk_JY2BC5KL = require("./chunk-JY2BC5KL.js");
|
38
38
|
var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
|
39
39
|
var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
|
40
40
|
var import_chunk_I3P4GT6A = require("./chunk-I3P4GT6A.js");
|
@@ -44,6 +44,6 @@ var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
|
|
44
44
|
var import_chunk_HACCWU3B = require("./chunk-HACCWU3B.js");
|
45
45
|
var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
|
46
46
|
var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
|
47
|
-
var
|
47
|
+
var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
|
48
48
|
var import_chunk_ZSBPBV34 = require("./chunk-ZSBPBV34.js");
|
49
49
|
var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prisma/fetch-engine",
|
3
|
-
"version": "6.5.0-integration-fix-use-webcrypto.
|
3
|
+
"version": "6.5.0-integration-fix-use-webcrypto.4",
|
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",
|
@@ -43,8 +43,8 @@
|
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
45
|
"@prisma/engines-version": "6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a",
|
46
|
-
"@prisma/debug": "6.5.0-integration-fix-use-webcrypto.
|
47
|
-
"@prisma/get-platform": "6.5.0-integration-fix-use-webcrypto.
|
46
|
+
"@prisma/debug": "6.5.0-integration-fix-use-webcrypto.4",
|
47
|
+
"@prisma/get-platform": "6.5.0-integration-fix-use-webcrypto.4"
|
48
48
|
},
|
49
49
|
"files": [
|
50
50
|
"README.md",
|