forked from sveltejs/kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
238 additions
and
72 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// generated during release, do not modify | ||
|
||
/** @type {string} */ | ||
export const VERSION = '1.29.1'; | ||
export const VERSION = '1.30.0'; |
13 changes: 13 additions & 0 deletions
13
packages/kit/test/apps/basics/src/routes/load/fetch-arraybuffer-b64/+page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export async function load({ fetch }) { | ||
const res = await fetch('/load/fetch-arraybuffer-b64/data'); | ||
|
||
const l = await fetch('/load/fetch-arraybuffer-b64/data', { | ||
body: Uint8Array.from(Array(256).fill(0), (_, i) => i), | ||
method: 'POST' | ||
}); | ||
|
||
return { | ||
data: res.arrayBuffer(), | ||
data_long: l.arrayBuffer() | ||
}; | ||
} |
30 changes: 30 additions & 0 deletions
30
packages/kit/test/apps/basics/src/routes/load/fetch-arraybuffer-b64/+page.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script> | ||
export let data; | ||
$: arr = [...new Uint8Array(data.data)]; | ||
let ok = 'Ok'; | ||
$: { | ||
const p = new Uint8Array(data.data_long); | ||
ok = p.length === 256 ? 'Ok' : 'Wrong length'; | ||
if (p.length === 256) { | ||
for (let i = 0; i < p.length; i++) { | ||
if (p[i] !== i) { | ||
ok = `Expected ${i} but got ${p[i]}`; | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<span class="test-content">{JSON.stringify(arr)}</span> | ||
|
||
<br /> | ||
|
||
{ok} | ||
<span style="word-wrap: break-word;"> | ||
{JSON.stringify([...new Uint8Array(data.data_long)])} | ||
</span> |
Oops, something went wrong.