@dcloudio/uni-cli-shared 3.0.0-alpha-4070720250804001 → 3.0.0-alpha-4070620250731002
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/easycom.d.ts +0 -1
- package/dist/easycom.js +13 -17
- package/dist/hbx/alias.js +10 -43
- package/dist/hbx/index.js +0 -10
- package/dist/hbx/log.js +1 -23
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -3
- package/dist/json/index.d.ts +1 -1
- package/dist/json/index.js +1 -2
- package/dist/json/manifest.d.ts +0 -1
- package/dist/json/manifest.js +1 -11
- package/dist/json/mp/jsonFile.js +2 -4
- package/dist/json/mp/pages.js +0 -1
- package/dist/json/mp/types.d.ts +1 -4
- package/dist/json/uni-x/manifest.d.ts +0 -1
- package/dist/json/uni-x/manifest.js +1 -5
- package/dist/messages/zh_CN.js +0 -1
- package/dist/uni_modules.cloud.d.ts +4 -10
- package/dist/uni_modules.cloud.js +19 -58
- package/dist/uni_modules.d.ts +0 -2
- package/dist/uni_modules.js +2 -81
- package/dist/uts.js +0 -16
- package/dist/vite/autoImport.js +0 -2
- package/dist/vite/cloud.js +5 -51
- package/dist/vite/plugins/index.d.ts +0 -1
- package/dist/vite/plugins/index.js +1 -3
- package/dist/vite/plugins/inject.js +1 -3
- package/dist/vite/plugins/uts/uni_modules.d.ts +0 -1
- package/dist/vite/plugins/uts/uni_modules.js +14 -63
- package/dist/vite/plugins/uts/uvue.js +3 -17
- package/dist/vite/plugins/vitejs/plugins/css.js +5 -40
- package/dist/vue/transforms/transformUTSComponent.js +3 -8
- package/package.json +38 -38
- package/dist/vite/plugins/stats.d.ts +0 -2
- package/dist/vite/plugins/stats.js +0 -42
- package/dist/workers.d.ts +0 -14
- package/dist/workers.js +0 -187
- package/lib/vapor/@vitejs/plugin-vue/LICENSE +0 -21
- package/lib/vapor/@vitejs/plugin-vue/README.md +0 -278
- package/lib/vapor/@vitejs/plugin-vue/dist/index.cjs +0 -3105
- package/lib/vapor/@vitejs/plugin-vue/dist/index.d.cts +0 -113
- package/lib/vapor/@vitejs/plugin-vue/dist/index.d.mts +0 -111
- package/lib/vapor/@vitejs/plugin-vue/dist/index.d.ts +0 -113
- package/lib/vapor/@vitejs/plugin-vue/dist/index.mjs +0 -3090
- package/lib/vapor/@vitejs/plugin-vue/package.json +0 -50
- package/lib/vapor/@vue/compiler-core/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-core/README.md +0 -1
- package/lib/vapor/@vue/compiler-core/dist/compiler-core.cjs.js +0 -6902
- package/lib/vapor/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6779
- package/lib/vapor/@vue/compiler-core/dist/compiler-core.esm-bundler.js +0 -5870
- package/lib/vapor/@vue/compiler-core/index.js +0 -7
- package/lib/vapor/@vue/compiler-core/package.json +0 -58
- package/lib/vapor/@vue/compiler-dom/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-dom/README.md +0 -1
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.cjs.js +0 -936
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -856
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +0 -6682
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +0 -14
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +0 -693
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.global.js +0 -6855
- package/lib/vapor/@vue/compiler-dom/dist/compiler-dom.global.prod.js +0 -14
- package/lib/vapor/@vue/compiler-dom/index.js +0 -7
- package/lib/vapor/@vue/compiler-dom/package.json +0 -57
- package/lib/vapor/@vue/compiler-sfc/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-sfc/README.md +0 -80
- package/lib/vapor/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +0 -21682
- package/lib/vapor/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +0 -66272
- package/lib/vapor/@vue/compiler-sfc/package.json +0 -68
- package/lib/vapor/@vue/compiler-ssr/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-ssr/README.md +0 -1
- package/lib/vapor/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1402
- package/lib/vapor/@vue/compiler-ssr/package.json +0 -34
- package/lib/vapor/@vue/compiler-vapor/LICENSE +0 -21
- package/lib/vapor/@vue/compiler-vapor/README.md +0 -1
- package/lib/vapor/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +0 -4540
- package/lib/vapor/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +0 -37020
- package/lib/vapor/@vue/compiler-vapor/package.json +0 -49
- package/lib/vapor/@vue/reactivity/LICENSE +0 -21
- package/lib/vapor/@vue/reactivity/README.md +0 -19
- package/lib/vapor/@vue/reactivity/dist/reactivity.cjs.js +0 -2033
- package/lib/vapor/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1841
- package/lib/vapor/@vue/reactivity/dist/reactivity.esm-browser.js +0 -2023
- package/lib/vapor/@vue/reactivity/dist/reactivity.esm-browser.prod.js +0 -5
- package/lib/vapor/@vue/reactivity/dist/reactivity.esm-bundler.js +0 -1992
- package/lib/vapor/@vue/reactivity/dist/reactivity.global.js +0 -2082
- package/lib/vapor/@vue/reactivity/dist/reactivity.global.prod.js +0 -5
- package/lib/vapor/@vue/reactivity/index.js +0 -7
- package/lib/vapor/@vue/reactivity/package.json +0 -55
- package/lib/vapor/@vue/runtime-core/LICENSE +0 -21
- package/lib/vapor/@vue/runtime-core/README.md +0 -28
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.cjs.js +0 -8972
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -7088
- package/lib/vapor/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -8913
- package/lib/vapor/@vue/runtime-core/index.js +0 -7
- package/lib/vapor/@vue/runtime-core/package.json +0 -54
- package/lib/vapor/@vue/runtime-dom/LICENSE +0 -21
- package/lib/vapor/@vue/runtime-dom/README.md +0 -13
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.cjs.js +0 -1797
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1646
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +0 -12929
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +0 -6
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +0 -1838
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.global.js +0 -13086
- package/lib/vapor/@vue/runtime-dom/dist/runtime-dom.global.prod.js +0 -6
- package/lib/vapor/@vue/runtime-dom/index.js +0 -7
- package/lib/vapor/@vue/runtime-dom/package.json +0 -60
- package/lib/vapor/@vue/runtime-vapor/LICENSE +0 -21
- package/lib/vapor/@vue/runtime-vapor/README.md +0 -8
- package/lib/vapor/@vue/runtime-vapor/dist/runtime-vapor.esm-bundler.js +0 -3242
- package/lib/vapor/@vue/runtime-vapor/package.json +0 -47
- package/lib/vapor/@vue/server-renderer/LICENSE +0 -21
- package/lib/vapor/@vue/server-renderer/README.md +0 -178
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.cjs.js +0 -1144
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -871
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.esm-browser.js +0 -8756
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +0 -5
- package/lib/vapor/@vue/server-renderer/dist/server-renderer.esm-bundler.js +0 -1366
- package/lib/vapor/@vue/server-renderer/index.js +0 -7
- package/lib/vapor/@vue/server-renderer/package.json +0 -55
- package/lib/vapor/@vue/shared/LICENSE +0 -21
- package/lib/vapor/@vue/shared/README.md +0 -3
- package/lib/vapor/@vue/shared/dist/shared.cjs.js +0 -698
- package/lib/vapor/@vue/shared/dist/shared.cjs.prod.js +0 -690
- package/lib/vapor/@vue/shared/dist/shared.esm-bundler.js +0 -616
- package/lib/vapor/@vue/shared/index.js +0 -7
- package/lib/vapor/@vue/shared/package.json +0 -47
- package/lib/vapor/@vue/vue/LICENSE +0 -21
- package/lib/vapor/@vue/vue/README.md +0 -62
- package/lib/vapor/@vue/vue/compiler-sfc/index.browser.js +0 -1
- package/lib/vapor/@vue/vue/compiler-sfc/index.browser.mjs +0 -1
- package/lib/vapor/@vue/vue/compiler-sfc/index.d.mts +0 -1
- package/lib/vapor/@vue/vue/compiler-sfc/index.d.ts +0 -1
- package/lib/vapor/@vue/vue/compiler-sfc/index.js +0 -3
- package/lib/vapor/@vue/vue/compiler-sfc/index.mjs +0 -3
- package/lib/vapor/@vue/vue/compiler-sfc/package.json +0 -4
- package/lib/vapor/@vue/vue/compiler-sfc/register-ts.js +0 -3
- package/lib/vapor/@vue/vue/dist/vue.cjs.js +0 -80
- package/lib/vapor/@vue/vue/dist/vue.cjs.prod.js +0 -66
- package/lib/vapor/@vue/vue/dist/vue.esm-browser.js +0 -18840
- package/lib/vapor/@vue/vue/dist/vue.esm-browser.prod.js +0 -12
- package/lib/vapor/@vue/vue/dist/vue.esm-bundler.js +0 -72
- package/lib/vapor/@vue/vue/dist/vue.global.js +0 -18820
- package/lib/vapor/@vue/vue/dist/vue.global.prod.js +0 -12
- package/lib/vapor/@vue/vue/dist/vue.runtime-with-vapor.esm-browser.js +0 -15648
- package/lib/vapor/@vue/vue/dist/vue.runtime-with-vapor.esm-browser.prod.js +0 -9
- package/lib/vapor/@vue/vue/dist/vue.runtime.esm-browser.js +0 -12953
- package/lib/vapor/@vue/vue/dist/vue.runtime.esm-browser.prod.js +0 -6
- package/lib/vapor/@vue/vue/dist/vue.runtime.esm-bundler.js +0 -29
- package/lib/vapor/@vue/vue/dist/vue.runtime.global.js +0 -13111
- package/lib/vapor/@vue/vue/dist/vue.runtime.global.prod.js +0 -6
- package/lib/vapor/@vue/vue/index.js +0 -7
- package/lib/vapor/@vue/vue/index.mjs +0 -1
- package/lib/vapor/@vue/vue/jsx-runtime/index.d.ts +0 -25
- package/lib/vapor/@vue/vue/jsx-runtime/index.js +0 -15
- package/lib/vapor/@vue/vue/jsx-runtime/index.mjs +0 -12
- package/lib/vapor/@vue/vue/jsx-runtime/package.json +0 -5
- package/lib/vapor/@vue/vue/jsx.d.ts +0 -22
- package/lib/vapor/@vue/vue/package.json +0 -114
- package/lib/vapor/@vue/vue/server-renderer/index.d.mts +0 -1
- package/lib/vapor/@vue/vue/server-renderer/index.d.ts +0 -1
- package/lib/vapor/@vue/vue/server-renderer/index.js +0 -1
- package/lib/vapor/@vue/vue/server-renderer/index.mjs +0 -1
- package/lib/vapor/@vue/vue/server-renderer/package.json +0 -4
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vue/runtime-vapor",
|
|
3
|
-
"version": "3.5.13",
|
|
4
|
-
"description": "@vue/runtime-vapor",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"module": "dist/runtime-vapor.esm-bundler.js",
|
|
7
|
-
"types": "dist/runtime-vapor.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"index.js",
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./dist/runtime-vapor.d.ts",
|
|
15
|
-
"default": "./dist/runtime-vapor.esm-bundler.js"
|
|
16
|
-
},
|
|
17
|
-
"./*": "./*"
|
|
18
|
-
},
|
|
19
|
-
"sideEffects": false,
|
|
20
|
-
"buildOptions": {
|
|
21
|
-
"name": "VueRuntimeVapor",
|
|
22
|
-
"formats": [
|
|
23
|
-
"esm-bundler"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"repository": {
|
|
27
|
-
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/vuejs/core.git",
|
|
29
|
-
"directory": "packages/runtime-vapor"
|
|
30
|
-
},
|
|
31
|
-
"keywords": [
|
|
32
|
-
"vue"
|
|
33
|
-
],
|
|
34
|
-
"author": "Evan You",
|
|
35
|
-
"license": "MIT",
|
|
36
|
-
"bugs": {
|
|
37
|
-
"url": "https://github.com/vuejs/core/issues"
|
|
38
|
-
},
|
|
39
|
-
"homepage": "https://github.com/vuejs/core/tree/dev/packages/runtime-vapor#readme",
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"@vue/shared": "workspace:*",
|
|
42
|
-
"@vue/reactivity": "workspace:*"
|
|
43
|
-
},
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"@vue/runtime-dom": "workspace:*"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018-present, Yuxi (Evan) You
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# @vue/server-renderer
|
|
2
|
-
|
|
3
|
-
**Note: as of 3.2.13+, this package is included as a dependency of the main `vue` package and can be accessed as `vue/server-renderer`. This means you no longer need to explicitly install this package and ensure its version match that of `vue`'s. Just use the `vue/server-renderer` deep import instead.**
|
|
4
|
-
|
|
5
|
-
## Basic API
|
|
6
|
-
|
|
7
|
-
### `renderToString`
|
|
8
|
-
|
|
9
|
-
**Signature**
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
function renderToString(
|
|
13
|
-
input: App | VNode,
|
|
14
|
-
context?: SSRContext,
|
|
15
|
-
): Promise<string>
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
**Usage**
|
|
19
|
-
|
|
20
|
-
```js
|
|
21
|
-
const { createSSRApp } = require('vue')
|
|
22
|
-
const { renderToString } = require('@vue/server-renderer')
|
|
23
|
-
|
|
24
|
-
const app = createSSRApp({
|
|
25
|
-
data: () => ({ msg: 'hello' }),
|
|
26
|
-
template: `<div>{{ msg }}</div>`,
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
;(async () => {
|
|
30
|
-
const html = await renderToString(app)
|
|
31
|
-
console.log(html)
|
|
32
|
-
})()
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Handling Teleports
|
|
36
|
-
|
|
37
|
-
If the rendered app contains teleports, the teleported content will not be part of the rendered string. Instead, they are exposed under the `teleports` property of the ssr context object:
|
|
38
|
-
|
|
39
|
-
```js
|
|
40
|
-
const ctx = {}
|
|
41
|
-
const html = await renderToString(app, ctx)
|
|
42
|
-
|
|
43
|
-
console.log(ctx.teleports) // { '#teleported': 'teleported content' }
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Streaming API
|
|
47
|
-
|
|
48
|
-
### `renderToNodeStream`
|
|
49
|
-
|
|
50
|
-
Renders input as a [Node.js Readable stream](https://nodejs.org/api/stream.html#stream_class_stream_readable).
|
|
51
|
-
|
|
52
|
-
**Signature**
|
|
53
|
-
|
|
54
|
-
```ts
|
|
55
|
-
function renderToNodeStream(input: App | VNode, context?: SSRContext): Readable
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
**Usage**
|
|
59
|
-
|
|
60
|
-
```js
|
|
61
|
-
// inside a Node.js http handler
|
|
62
|
-
renderToNodeStream(app).pipe(res)
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
**Note:** This method is not supported in the ESM build of `@vue/server-renderer`, which is decoupled from Node.js environments. Use `pipeToNodeWritable` instead.
|
|
66
|
-
|
|
67
|
-
### `pipeToNodeWritable`
|
|
68
|
-
|
|
69
|
-
Render and pipe to an existing [Node.js Writable stream](https://nodejs.org/api/stream.html#stream_writable_streams) instance.
|
|
70
|
-
|
|
71
|
-
**Signature**
|
|
72
|
-
|
|
73
|
-
```ts
|
|
74
|
-
function pipeToNodeWritable(
|
|
75
|
-
input: App | VNode,
|
|
76
|
-
context: SSRContext = {},
|
|
77
|
-
writable: Writable,
|
|
78
|
-
): void
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
**Usage**
|
|
82
|
-
|
|
83
|
-
```js
|
|
84
|
-
// inside a Node.js http handler
|
|
85
|
-
pipeToNodeWritable(app, {}, res)
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### `renderToWebStream`
|
|
89
|
-
|
|
90
|
-
Renders input as a [Web ReadableStream](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API).
|
|
91
|
-
|
|
92
|
-
**Signature**
|
|
93
|
-
|
|
94
|
-
```ts
|
|
95
|
-
function renderToWebStream(
|
|
96
|
-
input: App | VNode,
|
|
97
|
-
context?: SSRContext,
|
|
98
|
-
): ReadableStream
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Usage**
|
|
102
|
-
|
|
103
|
-
```js
|
|
104
|
-
// inside an environment with ReadableStream support
|
|
105
|
-
return new Response(renderToWebStream(app))
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**Note:** in environments that do not expose `ReadableStream` constructor in the global scope, `pipeToWebWritable` should be used instead.
|
|
109
|
-
|
|
110
|
-
### `pipeToWebWritable`
|
|
111
|
-
|
|
112
|
-
Render and pipe to an existing [Web WritableStream](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream) instance.
|
|
113
|
-
|
|
114
|
-
**Signature**
|
|
115
|
-
|
|
116
|
-
```ts
|
|
117
|
-
function pipeToWebWritable(
|
|
118
|
-
input: App | VNode,
|
|
119
|
-
context: SSRContext = {},
|
|
120
|
-
writable: WritableStream,
|
|
121
|
-
): void
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
**Usage**
|
|
125
|
-
|
|
126
|
-
This is typically used in combination with [`TransformStream`](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream):
|
|
127
|
-
|
|
128
|
-
```js
|
|
129
|
-
// TransformStream is available in environments such as CloudFlare workers.
|
|
130
|
-
// in Node.js, TransformStream needs to be explicitly imported from 'stream/web'
|
|
131
|
-
const { readable, writable } = new TransformStream()
|
|
132
|
-
pipeToWebWritable(app, {}, writable)
|
|
133
|
-
|
|
134
|
-
return new Response(readable)
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
### `renderToSimpleStream`
|
|
138
|
-
|
|
139
|
-
Renders input in streaming mode using a simple readable interface.
|
|
140
|
-
|
|
141
|
-
**Signature**
|
|
142
|
-
|
|
143
|
-
```ts
|
|
144
|
-
function renderToSimpleStream(
|
|
145
|
-
input: App | VNode,
|
|
146
|
-
context: SSRContext,
|
|
147
|
-
options: SimpleReadable,
|
|
148
|
-
): SimpleReadable
|
|
149
|
-
|
|
150
|
-
interface SimpleReadable {
|
|
151
|
-
push(content: string | null): void
|
|
152
|
-
destroy(err: any): void
|
|
153
|
-
}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
**Usage**
|
|
157
|
-
|
|
158
|
-
```js
|
|
159
|
-
let res = ''
|
|
160
|
-
|
|
161
|
-
renderToSimpleStream(
|
|
162
|
-
app,
|
|
163
|
-
{},
|
|
164
|
-
{
|
|
165
|
-
push(chunk) {
|
|
166
|
-
if (chunk === null) {
|
|
167
|
-
// done
|
|
168
|
-
console(`render complete: ${res}`)
|
|
169
|
-
} else {
|
|
170
|
-
res += chunk
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
destroy(err) {
|
|
174
|
-
// error encountered
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
)
|
|
178
|
-
```
|