/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
next
/
dist
/
server
/
/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/server
mkdir
upload
Name
Size
Mode
Actions
after/
-
0777
rm
api-utils/
-
0777
rm
app-render/
-
0777
rm
async-storage/
-
0777
rm
base-http/
-
0777
rm
dev/
-
0777
rm
instrumentation/
-
0777
rm
lib/
-
0777
rm
node-environment-extensions/
-
0777
rm
normalizers/
-
0777
rm
og/
-
0777
rm
request/
-
0777
rm
response-cache/
-
0777
rm
resume-data-cache/
-
0777
rm
route-definitions/
-
0777
rm
route-matcher-managers/
-
0777
rm
route-matcher-providers/
-
0777
rm
route-matchers/
-
0777
rm
route-matches/
-
0777
rm
route-modules/
-
0777
rm
stream-utils/
-
0777
rm
typescript/
-
0777
rm
use-cache/
-
0777
rm
web/
-
0777
rm
accept-header.d.ts
98
0666
edit
dl
rm
accept-header.js
4062
0666
edit
dl
rm
accept-header.js.map
6474
0666
edit
dl
rm
base-server.d.ts
14818
0666
edit
dl
rm
base-server.js
102491
0666
edit
dl
rm
base-server.js.map
163721
0666
edit
dl
rm
body-streams.d.ts
474
0666
edit
dl
rm
body-streams.js
3655
0666
edit
dl
rm
body-streams.js.map
5442
0666
edit
dl
rm
cache-dir.d.ts
82
0666
edit
dl
rm
cache-dir.js
757
0666
edit
dl
rm
cache-dir.js.map
703
0666
edit
dl
rm
capsize-font-metrics.json
4301622
0666
edit
dl
rm
ci-info.d.ts
124
0666
edit
dl
rm
ci-info.js
1142
0666
edit
dl
rm
ci-info.js.map
1314
0666
edit
dl
rm
client-component-renderer-logger.d.ts
405
0666
edit
dl
rm
client-component-renderer-logger.js
2287
0666
edit
dl
rm
client-component-renderer-logger.js.map
3036
0666
edit
dl
rm
config-schema.d.ts
151
0666
edit
dl
rm
config-schema.js
30336
0666
edit
dl
rm
config-schema.js.map
56748
0666
edit
dl
rm
config-shared.d.ts
49280
0666
edit
dl
rm
config-shared.js
7278
0666
edit
dl
rm
config-shared.js.map
58064
0666
edit
dl
rm
config-utils.d.ts
49
0666
edit
dl
rm
config-utils.js
5888
0666
edit
dl
rm
config-utils.js.map
6600
0666
edit
dl
rm
config.d.ts
1159
0666
edit
dl
rm
config.js
74313
0666
edit
dl
rm
config.js.map
99560
0666
edit
dl
rm
create-deduped-by-callsite-server-error-logger.d.ts
591
0666
edit
dl
rm
create-deduped-by-callsite-server-error-logger.js
3584
0666
edit
dl
rm
create-deduped-by-callsite-server-error-logger.js.map
3667
0666
edit
dl
rm
crypto-utils.d.ts
171
0666
edit
dl
rm
crypto-utils.js
3026
0666
edit
dl
rm
crypto-utils.js.map
4369
0666
edit
dl
rm
dynamic-rendering-utils.d.ts
425
0666
edit
dl
rm
dynamic-rendering-utils.js
3388
0666
edit
dl
rm
dynamic-rendering-utils.js.map
4939
0666
edit
dl
rm
font-utils.d.ts
177
0666
edit
dl
rm
font-utils.js
1776
0666
edit
dl
rm
font-utils.js.map
3060
0666
edit
dl
rm
get-app-route-from-entrypoint.d.ts
85
0666
edit
dl
rm
get-app-route-from-entrypoint.js
832
0666
edit
dl
rm
get-app-route-from-entrypoint.js.map
865
0666
edit
dl
rm
get-page-files.d.ts
536
0666
edit
dl
rm
get-page-files.js
807
0666
edit
dl
rm
get-page-files.js.map
1692
0666
edit
dl
rm
get-route-from-entrypoint.d.ts
97
0666
edit
dl
rm
get-route-from-entrypoint.js
1245
0666
edit
dl
rm
get-route-from-entrypoint.js.map
1415
0666
edit
dl
rm
image-optimizer.d.ts
4721
0666
edit
dl
rm
image-optimizer.js
38046
0666
edit
dl
rm
image-optimizer.js.map
56647
0666
edit
dl
rm
internal-utils.d.ts
223
0666
edit
dl
rm
internal-utils.js
1127
0666
edit
dl
rm
internal-utils.js.map
1347
0666
edit
dl
rm
load-components.d.ts
2988
0666
edit
dl
rm
load-components.js
7016
0666
edit
dl
rm
load-components.js.map
13170
0666
edit
dl
rm
load-default-error-components.d.ts
1352
0666
edit
dl
rm
load-default-error-components.js
1887
0666
edit
dl
rm
load-default-error-components.js.map
3826
0666
edit
dl
rm
load-manifest.external.d.ts
1808
0666
edit
dl
rm
load-manifest.external.js
3051
0666
edit
dl
rm
load-manifest.external.js.map
5827
0666
edit
dl
rm
match-bundle.d.ts
82
0666
edit
dl
rm
match-bundle.js
686
0666
edit
dl
rm
match-bundle.js.map
718
0666
edit
dl
rm
next-server.d.ts
11448
0666
edit
dl
rm
next-server.js
70038
0666
edit
dl
rm
next-server.js.map
110326
0666
edit
dl
rm
next-typescript.d.ts
47
0666
edit
dl
rm
next-typescript.js
318
0666
edit
dl
rm
next-typescript.js.map
222
0666
edit
dl
rm
next.d.ts
3646
0666
edit
dl
rm
next.js
15707
0666
edit
dl
rm
next.js.map
26816
0666
edit
dl
rm
node-environment-baseline.d.ts
0
0666
edit
dl
rm
node-environment-baseline.js
890
0666
edit
dl
rm
node-environment-baseline.js.map
1555
0666
edit
dl
rm
node-environment.d.ts
287
0666
edit
dl
rm
node-environment.js
648
0666
edit
dl
rm
node-environment.js.map
1065
0666
edit
dl
rm
node-polyfill-crypto.d.ts
0
0666
edit
dl
rm
node-polyfill-crypto.js
558
0666
edit
dl
rm
node-polyfill-crypto.js.map
1014
0666
edit
dl
rm
optimize-amp.d.ts
78
0666
edit
dl
rm
optimize-amp.js
549
0666
edit
dl
rm
optimize-amp.js.map
839
0666
edit
dl
rm
patch-error-inspect.d.ts
467
0666
edit
dl
rm
patch-error-inspect.js
19653
0666
edit
dl
rm
patch-error-inspect.js.map
28501
0666
edit
dl
rm
pipe-readable.d.ts
291
0666
edit
dl
rm
pipe-readable.js
5598
0666
edit
dl
rm
pipe-readable.js.map
7677
0666
edit
dl
rm
post-process.d.ts
372
0666
edit
dl
rm
post-process.js
2006
0666
edit
dl
rm
post-process.js.map
3983
0666
edit
dl
rm
ReactDOMServerPages.d.ts
38
0666
edit
dl
rm
ReactDOMServerPages.js
598
0666
edit
dl
rm
ReactDOMServerPages.js.map
957
0666
edit
dl
rm
render-result.d.ts
6241
0666
edit
dl
rm
render-result.js
7555
0666
edit
dl
rm
render-result.js.map
14243
0666
edit
dl
rm
render.d.ts
4887
0666
edit
dl
rm
render.js
55784
0666
edit
dl
rm
render.js.map
85056
0666
edit
dl
rm
request-meta.d.ts
8031
0666
edit
dl
rm
request-meta.js
1465
0666
edit
dl
rm
request-meta.js.map
9461
0666
edit
dl
rm
require-hook.d.ts
266
0666
edit
dl
rm
require-hook.js
2840
0666
edit
dl
rm
require-hook.js.map
4453
0666
edit
dl
rm
require.d.ts
377
0666
edit
dl
rm
require.js
3922
0666
edit
dl
rm
require.js.map
6048
0666
edit
dl
rm
revalidation-utils.d.ts
541
0666
edit
dl
rm
revalidation-utils.js
3341
0666
edit
dl
rm
revalidation-utils.js.map
5733
0666
edit
dl
rm
route-kind.d.ts
720
0666
edit
dl
rm
route-kind.js
1029
0666
edit
dl
rm
route-kind.js.map
937
0666
edit
dl
rm
send-payload.d.ts
597
0666
edit
dl
rm
send-payload.js
2849
0666
edit
dl
rm
send-payload.js.map
4214
0666
edit
dl
rm
send-response.d.ts
420
0666
edit
dl
rm
send-response.js
3065
0666
edit
dl
rm
send-response.js.map
4559
0666
edit
dl
rm
serve-static.d.ts
403
0666
edit
dl
rm
serve-static.js
2110
0666
edit
dl
rm
serve-static.js.map
2680
0666
edit
dl
rm
server-route-utils.d.ts
197
0666
edit
dl
rm
server-route-utils.js
1130
0666
edit
dl
rm
server-route-utils.js.map
1935
0666
edit
dl
rm
server-utils.d.ts
3134
0666
edit
dl
rm
server-utils.js
16542
0666
edit
dl
rm
server-utils.js.map
26064
0666
edit
dl
rm
setup-http-agent-env.d.ts
172
0666
edit
dl
rm
setup-http-agent-env.js
1050
0666
edit
dl
rm
setup-http-agent-env.js.map
1406
0666
edit
dl
rm
utils.d.ts
332
0666
edit
dl
rm
utils.js
3208
0666
edit
dl
rm
utils.js.map
4181
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/server/render-result.js
(7555B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return RenderResult; } }); const _nodewebstreamshelper = require("./stream-utils/node-web-streams-helper"); const _pipereadable = require("./pipe-readable"); const _invarianterror = require("../shared/lib/invariant-error"); class RenderResult { static #_ = /** * A render result that represents an empty response. This is used to * represent a response that was not found or was already sent. */ this.EMPTY = new RenderResult(null, { metadata: {}, contentType: null }); /** * Creates a new RenderResult instance from a static response. * * @param value the static response value * @param contentType the content type of the response * @returns a new RenderResult instance */ static fromStatic(value, contentType) { return new RenderResult(value, { metadata: {}, contentType }); } constructor(response, { contentType, waitUntil, metadata }){ this.response = response; this.contentType = contentType; this.metadata = metadata; this.waitUntil = waitUntil; } assignMetadata(metadata) { Object.assign(this.metadata, metadata); } /** * Returns true if the response is null. It can be null if the response was * not found or was already sent. */ get isNull() { return this.response === null; } /** * Returns false if the response is a string. It can be a string if the page * was prerendered. If it's not, then it was generated dynamically. */ get isDynamic() { return typeof this.response !== 'string'; } toUnchunkedString(stream = false) { if (this.response === null) { // If the response is null, return an empty string. This behavior is // intentional as we're now providing the `RenderResult.EMPTY` value. return ''; } if (typeof this.response !== 'string') { if (!stream) { throw Object.defineProperty(new _invarianterror.InvariantError('dynamic responses cannot be unchunked. This is a bug in Next.js'), "__NEXT_ERROR_CODE", { value: "E732", enumerable: false, configurable: true }); } return (0, _nodewebstreamshelper.streamToString)(this.readable); } return this.response; } /** * Returns a readable stream of the response. */ get readable() { if (this.response === null) { // If the response is null, return an empty stream. This behavior is // intentional as we're now providing the `RenderResult.EMPTY` value. return new ReadableStream({ start (controller) { controller.close(); } }); } if (typeof this.response === 'string') { return (0, _nodewebstreamshelper.streamFromString)(this.response); } if (Buffer.isBuffer(this.response)) { return (0, _nodewebstreamshelper.streamFromBuffer)(this.response); } // If the response is an array of streams, then chain them together. if (Array.isArray(this.response)) { return (0, _nodewebstreamshelper.chainStreams)(...this.response); } return this.response; } /** * Coerces the response to an array of streams. This will convert the response * to an array of streams if it is not already one. * * @returns An array of streams */ coerce() { if (this.response === null) { // If the response is null, return an empty stream. This behavior is // intentional as we're now providing the `RenderResult.EMPTY` value. return []; } if (typeof this.response === 'string') { return [ (0, _nodewebstreamshelper.streamFromString)(this.response) ]; } else if (Array.isArray(this.response)) { return this.response; } else if (Buffer.isBuffer(this.response)) { return [ (0, _nodewebstreamshelper.streamFromBuffer)(this.response) ]; } else { return [ this.response ]; } } /** * Unshifts a new stream to the response. This will convert the response to an * array of streams if it is not already one and will add the new stream to * the start of the array. When this response is piped, all of the streams * will be piped one after the other. * * @param readable The new stream to unshift */ unshift(readable) { // Coerce the response to an array of streams. this.response = this.coerce(); // Add the new stream to the start of the array. this.response.unshift(readable); } /** * Chains a new stream to the response. This will convert the response to an * array of streams if it is not already one and will add the new stream to * the end. When this response is piped, all of the streams will be piped * one after the other. * * @param readable The new stream to chain */ push(readable) { // Coerce the response to an array of streams. this.response = this.coerce(); // Add the new stream to the end of the array. this.response.push(readable); } /** * Pipes the response to a writable stream. This will close/cancel the * writable stream if an error is encountered. If this doesn't throw, then * the writable stream will be closed or aborted. * * @param writable Writable stream to pipe the response to */ async pipeTo(writable) { try { await this.readable.pipeTo(writable, { // We want to close the writable stream ourselves so that we can wait // for the waitUntil promise to resolve before closing it. If an error // is encountered, we'll abort the writable stream if we swallowed the // error. preventClose: true }); // If there is a waitUntil promise, wait for it to resolve before // closing the writable stream. if (this.waitUntil) await this.waitUntil; // Close the writable stream. await writable.close(); } catch (err) { // If this is an abort error, we should abort the writable stream (as we // took ownership of it when we started piping). We don't need to re-throw // because we handled the error. if ((0, _pipereadable.isAbortError)(err)) { // Abort the writable stream if an error is encountered. await writable.abort(err); return; } // We're not aborting the writer here as when this method throws it's not // clear as to how so the caller should assume it's their responsibility // to clean up the writer. throw err; } } /** * Pipes the response to a node response. This will close/cancel the node * response if an error is encountered. * * @param res */ async pipeToNodeResponse(res) { await (0, _pipereadable.pipeToNodeResponse)(this.readable, res, this.waitUntil); } } //# sourceMappingURL=render-result.js.map
Save
cmd:
run