@tuwaio/quasar-sdk 0.1.1 → 0.1.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 +3 -4
- package/package.json +14 -8
package/README.md
CHANGED
|
@@ -31,10 +31,10 @@ It operates strictly on the server (Node.js, Next.js Server Actions, or Edge fun
|
|
|
31
31
|
## 💾 Installation
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
pnpm add @tuwaio/quasar-sdk ofetch @tuwaio/pulsar-core
|
|
34
|
+
pnpm add @tuwaio/quasar-sdk ofetch @tuwaio/pulsar-core @tuwaio/siwx-core @tuwaio/siwx-server @tuwaio/siwx-react
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
_Note: `ofetch` and `@tuwaio/pulsar-core` are required
|
|
37
|
+
_Note: `ofetch` and `@tuwaio/pulsar-core` are required peer dependencies. The `@tuwaio/siwx-*` packages are required if you intend to use the headless SIWX (CAIP-122) authentication integrations._
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -43,9 +43,8 @@ _Note: `ofetch` and `@tuwaio/pulsar-core` are required as peer dependencies to e
|
|
|
43
43
|
This is a basic example of how to interact with the Quasar Cloud directly from your secure backend environments (like Next.js API Routes, Server Actions, or NestJS).
|
|
44
44
|
|
|
45
45
|
```typescript
|
|
46
|
-
import { Quasar } from '@tuwaio/quasar-sdk';
|
|
46
|
+
import { Quasar, type Transaction } from '@tuwaio/quasar-sdk';
|
|
47
47
|
import { verifySiwxPayload, type SiwxSession } from '@tuwaio/sdk/siwx/server';
|
|
48
|
-
import type { Transaction } from '@tuwaio/sdk/pulsar';
|
|
49
48
|
|
|
50
49
|
// Initialize Quasar with your Secret Key from the Dashboard
|
|
51
50
|
const quasar = new Quasar({ secretKey: process.env.QUASAR_SDK_SK ?? '' });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/quasar-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -80,9 +80,11 @@
|
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@tuwaio/pulsar-core": "
|
|
84
|
-
"ofetch": "
|
|
85
|
-
"@tuwaio/siwx-react": "
|
|
83
|
+
"@tuwaio/pulsar-core": "^0.6.11",
|
|
84
|
+
"ofetch": "^1.5.1",
|
|
85
|
+
"@tuwaio/siwx-react": "^0.1.0",
|
|
86
|
+
"@tuwaio/siwx-core": "^0.1.0",
|
|
87
|
+
"@tuwaio/siwx-server": "^0.1.0"
|
|
86
88
|
},
|
|
87
89
|
"peerDependenciesMeta": {
|
|
88
90
|
"@tuwaio/pulsar-core": {
|
|
@@ -91,18 +93,22 @@
|
|
|
91
93
|
"ofetch": {
|
|
92
94
|
"optional": false
|
|
93
95
|
},
|
|
96
|
+
"@tuwaio/siwx-core": {
|
|
97
|
+
"optional": true
|
|
98
|
+
},
|
|
99
|
+
"@tuwaio/siwx-server": {
|
|
100
|
+
"optional": true
|
|
101
|
+
},
|
|
94
102
|
"@tuwaio/siwx-react": {
|
|
95
103
|
"optional": true
|
|
96
104
|
}
|
|
97
105
|
},
|
|
98
106
|
"devDependencies": {
|
|
99
|
-
"@tuwaio/pulsar-core": "^0.6.
|
|
107
|
+
"@tuwaio/pulsar-core": "^0.6.12",
|
|
100
108
|
"ofetch": "^1.5.1",
|
|
101
109
|
"tsup": "^8.5.1",
|
|
102
110
|
"typescript": "^6.0.3",
|
|
103
|
-
"@tuwaio/siwx-react": "^0.1.
|
|
104
|
-
},
|
|
105
|
-
"dependencies": {
|
|
111
|
+
"@tuwaio/siwx-react": "^0.1.1",
|
|
106
112
|
"@tuwaio/siwx-core": "^0.1.0",
|
|
107
113
|
"@tuwaio/siwx-server": "^0.1.0"
|
|
108
114
|
},
|