/
home
/
techb158
/
balavpn.abdallabala.com
/
.next
/
standalone
/
node_modules
/
next
/
dist
/
lib
/
/home/techb158/balavpn.abdallabala.com/.next/standalone/node_modules/next/dist/lib
mkdir
upload
Name
Size
Mode
Actions
framework/
-
0777
rm
fs/
-
0777
rm
helpers/
-
0777
rm
metadata/
-
0777
rm
typescript/
-
0777
rm
batcher.js
2166
0666
edit
dl
rm
build-custom-route.js
1183
0666
edit
dl
rm
client-and-server-references.js
1293
0666
edit
dl
rm
coalesced-function.js
1088
0666
edit
dl
rm
compile-error.js
292
0666
edit
dl
rm
constants.js
14710
0666
edit
dl
rm
create-client-router-filter.js
2487
0666
edit
dl
rm
default-transpiled-packages.json
10
0666
edit
dl
rm
detached-promise.js
891
0666
edit
dl
rm
detect-typo.js
1521
0666
edit
dl
rm
download-swc.js
7213
0666
edit
dl
rm
error-telemetry-utils.js
1445
0666
edit
dl
rm
fallback.js
3319
0666
edit
dl
rm
fatal-error.js
284
0666
edit
dl
rm
file-exists.js
1423
0666
edit
dl
rm
find-config.js
3464
0666
edit
dl
rm
find-pages-dir.js
1560
0666
edit
dl
rm
find-root.js
4597
0666
edit
dl
rm
format-dynamic-import-path.js
784
0666
edit
dl
rm
format-server-error.js
2688
0666
edit
dl
rm
generate-interception-routes-rewrites.js
3287
0666
edit
dl
rm
get-network-host.js
1423
0666
edit
dl
rm
get-project-dir.js
1904
0666
edit
dl
rm
has-necessary-dependencies.js
1638
0666
edit
dl
rm
install-dependencies.js
1356
0666
edit
dl
rm
interop-default.js
325
0666
edit
dl
rm
is-api-route.js
373
0666
edit
dl
rm
is-app-page-route.js
334
0666
edit
dl
rm
is-app-route-route.js
339
0666
edit
dl
rm
is-edge-runtime.js
445
0666
edit
dl
rm
is-error.js
2389
0666
edit
dl
rm
is-internal-component.js
881
0666
edit
dl
rm
is-serializable-props.js
4694
0666
edit
dl
rm
known-edge-safe-packages.json
18
0666
edit
dl
rm
load-custom-routes.js
22871
0666
edit
dl
rm
multi-file-writer.js
2573
0666
edit
dl
rm
needs-experimental-react.js
484
0666
edit
dl
rm
non-nullable.js
334
0666
edit
dl
rm
normalize-path.js
549
0666
edit
dl
rm
oxford-comma-list.js
451
0666
edit
dl
rm
page-types.js
431
0666
edit
dl
rm
patch-incorrect-lockfile.js
7036
0666
edit
dl
rm
pick.js
368
0666
edit
dl
rm
picocolors.js
5375
0666
edit
dl
rm
pretty-bytes.js
3056
0666
edit
dl
rm
realpath.js
572
0666
edit
dl
rm
recursive-delete.js
2642
0666
edit
dl
rm
recursive-readdir.js
5464
0666
edit
dl
rm
redirect-status.js
1285
0666
edit
dl
rm
resolve-from.js
2144
0666
edit
dl
rm
route-pattern-normalizer.js
4502
0666
edit
dl
rm
scheduler.js
1863
0666
edit
dl
rm
semver-noop.js
471
0666
edit
dl
rm
server-external-packages.json
1281
0666
edit
dl
rm
static-env.js
2666
0666
edit
dl
rm
try-to-parse-path.js
2542
0666
edit
dl
rm
turbopack-warning.js
8777
0666
edit
dl
rm
url.js
1982
0666
edit
dl
rm
verify-partytown-setup.js
4918
0666
edit
dl
rm
verify-typescript-setup.js
7750
0666
edit
dl
rm
wait.js
438
0666
edit
dl
rm
with-promise-cache.js
594
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/.next/standalone/node_modules/next/dist/lib/batcher.js
(2166B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Batcher", { enumerable: true, get: function() { return Batcher; } }); const _detachedpromise = require("./detached-promise"); class Batcher { constructor(cacheKeyFn, /** * A function that will be called to schedule the wrapped function to be * executed. This defaults to a function that will execute the function * immediately. */ schedulerFn = (fn)=>fn()){ this.cacheKeyFn = cacheKeyFn; this.schedulerFn = schedulerFn; this.pending = new Map(); } static create(options) { return new Batcher(options == null ? void 0 : options.cacheKeyFn, options == null ? void 0 : options.schedulerFn); } /** * Wraps a function in a promise that will be resolved or rejected only once * for a given key. This will allow multiple calls to the function to be * made, but only one will be executed at a time. The result of the first * call will be returned to all callers. * * @param key the key to use for the cache * @param fn the function to wrap * @returns a promise that resolves to the result of the function */ async batch(key, fn) { const cacheKey = this.cacheKeyFn ? await this.cacheKeyFn(key) : key; if (cacheKey === null) { return fn(cacheKey, Promise.resolve); } const pending = this.pending.get(cacheKey); if (pending) return pending; const { promise, resolve, reject } = new _detachedpromise.DetachedPromise(); this.pending.set(cacheKey, promise); this.schedulerFn(async ()=>{ try { const result = await fn(cacheKey, resolve); // Resolving a promise multiple times is a no-op, so we can safely // resolve all pending promises with the same result. resolve(result); } catch (err) { reject(err); } finally{ this.pending.delete(cacheKey); } }); return promise; } } //# sourceMappingURL=batcher.js.map
Save
cmd:
run