@sveltejs/kit 1.0.0-next.456 → 1.0.0-next.457
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/package.json
CHANGED
|
@@ -190,22 +190,19 @@ export async function respond(request, options, state) {
|
|
|
190
190
|
transformPageChunk: default_transform
|
|
191
191
|
};
|
|
192
192
|
|
|
193
|
-
// TODO match route before calling handle?
|
|
194
|
-
|
|
195
193
|
try {
|
|
196
194
|
const response = await options.hooks.handle({
|
|
197
195
|
event,
|
|
198
196
|
resolve: async (event, opts) => {
|
|
199
197
|
if (opts) {
|
|
200
198
|
// TODO remove for 1.0
|
|
201
|
-
|
|
202
|
-
if (opts.transformPage) {
|
|
199
|
+
if ('transformPage' in opts) {
|
|
203
200
|
throw new Error(
|
|
204
201
|
'transformPage has been replaced by transformPageChunk — see https://github.com/sveltejs/kit/pull/5657 for more information'
|
|
205
202
|
);
|
|
206
203
|
}
|
|
207
|
-
|
|
208
|
-
if (opts
|
|
204
|
+
|
|
205
|
+
if ('ssr' in opts) {
|
|
209
206
|
throw new Error(
|
|
210
207
|
'ssr has been removed, set it in the appropriate +layout.js instead. See the PR for more information: https://github.com/sveltejs/kit/pull/6197'
|
|
211
208
|
);
|