@unicitylabs/sphere-sdk 0.2.3 → 0.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.
- package/README.md +61 -20
- package/dist/core/index.cjs +5764 -3576
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +648 -256
- package/dist/core/index.d.ts +648 -256
- package/dist/core/index.js +5767 -3576
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +2118 -185
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +2118 -185
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/browser/ipfs.cjs +1823 -513
- package/dist/impl/browser/ipfs.cjs.map +1 -1
- package/dist/impl/browser/ipfs.js +1823 -513
- package/dist/impl/browser/ipfs.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +2110 -183
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +86 -23
- package/dist/impl/nodejs/index.d.ts +86 -23
- package/dist/impl/nodejs/index.js +2110 -183
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +5782 -3603
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +719 -105
- package/dist/index.d.ts +719 -105
- package/dist/index.js +5780 -3603
- package/dist/index.js.map +1 -1
- package/package.json +28 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unicitylabs/sphere-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Modular TypeScript SDK for Unicity wallet operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -69,9 +69,10 @@
|
|
|
69
69
|
"test": "vitest",
|
|
70
70
|
"test:run": "vitest run",
|
|
71
71
|
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
72
|
+
"test:relay": "vitest run --config vitest.relay.config.ts",
|
|
72
73
|
"lint": "eslint . --ext .ts",
|
|
73
74
|
"typecheck": "tsc --noEmit",
|
|
74
|
-
"cli": "npx tsx cli.ts"
|
|
75
|
+
"cli": "npx tsx cli/index.ts"
|
|
75
76
|
},
|
|
76
77
|
"keywords": [
|
|
77
78
|
"unicity",
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"dependencies": {
|
|
91
92
|
"@noble/curves": "^1.9.7",
|
|
92
93
|
"@noble/hashes": "^2.0.1",
|
|
93
|
-
"@unicitylabs/nostr-js-sdk": "^0.3.
|
|
94
|
+
"@unicitylabs/nostr-js-sdk": "^0.3.3",
|
|
94
95
|
"@unicitylabs/state-transition-sdk": "1.6.1-rc.f37cb85",
|
|
95
96
|
"bip39": "^3.1.0",
|
|
96
97
|
"buffer": "^6.0.3",
|
|
@@ -100,7 +101,11 @@
|
|
|
100
101
|
"optionalDependencies": {
|
|
101
102
|
"@helia/ipns": "^9.1.3",
|
|
102
103
|
"@helia/json": "^5.0.3",
|
|
103
|
-
"
|
|
104
|
+
"@libp2p/crypto": "^5.1.13",
|
|
105
|
+
"@libp2p/peer-id": "^6.0.4",
|
|
106
|
+
"helia": "^6.0.11",
|
|
107
|
+
"ipns": "^10.0.0",
|
|
108
|
+
"multiformats": "^13.4.2"
|
|
104
109
|
},
|
|
105
110
|
"devDependencies": {
|
|
106
111
|
"@eslint/js": "^9.39.2",
|
|
@@ -117,16 +122,21 @@
|
|
|
117
122
|
"eslint": "^9.39.2",
|
|
118
123
|
"fake-indexeddb": "^6.2.5",
|
|
119
124
|
"multiformats": "^13.4.2",
|
|
125
|
+
"testcontainers": "^11.11.0",
|
|
120
126
|
"tsup": "^8.5.1",
|
|
121
127
|
"typescript": "~5.6.0",
|
|
122
128
|
"typescript-eslint": "^8.54.0",
|
|
123
129
|
"vitest": "^2.0.0"
|
|
124
130
|
},
|
|
125
131
|
"peerDependencies": {
|
|
126
|
-
"ws": ">=8.0.0",
|
|
127
132
|
"@helia/ipns": ">=9.0.0",
|
|
128
133
|
"@helia/json": ">=5.0.0",
|
|
129
|
-
"
|
|
134
|
+
"@libp2p/crypto": ">=5.0.0",
|
|
135
|
+
"@libp2p/peer-id": ">=6.0.0",
|
|
136
|
+
"helia": ">=6.0.0",
|
|
137
|
+
"ipns": ">=10.0.0",
|
|
138
|
+
"multiformats": ">=13.0.0",
|
|
139
|
+
"ws": ">=8.0.0"
|
|
130
140
|
},
|
|
131
141
|
"peerDependenciesMeta": {
|
|
132
142
|
"ws": {
|
|
@@ -138,8 +148,20 @@
|
|
|
138
148
|
"@helia/json": {
|
|
139
149
|
"optional": true
|
|
140
150
|
},
|
|
151
|
+
"@libp2p/crypto": {
|
|
152
|
+
"optional": true
|
|
153
|
+
},
|
|
154
|
+
"@libp2p/peer-id": {
|
|
155
|
+
"optional": true
|
|
156
|
+
},
|
|
141
157
|
"helia": {
|
|
142
158
|
"optional": true
|
|
159
|
+
},
|
|
160
|
+
"ipns": {
|
|
161
|
+
"optional": true
|
|
162
|
+
},
|
|
163
|
+
"multiformats": {
|
|
164
|
+
"optional": true
|
|
143
165
|
}
|
|
144
166
|
},
|
|
145
167
|
"engines": {
|