@ardrive/turbo-sdk 1.0.0-alpha.1 → 1.0.0-alpha.3
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 +13 -13
- package/bundles/web.bundle.min.js +9 -0
- package/lib/README.md +13 -13
- package/lib/node/index.d.ts +1 -0
- package/lib/node/index.js +1 -0
- package/lib/package.json +4 -5
- package/lib/web/index.d.ts +1 -0
- package/lib/web/index.js +1 -0
- package/package.json +4 -5
package/README.md
CHANGED
@@ -18,7 +18,7 @@ Welcome to the `@ardrive/turbo-sdk`! This SDK provides functionalities for inter
|
|
18
18
|
|
19
19
|
- [Contributions](#contributions)
|
20
20
|
|
21
|
-
|
21
|
+
## Installation
|
22
22
|
|
23
23
|
```shell
|
24
24
|
npm install @ardrive/turbo-sdk
|
@@ -30,13 +30,13 @@ or
|
|
30
30
|
yarn add @ardrive/turbo-sdk
|
31
31
|
```
|
32
32
|
|
33
|
-
|
33
|
+
## Usage
|
34
34
|
|
35
35
|
The SDK is available in both CommonJS and ESM formats and is compatible with bundlers such as Webpack, Rollup, and ESbuild.
|
36
36
|
|
37
|
-
|
37
|
+
### Web
|
38
38
|
|
39
|
-
|
39
|
+
#### Bundlers (Webpack, Rollup, ESbuild, etc.)
|
40
40
|
|
41
41
|
```javascript
|
42
42
|
import { TurboFactory } from '@ardrive/turbo-sdk/web';
|
@@ -45,7 +45,7 @@ const turbo = TurboFactory.unauthenticated({});
|
|
45
45
|
const rates = await turbo.getFiatRates();
|
46
46
|
```
|
47
47
|
|
48
|
-
|
48
|
+
#### Browser
|
49
49
|
|
50
50
|
```html
|
51
51
|
<script src="https://cdn.jsdelivr.net/npm/@ardrive/turbo-sdk"></script>
|
@@ -55,9 +55,9 @@ const rates = await turbo.getFiatRates();
|
|
55
55
|
</script>
|
56
56
|
```
|
57
57
|
|
58
|
-
|
58
|
+
### NodeJS
|
59
59
|
|
60
|
-
|
60
|
+
#### CommonJS
|
61
61
|
|
62
62
|
```javascript
|
63
63
|
const { TurboFactory } = require('@ardrive/turbo-sdk/node');
|
@@ -75,7 +75,7 @@ const turbo = TurboFactory.unauthenticated({});
|
|
75
75
|
const rates = await turbo.getFiatRates();
|
76
76
|
```
|
77
77
|
|
78
|
-
|
78
|
+
### Typescript
|
79
79
|
|
80
80
|
The SDK provides TypeScript typings. When you import the SDK in a TypeScript project:
|
81
81
|
|
@@ -87,14 +87,14 @@ import Ardrive from '@ardrive/turbo-sdk/web';
|
|
87
87
|
|
88
88
|
The provided typings (`./lib/types/index.d.ts`) will be automatically recognized, offering type checking and autocompletion benefits.
|
89
89
|
|
90
|
-
|
90
|
+
## APIs (WIP)
|
91
91
|
|
92
|
-
|
92
|
+
### TurboFactory
|
93
93
|
|
94
94
|
- `public()`
|
95
95
|
- `private()`
|
96
96
|
|
97
|
-
|
97
|
+
### TurboUnauthenticatedClient
|
98
98
|
|
99
99
|
- `getFiatRates()`
|
100
100
|
- `getFiatToAR()`
|
@@ -104,11 +104,11 @@ The provided typings (`./lib/types/index.d.ts`) will be automatically recognized
|
|
104
104
|
- `getUploadCosts()`
|
105
105
|
- `uploadSignedDataItem()`
|
106
106
|
|
107
|
-
|
107
|
+
### TurboAuthenticatedClient
|
108
108
|
|
109
109
|
- `getBalance()`
|
110
110
|
- `uploadFile()`
|
111
111
|
|
112
|
-
|
112
|
+
## Contributions
|
113
113
|
|
114
114
|
If you encounter any issues or have feature requests, please file an issue on our GitHub repository. Contributions, pull requests, and feedback are welcome and encouraged.
|
@@ -55388,6 +55388,15 @@ var TurboFactory = class extends TurboBaseFactory {
|
|
55388
55388
|
});
|
55389
55389
|
}
|
55390
55390
|
};
|
55391
|
+
|
55392
|
+
// src/types/index.ts
|
55393
|
+
init_shim();
|
55394
|
+
|
55395
|
+
// src/types/arweave.ts
|
55396
|
+
init_shim();
|
55397
|
+
|
55398
|
+
// src/types/turbo.ts
|
55399
|
+
init_shim();
|
55391
55400
|
export {
|
55392
55401
|
TurboAuthenticatedClient,
|
55393
55402
|
TurboAuthenticatedPaymentService,
|
package/lib/README.md
CHANGED
@@ -18,7 +18,7 @@ Welcome to the `@ardrive/turbo-sdk`! This SDK provides functionalities for inter
|
|
18
18
|
|
19
19
|
- [Contributions](#contributions)
|
20
20
|
|
21
|
-
|
21
|
+
## Installation
|
22
22
|
|
23
23
|
```shell
|
24
24
|
npm install @ardrive/turbo-sdk
|
@@ -30,13 +30,13 @@ or
|
|
30
30
|
yarn add @ardrive/turbo-sdk
|
31
31
|
```
|
32
32
|
|
33
|
-
|
33
|
+
## Usage
|
34
34
|
|
35
35
|
The SDK is available in both CommonJS and ESM formats and is compatible with bundlers such as Webpack, Rollup, and ESbuild.
|
36
36
|
|
37
|
-
|
37
|
+
### Web
|
38
38
|
|
39
|
-
|
39
|
+
#### Bundlers (Webpack, Rollup, ESbuild, etc.)
|
40
40
|
|
41
41
|
```javascript
|
42
42
|
import { TurboFactory } from '@ardrive/turbo-sdk/web';
|
@@ -45,7 +45,7 @@ const turbo = TurboFactory.unauthenticated({});
|
|
45
45
|
const rates = await turbo.getFiatRates();
|
46
46
|
```
|
47
47
|
|
48
|
-
|
48
|
+
#### Browser
|
49
49
|
|
50
50
|
```html
|
51
51
|
<script src="https://cdn.jsdelivr.net/npm/@ardrive/turbo-sdk"></script>
|
@@ -55,9 +55,9 @@ const rates = await turbo.getFiatRates();
|
|
55
55
|
</script>
|
56
56
|
```
|
57
57
|
|
58
|
-
|
58
|
+
### NodeJS
|
59
59
|
|
60
|
-
|
60
|
+
#### CommonJS
|
61
61
|
|
62
62
|
```javascript
|
63
63
|
const { TurboFactory } = require('@ardrive/turbo-sdk/node');
|
@@ -75,7 +75,7 @@ const turbo = TurboFactory.unauthenticated({});
|
|
75
75
|
const rates = await turbo.getFiatRates();
|
76
76
|
```
|
77
77
|
|
78
|
-
|
78
|
+
### Typescript
|
79
79
|
|
80
80
|
The SDK provides TypeScript typings. When you import the SDK in a TypeScript project:
|
81
81
|
|
@@ -87,14 +87,14 @@ import Ardrive from '@ardrive/turbo-sdk/web';
|
|
87
87
|
|
88
88
|
The provided typings (`./lib/types/index.d.ts`) will be automatically recognized, offering type checking and autocompletion benefits.
|
89
89
|
|
90
|
-
|
90
|
+
## APIs (WIP)
|
91
91
|
|
92
|
-
|
92
|
+
### TurboFactory
|
93
93
|
|
94
94
|
- `public()`
|
95
95
|
- `private()`
|
96
96
|
|
97
|
-
|
97
|
+
### TurboUnauthenticatedClient
|
98
98
|
|
99
99
|
- `getFiatRates()`
|
100
100
|
- `getFiatToAR()`
|
@@ -104,11 +104,11 @@ The provided typings (`./lib/types/index.d.ts`) will be automatically recognized
|
|
104
104
|
- `getUploadCosts()`
|
105
105
|
- `uploadSignedDataItem()`
|
106
106
|
|
107
|
-
|
107
|
+
### TurboAuthenticatedClient
|
108
108
|
|
109
109
|
- `getBalance()`
|
110
110
|
- `uploadFile()`
|
111
111
|
|
112
|
-
|
112
|
+
## Contributions
|
113
113
|
|
114
114
|
If you encounter any issues or have feature requests, please file an issue on our GitHub repository. Contributions, pull requests, and feedback are welcome and encouraged.
|
package/lib/node/index.d.ts
CHANGED
package/lib/node/index.js
CHANGED
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ardrive/turbo-sdk",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "1.0.0-alpha.2",
|
4
4
|
"main": "./lib/node/index.js",
|
5
5
|
"types": "./lib/types/index.d.ts",
|
6
6
|
"type": "module",
|
@@ -23,18 +23,18 @@
|
|
23
23
|
".": {
|
24
24
|
"import": "./lib/node/index.js",
|
25
25
|
"require": "./lib/node/index.js",
|
26
|
-
"types": "./lib/
|
26
|
+
"types": "./lib/node/index.d.ts",
|
27
27
|
"browser": "./bundles/web.bundle.min.js"
|
28
28
|
},
|
29
29
|
"./node": {
|
30
30
|
"import": "./lib/node/index.js",
|
31
31
|
"require": "./lib/node/index.js",
|
32
|
-
"types": "./lib/
|
32
|
+
"types": "./lib/node/index.d.ts"
|
33
33
|
},
|
34
34
|
"./web": {
|
35
35
|
"import": "./lib/web/index.js",
|
36
36
|
"require": "./lib/web/index.js",
|
37
|
-
"types": "./lib/
|
37
|
+
"types": "./lib/web/index.d.ts",
|
38
38
|
"browser": "./bundles/web.bundle.min.js"
|
39
39
|
}
|
40
40
|
},
|
@@ -47,7 +47,6 @@
|
|
47
47
|
"build:esm": "yarn tsc -p tsconfig.node.json && yarn tsc -p tsconfig.web.json && cp package.json README.md LICENSE.md ./lib",
|
48
48
|
"build": "yarn clean && yarn build:web && yarn build:esm",
|
49
49
|
"clean": "rimraf [ lib coverage bundles ]",
|
50
|
-
"postinstall": "husky install",
|
51
50
|
"lint": "eslint src",
|
52
51
|
"lint:fix": "eslint src --fix",
|
53
52
|
"format": "prettier --check .",
|
package/lib/web/index.d.ts
CHANGED
package/lib/web/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ardrive/turbo-sdk",
|
3
|
-
"version": "1.0.0-alpha.
|
3
|
+
"version": "1.0.0-alpha.3",
|
4
4
|
"main": "./lib/node/index.js",
|
5
5
|
"types": "./lib/types/index.d.ts",
|
6
6
|
"type": "module",
|
@@ -23,18 +23,18 @@
|
|
23
23
|
".": {
|
24
24
|
"import": "./lib/node/index.js",
|
25
25
|
"require": "./lib/node/index.js",
|
26
|
-
"types": "./lib/
|
26
|
+
"types": "./lib/node/index.d.ts",
|
27
27
|
"browser": "./bundles/web.bundle.min.js"
|
28
28
|
},
|
29
29
|
"./node": {
|
30
30
|
"import": "./lib/node/index.js",
|
31
31
|
"require": "./lib/node/index.js",
|
32
|
-
"types": "./lib/
|
32
|
+
"types": "./lib/node/index.d.ts"
|
33
33
|
},
|
34
34
|
"./web": {
|
35
35
|
"import": "./lib/web/index.js",
|
36
36
|
"require": "./lib/web/index.js",
|
37
|
-
"types": "./lib/
|
37
|
+
"types": "./lib/web/index.d.ts",
|
38
38
|
"browser": "./bundles/web.bundle.min.js"
|
39
39
|
}
|
40
40
|
},
|
@@ -47,7 +47,6 @@
|
|
47
47
|
"build:esm": "yarn tsc -p tsconfig.node.json && yarn tsc -p tsconfig.web.json && cp package.json README.md LICENSE.md ./lib",
|
48
48
|
"build": "yarn clean && yarn build:web && yarn build:esm",
|
49
49
|
"clean": "rimraf [ lib coverage bundles ]",
|
50
|
-
"postinstall": "husky install",
|
51
50
|
"lint": "eslint src",
|
52
51
|
"lint:fix": "eslint src --fix",
|
53
52
|
"format": "prettier --check .",
|