Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mastashake08 committed Oct 11, 2023
1 parent 926bfea commit 205c4ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ShakeFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class ShakeFile {

// write our file
console.log(this.obj)
await writableStream.write(new Blob([this.obj.value]));
let my_uint8_array = Uint8Array.from(this.obj.value, c => c.charCodeAt(0));
await writableStream.write(new Blob([my_uint8_array], {type: this.data.kind}));

// close the file and write the contents to disk.
await writableStream.close();
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shake-file",
"version": "1.2.2",
"version": "1.2.3",
"description": "Pure Javascript package for using the File System API",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 205c4ec

Please sign in to comment.