@autonomys/auto-drive 1.4.8 → 1.4.9
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.
- package/README.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ To interact with the Auto-Drive API, you'll need to create an API key. Follow th
|
|
|
32
32
|
Here is an example of how to use the `fs.uploadFileFromFilepath` method to upload a file with optional encryption and compression:
|
|
33
33
|
|
|
34
34
|
```typescript
|
|
35
|
-
import { fs,createAutoDriveApi } from '@autonomys/auto-drive'
|
|
35
|
+
import { fs, createAutoDriveApi } from '@autonomys/auto-drive'
|
|
36
36
|
import { NetworkId } from '@autonomys/auto-utils'
|
|
37
37
|
|
|
38
38
|
const api = createAutoDriveApi({ apiKey: 'your-api-key', network: NetworkId.TAURUS }) // Initialize your API instance with API key
|
|
@@ -54,7 +54,7 @@ console.log(`The file is uploaded and its cid is ${cid}`)
|
|
|
54
54
|
### How to upload [File](https://developer.mozilla.org/en-US/docs/Web/API/File) interface
|
|
55
55
|
|
|
56
56
|
```typescript
|
|
57
|
-
import {
|
|
57
|
+
import { createAutoDriveApi } from '@autonomys/auto-drive'
|
|
58
58
|
import { NetworkId } from '@autonomys/auto-utils'
|
|
59
59
|
|
|
60
60
|
const api = createAutoDriveApi({ apiKey: 'your-api-key', network: NetworkId.TAURUS }) // Initialize your API instance with API key
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autonomys/auto-drive",
|
|
3
3
|
"packageManager": "yarn@4.7.0",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"stream": "^0.0.3",
|
|
53
53
|
"zod": "^3.24.2"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "0f722ba0dcbb56511594e88da62bbc8c138ca67e"
|
|
56
56
|
}
|