diskio-api 1.2.2 → 1.3.0

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -58,8 +58,8 @@ console.log(response.data.response.diskio.size); // 10737418240
58
58
  ## Upload
59
59
  ```ts
60
60
  const file: File = new File(['Hello world!'], 'hello.txt');
61
- const response = await client.upload([ file ]);
62
- const path = response.data.response[0];
61
+ const { response } = await client.upload([ file ]);
62
+ const path = response[0];
63
63
  ```
64
64
 
65
65
  ## Download
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diskio-api",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "An API Client for diskio-server",
5
5
  "type": "module",
6
6
  "main": "cjs/index.js",