@tuwaio/siwx-server 1.0.0-fix-initialize-alpha.14.9e00d3b → 1.0.0-fix-initialize-alpha.15.857a1c1
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 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## 🏛️ Core Capabilities
|
|
11
11
|
|
|
12
12
|
- **`verifySiwxPayload()`**: The primary server entry point. Parses the CAIP-122 message, validates all fields, checks for nonce replay attacks, and dynamically dispatches to the correct chain verifier (`siwx-evm` or `siwx-solana`) based on the CAIP-2 namespace.
|
|
13
13
|
- **`serializeCookieSession()`**: Generates a complete `Set-Cookie` header string with an `HttpOnly` session.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
## Installation
|
|
19
|
+
## 💾 Installation
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
pnpm add @tuwaio/siwx-server @tuwaio/siwx-core
|
|
@@ -26,7 +26,7 @@ pnpm add @tuwaio/siwx-evm @tuwaio/siwx-solana
|
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
|
-
## API
|
|
29
|
+
## 🚀 API & Module Architecture
|
|
30
30
|
|
|
31
31
|
### `createSiwxApiHandler(options?)` (Next.js App Router)
|
|
32
32
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/siwx-server",
|
|
3
|
-
"version": "1.0.0-fix-initialize-alpha.
|
|
3
|
+
"version": "1.0.0-fix-initialize-alpha.15.857a1c1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
-
"description": "Backend utilities for @tuwaio/siwx
|
|
7
|
+
"description": "Layer 2 (L2) of the TUWA Ecosystem. Backend utilities for @tuwaio/siwx. Parses, validates, and verifies CAIP-122 payloads on Node.js or Edge runtimes.",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"module": "./dist/index.mjs",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@tuwaio/siwx-core": "1.0.0-fix-initialize-alpha.
|
|
71
|
+
"@tuwaio/siwx-core": "1.0.0-fix-initialize-alpha.15.857a1c1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"tsup": "^8.5.1",
|
|
75
75
|
"typescript": "^6.0.3",
|
|
76
76
|
"viem": "^2.55.11",
|
|
77
|
-
"@tuwaio/siwx-core": "1.0.0-fix-initialize-alpha.
|
|
78
|
-
"@tuwaio/siwx-evm": "1.0.0-fix-initialize-alpha.
|
|
79
|
-
"@tuwaio/siwx-solana": "1.0.0-fix-initialize-alpha.
|
|
77
|
+
"@tuwaio/siwx-core": "1.0.0-fix-initialize-alpha.15.857a1c1",
|
|
78
|
+
"@tuwaio/siwx-evm": "1.0.0-fix-initialize-alpha.15.857a1c1",
|
|
79
|
+
"@tuwaio/siwx-solana": "1.0.0-fix-initialize-alpha.15.857a1c1"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"start": "tsup src/index.ts --watch",
|