@hashtree/worker 0.1.1
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/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/capabilities/blossomBandwidthTracker.d.ts +26 -0
- package/dist/capabilities/blossomBandwidthTracker.d.ts.map +1 -0
- package/dist/capabilities/blossomBandwidthTracker.js +53 -0
- package/dist/capabilities/blossomBandwidthTracker.js.map +1 -0
- package/dist/capabilities/blossomTransport.d.ts +22 -0
- package/dist/capabilities/blossomTransport.d.ts.map +1 -0
- package/dist/capabilities/blossomTransport.js +124 -0
- package/dist/capabilities/blossomTransport.js.map +1 -0
- package/dist/capabilities/connectivity.d.ts +3 -0
- package/dist/capabilities/connectivity.d.ts.map +1 -0
- package/dist/capabilities/connectivity.js +49 -0
- package/dist/capabilities/connectivity.js.map +1 -0
- package/dist/capabilities/idbStorage.d.ts +25 -0
- package/dist/capabilities/idbStorage.d.ts.map +1 -0
- package/dist/capabilities/idbStorage.js +73 -0
- package/dist/capabilities/idbStorage.js.map +1 -0
- package/dist/client.d.ts +54 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +336 -0
- package/dist/client.js.map +1 -0
- package/dist/entry.d.ts +2 -0
- package/dist/entry.d.ts.map +1 -0
- package/dist/entry.js +2 -0
- package/dist/entry.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/iris/identity.d.ts +36 -0
- package/dist/iris/identity.d.ts.map +1 -0
- package/dist/iris/identity.js +78 -0
- package/dist/iris/identity.js.map +1 -0
- package/dist/iris/mediaHandler.d.ts +16 -0
- package/dist/iris/mediaHandler.d.ts.map +1 -0
- package/dist/iris/mediaHandler.js +529 -0
- package/dist/iris/mediaHandler.js.map +1 -0
- package/dist/iris/ndk.d.ts +95 -0
- package/dist/iris/ndk.d.ts.map +1 -0
- package/dist/iris/ndk.js +496 -0
- package/dist/iris/ndk.js.map +1 -0
- package/dist/iris/nostr-wasm.d.ts +14 -0
- package/dist/iris/nostr-wasm.d.ts.map +1 -0
- package/dist/iris/nostr-wasm.js +246 -0
- package/dist/iris/nostr-wasm.js.map +1 -0
- package/dist/iris/nostr.d.ts +60 -0
- package/dist/iris/nostr.d.ts.map +1 -0
- package/dist/iris/nostr.js +207 -0
- package/dist/iris/nostr.js.map +1 -0
- package/dist/iris/protocol.d.ts +574 -0
- package/dist/iris/protocol.d.ts.map +1 -0
- package/dist/iris/protocol.js +16 -0
- package/dist/iris/protocol.js.map +1 -0
- package/dist/iris/signing.d.ts +50 -0
- package/dist/iris/signing.d.ts.map +1 -0
- package/dist/iris/signing.js +299 -0
- package/dist/iris/signing.js.map +1 -0
- package/dist/iris/treeRootCache.d.ts +73 -0
- package/dist/iris/treeRootCache.d.ts.map +1 -0
- package/dist/iris/treeRootCache.js +191 -0
- package/dist/iris/treeRootCache.js.map +1 -0
- package/dist/iris/treeRootSubscription.d.ts +49 -0
- package/dist/iris/treeRootSubscription.d.ts.map +1 -0
- package/dist/iris/treeRootSubscription.js +185 -0
- package/dist/iris/treeRootSubscription.js.map +1 -0
- package/dist/iris/utils/constants.d.ts +76 -0
- package/dist/iris/utils/constants.d.ts.map +1 -0
- package/dist/iris/utils/constants.js +113 -0
- package/dist/iris/utils/constants.js.map +1 -0
- package/dist/iris/utils/errorMessage.d.ts +5 -0
- package/dist/iris/utils/errorMessage.d.ts.map +1 -0
- package/dist/iris/utils/errorMessage.js +8 -0
- package/dist/iris/utils/errorMessage.js.map +1 -0
- package/dist/iris/utils/lruCache.d.ts +26 -0
- package/dist/iris/utils/lruCache.d.ts.map +1 -0
- package/dist/iris/utils/lruCache.js +66 -0
- package/dist/iris/utils/lruCache.js.map +1 -0
- package/dist/iris/webrtc.d.ts +2 -0
- package/dist/iris/webrtc.d.ts.map +1 -0
- package/dist/iris/webrtc.js +3 -0
- package/dist/iris/webrtc.js.map +1 -0
- package/dist/iris/webrtcSignaling.d.ts +37 -0
- package/dist/iris/webrtcSignaling.d.ts.map +1 -0
- package/dist/iris/webrtcSignaling.js +86 -0
- package/dist/iris/webrtcSignaling.js.map +1 -0
- package/dist/iris/worker.d.ts +12 -0
- package/dist/iris/worker.d.ts.map +1 -0
- package/dist/iris/worker.js +1582 -0
- package/dist/iris/worker.js.map +1 -0
- package/dist/iris-entry.d.ts +2 -0
- package/dist/iris-entry.d.ts.map +1 -0
- package/dist/iris-entry.js +2 -0
- package/dist/iris-entry.js.map +1 -0
- package/dist/mediaStreaming.d.ts +7 -0
- package/dist/mediaStreaming.d.ts.map +1 -0
- package/dist/mediaStreaming.js +48 -0
- package/dist/mediaStreaming.js.map +1 -0
- package/dist/p2p/boundedQueue.d.ts +74 -0
- package/dist/p2p/boundedQueue.d.ts.map +1 -0
- package/dist/p2p/boundedQueue.js +112 -0
- package/dist/p2p/boundedQueue.js.map +1 -0
- package/dist/p2p/errorMessage.d.ts +5 -0
- package/dist/p2p/errorMessage.d.ts.map +1 -0
- package/dist/p2p/errorMessage.js +7 -0
- package/dist/p2p/errorMessage.js.map +1 -0
- package/dist/p2p/index.d.ts +7 -0
- package/dist/p2p/index.d.ts.map +1 -0
- package/dist/p2p/index.js +5 -0
- package/dist/p2p/index.js.map +1 -0
- package/dist/p2p/lruCache.d.ts +26 -0
- package/dist/p2p/lruCache.d.ts.map +1 -0
- package/dist/p2p/lruCache.js +65 -0
- package/dist/p2p/lruCache.js.map +1 -0
- package/dist/p2p/protocol.d.ts +10 -0
- package/dist/p2p/protocol.d.ts.map +1 -0
- package/dist/p2p/protocol.js +2 -0
- package/dist/p2p/protocol.js.map +1 -0
- package/dist/p2p/queryForwardingMachine.d.ts +46 -0
- package/dist/p2p/queryForwardingMachine.d.ts.map +1 -0
- package/dist/p2p/queryForwardingMachine.js +144 -0
- package/dist/p2p/queryForwardingMachine.js.map +1 -0
- package/dist/p2p/signaling.d.ts +63 -0
- package/dist/p2p/signaling.d.ts.map +1 -0
- package/dist/p2p/signaling.js +165 -0
- package/dist/p2p/signaling.js.map +1 -0
- package/dist/p2p/webrtcController.d.ts +152 -0
- package/dist/p2p/webrtcController.d.ts.map +1 -0
- package/dist/p2p/webrtcController.js +813 -0
- package/dist/p2p/webrtcController.js.map +1 -0
- package/dist/p2p/webrtcProxy.d.ts +55 -0
- package/dist/p2p/webrtcProxy.d.ts.map +1 -0
- package/dist/p2p/webrtcProxy.js +386 -0
- package/dist/p2p/webrtcProxy.js.map +1 -0
- package/dist/privacyGuards.d.ts +14 -0
- package/dist/privacyGuards.d.ts.map +1 -0
- package/dist/privacyGuards.js +27 -0
- package/dist/privacyGuards.js.map +1 -0
- package/dist/protocol.d.ts +171 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +2 -0
- package/dist/protocol.js.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/worker.d.ts +2 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +616 -0
- package/dist/worker.js.map +1 -0
- package/package.json +64 -0
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hashtree/worker",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Modular browser worker for hashtree blob caching and Blossom connectivity",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./p2p": {
|
|
14
|
+
"types": "./dist/p2p/index.d.ts",
|
|
15
|
+
"import": "./dist/p2p/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./entry": {
|
|
18
|
+
"types": "./dist/entry.d.ts",
|
|
19
|
+
"import": "./dist/entry.js"
|
|
20
|
+
},
|
|
21
|
+
"./iris-entry": {
|
|
22
|
+
"types": "./dist/iris-entry.d.ts",
|
|
23
|
+
"import": "./dist/iris-entry.js"
|
|
24
|
+
},
|
|
25
|
+
"./protocol": {
|
|
26
|
+
"types": "./dist/protocol.d.ts",
|
|
27
|
+
"import": "./dist/protocol.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"hashtree",
|
|
38
|
+
"worker",
|
|
39
|
+
"indexeddb",
|
|
40
|
+
"blossom"
|
|
41
|
+
],
|
|
42
|
+
"author": "Martti Malmi",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@msgpack/msgpack": "^3.1.2",
|
|
46
|
+
"dexie": "^4.2.1",
|
|
47
|
+
"nostr-tools": "^2.18.2",
|
|
48
|
+
"@hashtree/core": "0.1.3",
|
|
49
|
+
"ndk-cache": "0.1.1",
|
|
50
|
+
"@hashtree/dexie": "0.1.3",
|
|
51
|
+
"@hashtree/nostr": "0.1.3",
|
|
52
|
+
"ndk": "0.1.1",
|
|
53
|
+
"nostr-social-graph": "1.0.36"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"typescript": "^5.3.0",
|
|
57
|
+
"vitest": "^2.1.9"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsc",
|
|
61
|
+
"test": "vitest run",
|
|
62
|
+
"test:watch": "vitest"
|
|
63
|
+
}
|
|
64
|
+
}
|