@sveltejs/kit 1.0.0-next.280 → 1.0.0-next.281

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.
@@ -1326,7 +1326,7 @@ async function render_response({
1326
1326
  const assets =
1327
1327
  options.paths.assets || (segments.length > 0 ? segments.map(() => '..').join('/') : '.');
1328
1328
 
1329
- const html = resolve_opts.transformPage({
1329
+ const html = await resolve_opts.transformPage({
1330
1330
  html: options.template({ head, body, assets, nonce: /** @type {string} */ (csp.nonce) })
1331
1331
  });
1332
1332
 
package/dist/cli.js CHANGED
@@ -998,7 +998,7 @@ async function launch(port, https) {
998
998
  exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
999
999
  }
1000
1000
 
1001
- const prog = sade('svelte-kit').version('1.0.0-next.280');
1001
+ const prog = sade('svelte-kit').version('1.0.0-next.281');
1002
1002
 
1003
1003
  prog
1004
1004
  .command('dev')
@@ -1156,7 +1156,7 @@ async function check_port(port) {
1156
1156
  function welcome({ port, host, https, open, loose, allow, cwd }) {
1157
1157
  if (open) launch(port, https);
1158
1158
 
1159
- console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.280'}\n`));
1159
+ console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.281'}\n`));
1160
1160
 
1161
1161
  const protocol = https ? 'https:' : 'http:';
1162
1162
  const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.0.0-next.280",
3
+ "version": "1.0.0-next.281",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -206,7 +206,7 @@ export type RecursiveRequired<T> = {
206
206
 
207
207
  export interface RequiredResolveOptions {
208
208
  ssr: boolean;
209
- transformPage: ({ html }: { html: string }) => string;
209
+ transformPage: ({ html }: { html: string }) => MaybePromise<string>;
210
210
  }
211
211
 
212
212
  export interface Respond {