diff --git a/examples/vite/README.md b/examples/vite/README.md index db625795..daec3324 100644 --- a/examples/vite/README.md +++ b/examples/vite/README.md @@ -22,7 +22,7 @@ yarn start ## Polyfills -The `@ar.io/sdk` uses some modern browser features that may not be available in all browsers. To ensure compatibility, you may need to include some polyfills. This example uses the [vite-plugin-node-polyfills] plugin to include the necessary polyfills. +The `@ardrive/turbo-sdk` uses some modern browser features that may not be available in all browsers. To ensure compatibility, you may need to include some polyfills. This example uses the [vite-plugin-node-polyfills] plugin to include the necessary polyfills. The [tsconfig.json](./tsconfig.json) includes the following compiler options: diff --git a/examples/vite/package.json b/examples/vite/package.json index d0004719..10616076 100644 --- a/examples/vite/package.json +++ b/examples/vite/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@ardrive/turbo-sdk": "^1.19.2", + "@ardrive/turbo-sdk": "^1.20.0", "arweave": "^1.15.5", "react": "^18.3.1", "react-dom": "^18.3.1" diff --git a/examples/vite/public/screenshot.png b/examples/vite/public/screenshot.png new file mode 100644 index 00000000..6b598d71 Binary files /dev/null and b/examples/vite/public/screenshot.png differ diff --git a/examples/vite/src/App.tsx b/examples/vite/src/App.tsx index 6262d162..2bd6663b 100644 --- a/examples/vite/src/App.tsx +++ b/examples/vite/src/App.tsx @@ -65,12 +65,10 @@ function App() { try { setUploadStatus('Uploading...'); - console.log(selectedFile); const upload = await turbo.uploadFile({ fileStreamFactory: () => fileToReadableStream(selectedFile), fileSizeFactory: () => selectedFile.size, }); - console.log(upload); setUploadStatus(`Upload successful! ${JSON.stringify(upload, null, 2)}`); } catch (error) { setUploadStatus( @@ -112,11 +110,11 @@ function App() { return (

File Upload with Turbo SDK

+

Provide a JWK

+ {showJwkInput ? ( -
+