@prisma/fetch-engine 6.17.0-dev.3 → 6.17.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.
- package/dist/chmodPlusX.js +2 -2
- package/dist/{chunk-CAMEZM54.js → chunk-3VVCXIQ5.js} +5 -5
- package/dist/{chunk-MX3HXAU2.js → chunk-7JLQJWOR.js} +6 -6
- package/dist/chunk-BUBTUESL.js +2588 -0
- package/dist/{chunk-BPSZDGRL.js → chunk-CY52DY2B.js} +5 -6
- package/dist/{chunk-CWGQAQ3T.js → chunk-FKGWOTGU.js} +7 -7
- package/dist/{chunk-YJOPKU47.js → chunk-LONQL55G.js} +34 -34
- package/dist/{chunk-PXQVM7NP.js → chunk-QFA3XBMW.js} +7 -7
- package/dist/chunk-TFIFR6KT.js +2588 -0
- package/dist/cleanupCache.js +3 -3
- package/dist/download.js +13 -13
- package/dist/downloadZip.js +3 -3
- package/dist/env.js +5 -5
- package/dist/getHash.js +2 -2
- package/dist/index.js +19 -19
- package/dist/utils.js +5 -5
- package/package.json +6 -10
- package/dist/chunk-PHU6QDY6.js +0 -2443
- package/dist/chunk-UYEM6UQM.js +0 -2443
package/dist/chmodPlusX.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 chmodPlusX_exports = {};
|
|
20
20
|
__export(chmodPlusX_exports, {
|
|
21
|
-
chmodPlusX: () =>
|
|
21
|
+
chmodPlusX: () => import_chunk_7JLQJWOR.chmodPlusX
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(chmodPlusX_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_7JLQJWOR = require("./chunk-7JLQJWOR.js");
|
|
25
25
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
|
@@ -26,13 +26,13 @@ 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_3VVCXIQ5_exports = {};
|
|
30
|
+
__export(chunk_3VVCXIQ5_exports, {
|
|
31
31
|
cleanupCache: () => cleanupCache
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(chunk_3VVCXIQ5_exports);
|
|
34
34
|
var import_chunk_FSAAZH62 = require("./chunk-FSAAZH62.js");
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_LONQL55G = require("./chunk-LONQL55G.js");
|
|
36
36
|
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
|
37
37
|
var import_node_fs = __toESM(require("node:fs"));
|
|
38
38
|
var import_node_path = __toESM(require("node:path"));
|
|
@@ -41,7 +41,7 @@ var import_p_map = (0, import_chunk_QGM4M3NI.__toESM)((0, import_chunk_FSAAZH62.
|
|
|
41
41
|
var debug = (0, import_debug.default)("cleanupCache");
|
|
42
42
|
async function cleanupCache(n = 5) {
|
|
43
43
|
try {
|
|
44
|
-
const rootCacheDir = await (0,
|
|
44
|
+
const rootCacheDir = await (0, import_chunk_LONQL55G.getRootCacheDir)();
|
|
45
45
|
if (!rootCacheDir) {
|
|
46
46
|
debug("no rootCacheDir found");
|
|
47
47
|
return;
|
|
@@ -26,19 +26,19 @@ 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_7JLQJWOR_exports = {};
|
|
30
|
+
__export(chunk_7JLQJWOR_exports, {
|
|
31
31
|
chmodPlusX: () => chmodPlusX
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_7JLQJWOR_exports);
|
|
34
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
35
35
|
function chmodPlusX(file) {
|
|
36
36
|
if (process.platform === "win32") return;
|
|
37
|
-
const s =
|
|
37
|
+
const s = import_node_fs.default.statSync(file);
|
|
38
38
|
const newMode = s.mode | 64 | 8 | 1;
|
|
39
39
|
if (s.mode === newMode) {
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
const base8 = newMode.toString(8).slice(-3);
|
|
43
|
-
|
|
43
|
+
import_node_fs.default.chmodSync(file, base8);
|
|
44
44
|
}
|