@prisma/fetch-engine 6.5.0-dev.4 → 6.5.0-dev.6

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 chunk_GQ2B5OIS_exports = {};
30
- __export(chunk_GQ2B5OIS_exports, {
29
+ var chunk_S2NYJIEH_exports = {};
30
+ __export(chunk_S2NYJIEH_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,7 +35,7 @@ __export(chunk_GQ2B5OIS_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_GQ2B5OIS_exports);
38
+ module.exports = __toCommonJS(chunk_S2NYJIEH_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_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
@@ -2255,9 +2255,17 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2255
2255
  }
2256
2256
  } else if (process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) {
2257
2257
  debug(
2258
- `The checksum file: ${sha256FilePath} is missing but this was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy.`
2258
+ `the checksum file ${sha256FilePath} is missing but this was ignored because the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is set`
2259
2259
  );
2260
- return false;
2260
+ if (targetExists) {
2261
+ return false;
2262
+ }
2263
+ if (cachedFile) {
2264
+ debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2265
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2266
+ return false;
2267
+ }
2268
+ return true;
2261
2269
  } else {
2262
2270
  return true;
2263
2271
  }
@@ -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 chunk_XDZJZDMR_exports = {};
30
- __export(chunk_XDZJZDMR_exports, {
29
+ var chunk_UPUFO25V_exports = {};
30
+ __export(chunk_UPUFO25V_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,7 +35,7 @@ __export(chunk_XDZJZDMR_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_XDZJZDMR_exports);
38
+ module.exports = __toCommonJS(chunk_UPUFO25V_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_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
@@ -2010,7 +2010,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2010
2010
  "package.json"(exports, module2) {
2011
2011
  module2.exports = {
2012
2012
  name: "@prisma/fetch-engine",
2013
- version: "6.5.0-dev.4",
2013
+ version: "6.5.0-dev.6",
2014
2014
  description: "This package is intended for Prisma's internal use",
2015
2015
  main: "dist/index.js",
2016
2016
  types: "dist/index.d.ts",
@@ -2255,9 +2255,17 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2255
2255
  }
2256
2256
  } else if (process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) {
2257
2257
  debug(
2258
- `The checksum file: ${sha256FilePath} is missing but this was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy.`
2258
+ `the checksum file ${sha256FilePath} is missing but this was ignored because the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is set`
2259
2259
  );
2260
- return false;
2260
+ if (targetExists) {
2261
+ return false;
2262
+ }
2263
+ if (cachedFile) {
2264
+ debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2265
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2266
+ return false;
2267
+ }
2268
+ return true;
2261
2269
  } else {
2262
2270
  return true;
2263
2271
  }
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: () => import_chunk_XDZJZDMR.download,
22
- getBinaryName: () => import_chunk_XDZJZDMR.getBinaryName,
23
- getVersion: () => import_chunk_XDZJZDMR.getVersion,
24
- maybeCopyToTmp: () => import_chunk_XDZJZDMR.maybeCopyToTmp,
25
- plusX: () => import_chunk_XDZJZDMR.plusX,
26
- vercelPkgPathRegex: () => import_chunk_XDZJZDMR.vercelPkgPathRegex
21
+ download: () => import_chunk_UPUFO25V.download,
22
+ getBinaryName: () => import_chunk_UPUFO25V.getBinaryName,
23
+ getVersion: () => import_chunk_UPUFO25V.getVersion,
24
+ maybeCopyToTmp: () => import_chunk_UPUFO25V.maybeCopyToTmp,
25
+ plusX: () => import_chunk_UPUFO25V.plusX,
26
+ vercelPkgPathRegex: () => import_chunk_UPUFO25V.vercelPkgPathRegex
27
27
  });
28
28
  module.exports = __toCommonJS(download_exports);
29
- var import_chunk_XDZJZDMR = require("./chunk-XDZJZDMR.js");
29
+ var import_chunk_UPUFO25V = require("./chunk-UPUFO25V.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_FKKOTNO6 = require("./chunk-FKKOTNO6.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: () => import_chunk_XDZJZDMR.download,
24
+ download: () => import_chunk_UPUFO25V.download,
25
25
  engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
26
26
  getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
27
- getBinaryName: () => import_chunk_XDZJZDMR.getBinaryName,
27
+ getBinaryName: () => import_chunk_UPUFO25V.getBinaryName,
28
28
  getCacheDir: () => import_chunk_G7EM4XDM.getCacheDir,
29
29
  getProxyAgent: () => import_chunk_AGZFDFHU.getProxyAgent,
30
- getVersion: () => import_chunk_XDZJZDMR.getVersion,
31
- maybeCopyToTmp: () => import_chunk_XDZJZDMR.maybeCopyToTmp,
30
+ getVersion: () => import_chunk_UPUFO25V.getVersion,
31
+ maybeCopyToTmp: () => import_chunk_UPUFO25V.maybeCopyToTmp,
32
32
  overwriteFile: () => import_chunk_G7EM4XDM.overwriteFile,
33
- plusX: () => import_chunk_XDZJZDMR.plusX,
34
- vercelPkgPathRegex: () => import_chunk_XDZJZDMR.vercelPkgPathRegex
33
+ plusX: () => import_chunk_UPUFO25V.plusX,
34
+ vercelPkgPathRegex: () => import_chunk_UPUFO25V.vercelPkgPathRegex
35
35
  });
36
36
  module.exports = __toCommonJS(index_exports);
37
- var import_chunk_XDZJZDMR = require("./chunk-XDZJZDMR.js");
37
+ var import_chunk_UPUFO25V = require("./chunk-UPUFO25V.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_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/fetch-engine",
3
- "version": "6.5.0-dev.4",
3
+ "version": "6.5.0-dev.6",
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.4.0-29.a9055b89e58b4b5bfb59600785423b1db3d0e75d",
46
- "@prisma/debug": "6.5.0-dev.4",
47
- "@prisma/get-platform": "6.5.0-dev.4"
46
+ "@prisma/get-platform": "6.5.0-dev.6",
47
+ "@prisma/debug": "6.5.0-dev.6"
48
48
  },
49
49
  "files": [
50
50
  "README.md",