/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
@prisma
/
fetch-engine
/
dist
/
/home/techb158/balavpn.abdallabala.com/node_modules/@prisma/fetch-engine/dist
mkdir
upload
Name
Size
Mode
Actions
BinaryType.d.ts
160
0666
edit
dl
rm
BinaryType.js
1087
0666
edit
dl
rm
chmodPlusX.d.ts
56
0666
edit
dl
rm
chmodPlusX.js
1087
0666
edit
dl
rm
chunk-2BCLJS3M.js
80992
0666
edit
dl
rm
chunk-4LX3XBNY.js
6143
0666
edit
dl
rm
chunk-AH6QHEOA.js
3483
0666
edit
dl
rm
chunk-CWGQAQ3T.js
2009
0666
edit
dl
rm
chunk-FQ2BOR66.js
87678
0666
edit
dl
rm
chunk-KDPLGCY6.js
48210
0666
edit
dl
rm
chunk-KJ74H3SQ.js
80991
0666
edit
dl
rm
chunk-MX3HXAU2.js
1888
0666
edit
dl
rm
chunk-PXQVM7NP.js
5316
0666
edit
dl
rm
chunk-QLWYUM7O.js
287414
0666
edit
dl
rm
chunk-QSTZGX47.js
3146
0666
edit
dl
rm
chunk-RGVHWUUH.js
88956
0666
edit
dl
rm
chunk-VTJS2JJN.js
184431
0666
edit
dl
rm
chunk-X37PZICB.js
1219
0666
edit
dl
rm
cleanupCache.d.ts
65
0666
edit
dl
rm
cleanupCache.js
1277
0666
edit
dl
rm
download.d.ts
1083
0666
edit
dl
rm
download.js
2027
0666
edit
dl
rm
downloadZip.d.ts
252
0666
edit
dl
rm
downloadZip.js
1392
0666
edit
dl
rm
env.d.ts
499
0666
edit
dl
rm
env.js
1352
0666
edit
dl
rm
getHash.d.ts
68
0666
edit
dl
rm
getHash.js
1072
0666
edit
dl
rm
getProxyAgent.d.ts
218
0666
edit
dl
rm
getProxyAgent.js
1102
0666
edit
dl
rm
index.d.ts
184
0666
edit
dl
rm
index.js
2525
0666
edit
dl
rm
log.d.ts
86
0666
edit
dl
rm
log.js
1058
0666
edit
dl
rm
multipart-parser-47FFAP42.js
11006
0666
edit
dl
rm
utils.d.ts
566
0666
edit
dl
rm
utils.js
1320
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js
(3146B)
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var chunk_QSTZGX47_exports = {}; __export(chunk_QSTZGX47_exports, { cleanupCache: () => cleanupCache }); module.exports = __toCommonJS(chunk_QSTZGX47_exports); var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js"); var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js"); var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js"); var import_debug = __toESM(require("@prisma/debug")); var import_fs = __toESM(require("fs")); var import_path = __toESM(require("path")); var import_util = require("util"); var import_p_map = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_p_map)()); var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_rimraf)()); var debug = (0, import_debug.default)("cleanupCache"); var del = (0, import_util.promisify)(import_rimraf.default); async function cleanupCache(n = 5) { try { const rootCacheDir = await (0, import_chunk_FQ2BOR66.getRootCacheDir)(); if (!rootCacheDir) { debug("no rootCacheDir found"); return; } const channel = "master"; const cacheDir = import_path.default.join(rootCacheDir, channel); const dirs = await import_fs.default.promises.readdir(cacheDir); const dirsWithMeta = await Promise.all( dirs.map(async (dirName) => { const dir = import_path.default.join(cacheDir, dirName); const statResult = await import_fs.default.promises.stat(dir); return { dir, created: statResult.birthtime }; }) ); dirsWithMeta.sort((a, b) => a.created < b.created ? 1 : -1); const dirsToRemove = dirsWithMeta.slice(n); await (0, import_p_map.default)(dirsToRemove, (dir) => del(dir.dir), { concurrency: 20 }); } catch (e) { } }
Save
cmd:
run