@streamr/dht 103.1.2 → 103.2.0-experiment.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/dist/exports-browser.cjs +7636 -0
- package/dist/exports-browser.cjs.map +1 -0
- package/dist/exports-browser.d.ts +1321 -0
- package/dist/exports-browser.js +7611 -0
- package/dist/exports-browser.js.map +1 -0
- package/dist/exports-nodejs.cjs +7833 -0
- package/dist/exports-nodejs.cjs.map +1 -0
- package/dist/exports-nodejs.d.ts +1321 -0
- package/dist/exports-nodejs.js +7808 -0
- package/dist/exports-nodejs.js.map +1 -0
- package/package.json +41 -25
- package/dist/generated/google/protobuf/any.d.ts +0 -180
- package/dist/generated/google/protobuf/any.js +0 -155
- package/dist/generated/google/protobuf/any.js.map +0 -1
- package/dist/generated/google/protobuf/empty.d.ts +0 -31
- package/dist/generated/google/protobuf/empty.js +0 -45
- package/dist/generated/google/protobuf/empty.js.map +0 -1
- package/dist/generated/google/protobuf/timestamp.d.ts +0 -156
- package/dist/generated/google/protobuf/timestamp.js +0 -136
- package/dist/generated/google/protobuf/timestamp.js.map +0 -1
- package/dist/generated/packages/dht/protos/DhtRpc.client.d.ts +0 -371
- package/dist/generated/packages/dht/protos/DhtRpc.client.js +0 -292
- package/dist/generated/packages/dht/protos/DhtRpc.client.js.map +0 -1
- package/dist/generated/packages/dht/protos/DhtRpc.d.ts +0 -1031
- package/dist/generated/packages/dht/protos/DhtRpc.js +0 -702
- package/dist/generated/packages/dht/protos/DhtRpc.js.map +0 -1
- package/dist/generated/packages/dht/protos/DhtRpc.server.d.ts +0 -168
- package/dist/generated/packages/dht/protos/DhtRpc.server.js +0 -3
- package/dist/generated/packages/dht/protos/DhtRpc.server.js.map +0 -1
- package/dist/generated/packages/proto-rpc/protos/ProtoRpc.d.ts +0 -87
- package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js +0 -66
- package/dist/generated/packages/proto-rpc/protos/ProtoRpc.js.map +0 -1
- package/dist/package.json +0 -61
- package/dist/src/connection/Connection.d.ts +0 -12
- package/dist/src/connection/Connection.js +0 -30
- package/dist/src/connection/Connection.js.map +0 -1
- package/dist/src/connection/ConnectionLockRpcLocal.d.ts +0 -22
- package/dist/src/connection/ConnectionLockRpcLocal.js +0 -54
- package/dist/src/connection/ConnectionLockRpcLocal.js.map +0 -1
- package/dist/src/connection/ConnectionLockRpcRemote.d.ts +0 -10
- package/dist/src/connection/ConnectionLockRpcRemote.js +0 -61
- package/dist/src/connection/ConnectionLockRpcRemote.js.map +0 -1
- package/dist/src/connection/ConnectionLockStates.d.ts +0 -27
- package/dist/src/connection/ConnectionLockStates.js +0 -114
- package/dist/src/connection/ConnectionLockStates.js.map +0 -1
- package/dist/src/connection/ConnectionManager.d.ts +0 -85
- package/dist/src/connection/ConnectionManager.js +0 -569
- package/dist/src/connection/ConnectionManager.js.map +0 -1
- package/dist/src/connection/ConnectionsView.d.ts +0 -7
- package/dist/src/connection/ConnectionsView.js +0 -3
- package/dist/src/connection/ConnectionsView.js.map +0 -1
- package/dist/src/connection/ConnectorFacade.d.ts +0 -58
- package/dist/src/connection/ConnectorFacade.js +0 -154
- package/dist/src/connection/ConnectorFacade.js.map +0 -1
- package/dist/src/connection/Handshaker.d.ts +0 -27
- package/dist/src/connection/Handshaker.js +0 -179
- package/dist/src/connection/Handshaker.js.map +0 -1
- package/dist/src/connection/IConnection.d.ts +0 -32
- package/dist/src/connection/IConnection.js +0 -12
- package/dist/src/connection/IConnection.js.map +0 -1
- package/dist/src/connection/ManagedConnection.d.ts +0 -30
- package/dist/src/connection/ManagedConnection.js +0 -129
- package/dist/src/connection/ManagedConnection.js.map +0 -1
- package/dist/src/connection/OutputBuffer.d.ts +0 -9
- package/dist/src/connection/OutputBuffer.js +0 -26
- package/dist/src/connection/OutputBuffer.js.map +0 -1
- package/dist/src/connection/PendingConnection.d.ts +0 -19
- package/dist/src/connection/PendingConnection.js +0 -59
- package/dist/src/connection/PendingConnection.js.map +0 -1
- package/dist/src/connection/connectivityChecker.d.ts +0 -9
- package/dist/src/connection/connectivityChecker.js +0 -138
- package/dist/src/connection/connectivityChecker.js.map +0 -1
- package/dist/src/connection/connectivityRequestHandler.d.ts +0 -4
- package/dist/src/connection/connectivityRequestHandler.js +0 -108
- package/dist/src/connection/connectivityRequestHandler.js.map +0 -1
- package/dist/src/connection/simulator/Simulator.d.ts +0 -36
- package/dist/src/connection/simulator/Simulator.js +0 -290
- package/dist/src/connection/simulator/Simulator.js.map +0 -1
- package/dist/src/connection/simulator/SimulatorConnection.d.ts +0 -18
- package/dist/src/connection/simulator/SimulatorConnection.js +0 -123
- package/dist/src/connection/simulator/SimulatorConnection.js.map +0 -1
- package/dist/src/connection/simulator/SimulatorConnector.d.ts +0 -16
- package/dist/src/connection/simulator/SimulatorConnector.js +0 -80
- package/dist/src/connection/simulator/SimulatorConnector.js.map +0 -1
- package/dist/src/connection/simulator/SimulatorTransport.d.ts +0 -6
- package/dist/src/connection/simulator/SimulatorTransport.js +0 -17
- package/dist/src/connection/simulator/SimulatorTransport.js.map +0 -1
- package/dist/src/connection/simulator/pings.d.ts +0 -21
- package/dist/src/connection/simulator/pings.js +0 -61
- package/dist/src/connection/simulator/pings.js.map +0 -1
- package/dist/src/connection/webrtc/BrowserWebrtcConnection.d.ts +0 -37
- package/dist/src/connection/webrtc/BrowserWebrtcConnection.js +0 -229
- package/dist/src/connection/webrtc/BrowserWebrtcConnection.js.map +0 -1
- package/dist/src/connection/webrtc/IWebrtcConnection.d.ts +0 -21
- package/dist/src/connection/webrtc/IWebrtcConnection.js +0 -9
- package/dist/src/connection/webrtc/IWebrtcConnection.js.map +0 -1
- package/dist/src/connection/webrtc/NodeWebrtcConnection.d.ts +0 -45
- package/dist/src/connection/webrtc/NodeWebrtcConnection.js +0 -229
- package/dist/src/connection/webrtc/NodeWebrtcConnection.js.map +0 -1
- package/dist/src/connection/webrtc/WebrtcConnector.d.ts +0 -43
- package/dist/src/connection/webrtc/WebrtcConnector.js +0 -208
- package/dist/src/connection/webrtc/WebrtcConnector.js.map +0 -1
- package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.d.ts +0 -26
- package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.js +0 -82
- package/dist/src/connection/webrtc/WebrtcConnectorRpcLocal.js.map +0 -1
- package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.d.ts +0 -8
- package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.js +0 -50
- package/dist/src/connection/webrtc/WebrtcConnectorRpcRemote.js.map +0 -1
- package/dist/src/connection/webrtc/iceServerAsString.d.ts +0 -2
- package/dist/src/connection/webrtc/iceServerAsString.js +0 -17
- package/dist/src/connection/webrtc/iceServerAsString.js.map +0 -1
- package/dist/src/connection/websocket/AbstractWebsocketClientConnection.d.ts +0 -27
- package/dist/src/connection/websocket/AbstractWebsocketClientConnection.js +0 -107
- package/dist/src/connection/websocket/AbstractWebsocketClientConnection.js.map +0 -1
- package/dist/src/connection/websocket/AutoCertifierClientFacade.d.ts +0 -26
- package/dist/src/connection/websocket/AutoCertifierClientFacade.js +0 -39
- package/dist/src/connection/websocket/AutoCertifierClientFacade.js.map +0 -1
- package/dist/src/connection/websocket/BrowserWebsocketClientConnection.d.ts +0 -7
- package/dist/src/connection/websocket/BrowserWebsocketClientConnection.js +0 -44
- package/dist/src/connection/websocket/BrowserWebsocketClientConnection.js.map +0 -1
- package/dist/src/connection/websocket/NodeWebsocketClientConnection.d.ts +0 -7
- package/dist/src/connection/websocket/NodeWebsocketClientConnection.js +0 -39
- package/dist/src/connection/websocket/NodeWebsocketClientConnection.js.map +0 -1
- package/dist/src/connection/websocket/WebsocketClientConnector.d.ts +0 -26
- package/dist/src/connection/websocket/WebsocketClientConnector.js +0 -86
- package/dist/src/connection/websocket/WebsocketClientConnector.js.map +0 -1
- package/dist/src/connection/websocket/WebsocketClientConnectorRpcLocal.d.ts +0 -18
- package/dist/src/connection/websocket/WebsocketClientConnectorRpcLocal.js +0 -23
- package/dist/src/connection/websocket/WebsocketClientConnectorRpcLocal.js.map +0 -1
- package/dist/src/connection/websocket/WebsocketClientConnectorRpcRemote.d.ts +0 -5
- package/dist/src/connection/websocket/WebsocketClientConnectorRpcRemote.js +0 -17
- package/dist/src/connection/websocket/WebsocketClientConnectorRpcRemote.js.map +0 -1
- package/dist/src/connection/websocket/WebsocketServer.d.ts +0 -25
- package/dist/src/connection/websocket/WebsocketServer.js +0 -146
- package/dist/src/connection/websocket/WebsocketServer.js.map +0 -1
- package/dist/src/connection/websocket/WebsocketServerConnection.d.ts +0 -22
- package/dist/src/connection/websocket/WebsocketServerConnection.js +0 -101
- package/dist/src/connection/websocket/WebsocketServerConnection.js.map +0 -1
- package/dist/src/connection/websocket/WebsocketServerConnector.d.ts +0 -44
- package/dist/src/connection/websocket/WebsocketServerConnector.js +0 -279
- package/dist/src/connection/websocket/WebsocketServerConnector.js.map +0 -1
- package/dist/src/dht/DhtNode.d.ts +0 -119
- package/dist/src/dht/DhtNode.js +0 -500
- package/dist/src/dht/DhtNode.js.map +0 -1
- package/dist/src/dht/DhtNodeRpcLocal.d.ts +0 -23
- package/dist/src/dht/DhtNodeRpcLocal.js +0 -54
- package/dist/src/dht/DhtNodeRpcLocal.js.map +0 -1
- package/dist/src/dht/DhtNodeRpcRemote.d.ts +0 -25
- package/dist/src/dht/DhtNodeRpcRemote.js +0 -83
- package/dist/src/dht/DhtNodeRpcRemote.js.map +0 -1
- package/dist/src/dht/ExternalApiRpcLocal.d.ts +0 -18
- package/dist/src/dht/ExternalApiRpcLocal.js +0 -32
- package/dist/src/dht/ExternalApiRpcLocal.js.map +0 -1
- package/dist/src/dht/ExternalApiRpcRemote.d.ts +0 -10
- package/dist/src/dht/ExternalApiRpcRemote.js +0 -58
- package/dist/src/dht/ExternalApiRpcRemote.js.map +0 -1
- package/dist/src/dht/PeerManager.d.ts +0 -63
- package/dist/src/dht/PeerManager.js +0 -251
- package/dist/src/dht/PeerManager.js.map +0 -1
- package/dist/src/dht/contact/Contact.d.ts +0 -8
- package/dist/src/dht/contact/Contact.js +0 -18
- package/dist/src/dht/contact/Contact.js.map +0 -1
- package/dist/src/dht/contact/ContactList.d.ts +0 -19
- package/dist/src/dht/contact/ContactList.js +0 -35
- package/dist/src/dht/contact/ContactList.js.map +0 -1
- package/dist/src/dht/contact/RandomContactList.d.ts +0 -11
- package/dist/src/dht/contact/RandomContactList.js +0 -47
- package/dist/src/dht/contact/RandomContactList.js.map +0 -1
- package/dist/src/dht/contact/RingContactList.d.ts +0 -28
- package/dist/src/dht/contact/RingContactList.js +0 -126
- package/dist/src/dht/contact/RingContactList.js.map +0 -1
- package/dist/src/dht/contact/RpcRemote.d.ts +0 -19
- package/dist/src/dht/contact/RpcRemote.js +0 -61
- package/dist/src/dht/contact/RpcRemote.js.map +0 -1
- package/dist/src/dht/contact/SortedContactList.d.ts +0 -37
- package/dist/src/dht/contact/SortedContactList.js +0 -134
- package/dist/src/dht/contact/SortedContactList.js.map +0 -1
- package/dist/src/dht/contact/getClosestNodes.d.ts +0 -6
- package/dist/src/dht/contact/getClosestNodes.js +0 -19
- package/dist/src/dht/contact/getClosestNodes.js.map +0 -1
- package/dist/src/dht/contact/ringIdentifiers.d.ts +0 -16
- package/dist/src/dht/contact/ringIdentifiers.js +0 -54
- package/dist/src/dht/contact/ringIdentifiers.js.map +0 -1
- package/dist/src/dht/discovery/DiscoverySession.d.ts +0 -29
- package/dist/src/dht/discovery/DiscoverySession.js +0 -102
- package/dist/src/dht/discovery/DiscoverySession.js.map +0 -1
- package/dist/src/dht/discovery/PeerDiscovery.d.ts +0 -42
- package/dist/src/dht/discovery/PeerDiscovery.js +0 -193
- package/dist/src/dht/discovery/PeerDiscovery.js.map +0 -1
- package/dist/src/dht/discovery/RingDiscoverySession.d.ts +0 -28
- package/dist/src/dht/discovery/RingDiscoverySession.js +0 -116
- package/dist/src/dht/discovery/RingDiscoverySession.js.map +0 -1
- package/dist/src/dht/recursive-operation/RecursiveOperationManager.d.ts +0 -38
- package/dist/src/dht/recursive-operation/RecursiveOperationManager.js +0 -165
- package/dist/src/dht/recursive-operation/RecursiveOperationManager.js.map +0 -1
- package/dist/src/dht/recursive-operation/RecursiveOperationRpcLocal.d.ts +0 -14
- package/dist/src/dht/recursive-operation/RecursiveOperationRpcLocal.js +0 -26
- package/dist/src/dht/recursive-operation/RecursiveOperationRpcLocal.js.map +0 -1
- package/dist/src/dht/recursive-operation/RecursiveOperationRpcRemote.d.ts +0 -6
- package/dist/src/dht/recursive-operation/RecursiveOperationRpcRemote.js +0 -44
- package/dist/src/dht/recursive-operation/RecursiveOperationRpcRemote.js.map +0 -1
- package/dist/src/dht/recursive-operation/RecursiveOperationSession.d.ts +0 -45
- package/dist/src/dht/recursive-operation/RecursiveOperationSession.js +0 -185
- package/dist/src/dht/recursive-operation/RecursiveOperationSession.js.map +0 -1
- package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.d.ts +0 -14
- package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.js +0 -20
- package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcLocal.js.map +0 -1
- package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.d.ts +0 -6
- package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.js +0 -21
- package/dist/src/dht/recursive-operation/RecursiveOperationSessionRpcRemote.js.map +0 -1
- package/dist/src/dht/routing/DuplicateDetector.d.ts +0 -10
- package/dist/src/dht/routing/DuplicateDetector.js +0 -31
- package/dist/src/dht/routing/DuplicateDetector.js.map +0 -1
- package/dist/src/dht/routing/Router.d.ts +0 -35
- package/dist/src/dht/routing/Router.js +0 -204
- package/dist/src/dht/routing/Router.js.map +0 -1
- package/dist/src/dht/routing/RouterRpcLocal.d.ts +0 -20
- package/dist/src/dht/routing/RouterRpcLocal.js +0 -67
- package/dist/src/dht/routing/RouterRpcLocal.js.map +0 -1
- package/dist/src/dht/routing/RouterRpcRemote.d.ts +0 -8
- package/dist/src/dht/routing/RouterRpcRemote.js +0 -81
- package/dist/src/dht/routing/RouterRpcRemote.js.map +0 -1
- package/dist/src/dht/routing/RoutingSession.d.ts +0 -56
- package/dist/src/dht/routing/RoutingSession.js +0 -201
- package/dist/src/dht/routing/RoutingSession.js.map +0 -1
- package/dist/src/dht/routing/RoutingTablesCache.d.ts +0 -24
- package/dist/src/dht/routing/RoutingTablesCache.js +0 -46
- package/dist/src/dht/routing/RoutingTablesCache.js.map +0 -1
- package/dist/src/dht/routing/getPreviousPeer.d.ts +0 -2
- package/dist/src/dht/routing/getPreviousPeer.js +0 -12
- package/dist/src/dht/routing/getPreviousPeer.js.map +0 -1
- package/dist/src/dht/store/LocalDataStore.d.ts +0 -14
- package/dist/src/dht/store/LocalDataStore.js +0 -78
- package/dist/src/dht/store/LocalDataStore.js.map +0 -1
- package/dist/src/dht/store/StoreManager.d.ts +0 -32
- package/dist/src/dht/store/StoreManager.js +0 -126
- package/dist/src/dht/store/StoreManager.js.map +0 -1
- package/dist/src/dht/store/StoreRpcLocal.d.ts +0 -21
- package/dist/src/dht/store/StoreRpcLocal.js +0 -65
- package/dist/src/dht/store/StoreRpcLocal.js.map +0 -1
- package/dist/src/dht/store/StoreRpcRemote.d.ts +0 -7
- package/dist/src/dht/store/StoreRpcRemote.js +0 -29
- package/dist/src/dht/store/StoreRpcRemote.js.map +0 -1
- package/dist/src/exports.d.ts +0 -25
- package/dist/src/exports.js +0 -48
- package/dist/src/exports.js.map +0 -1
- package/dist/src/helpers/AddressTools.d.ts +0 -2
- package/dist/src/helpers/AddressTools.js +0 -32
- package/dist/src/helpers/AddressTools.js.map +0 -1
- package/dist/src/helpers/Connectivity.d.ts +0 -4
- package/dist/src/helpers/Connectivity.js +0 -24
- package/dist/src/helpers/Connectivity.js.map +0 -1
- package/dist/src/helpers/browser/isBrowserEnvironment.d.ts +0 -1
- package/dist/src/helpers/browser/isBrowserEnvironment.js +0 -6
- package/dist/src/helpers/browser/isBrowserEnvironment.js.map +0 -1
- package/dist/src/helpers/browser/isBrowserEnvironment_override.d.ts +0 -1
- package/dist/src/helpers/browser/isBrowserEnvironment_override.js +0 -7
- package/dist/src/helpers/browser/isBrowserEnvironment_override.js.map +0 -1
- package/dist/src/helpers/createPeerDescriptor.d.ts +0 -3
- package/dist/src/helpers/createPeerDescriptor.js +0 -58
- package/dist/src/helpers/createPeerDescriptor.js.map +0 -1
- package/dist/src/helpers/createPeerDescriptorSignaturePayload.d.ts +0 -2
- package/dist/src/helpers/createPeerDescriptorSignaturePayload.js +0 -30
- package/dist/src/helpers/createPeerDescriptorSignaturePayload.js.map +0 -1
- package/dist/src/helpers/debugHelpers.d.ts +0 -3
- package/dist/src/helpers/debugHelpers.js +0 -11
- package/dist/src/helpers/debugHelpers.js.map +0 -1
- package/dist/src/helpers/errors.d.ts +0 -72
- package/dist/src/helpers/errors.js +0 -97
- package/dist/src/helpers/errors.js.map +0 -1
- package/dist/src/helpers/offering.d.ts +0 -4
- package/dist/src/helpers/offering.js +0 -18
- package/dist/src/helpers/offering.js.map +0 -1
- package/dist/src/helpers/protoClasses.d.ts +0 -2
- package/dist/src/helpers/protoClasses.js +0 -32
- package/dist/src/helpers/protoClasses.js.map +0 -1
- package/dist/src/helpers/protoToString.d.ts +0 -2
- package/dist/src/helpers/protoToString.js +0 -19
- package/dist/src/helpers/protoToString.js.map +0 -1
- package/dist/src/helpers/version.d.ts +0 -6
- package/dist/src/helpers/version.js +0 -38
- package/dist/src/helpers/version.js.map +0 -1
- package/dist/src/identifiers.d.ts +0 -10
- package/dist/src/identifiers.js +0 -31
- package/dist/src/identifiers.js.map +0 -1
- package/dist/src/rpc-protocol/DhtCallContext.d.ts +0 -12
- package/dist/src/rpc-protocol/DhtCallContext.js +0 -17
- package/dist/src/rpc-protocol/DhtCallContext.js.map +0 -1
- package/dist/src/rpc-protocol/DhtRpcOptions.d.ts +0 -10
- package/dist/src/rpc-protocol/DhtRpcOptions.js +0 -3
- package/dist/src/rpc-protocol/DhtRpcOptions.js.map +0 -1
- package/dist/src/transport/ITransport.d.ts +0 -31
- package/dist/src/transport/ITransport.js +0 -9
- package/dist/src/transport/ITransport.js.map +0 -1
- package/dist/src/transport/ListeningRpcCommunicator.d.ts +0 -11
- package/dist/src/transport/ListeningRpcCommunicator.js +0 -31
- package/dist/src/transport/ListeningRpcCommunicator.js.map +0 -1
- package/dist/src/transport/RoutingRpcCommunicator.d.ts +0 -10
- package/dist/src/transport/RoutingRpcCommunicator.js +0 -60
- package/dist/src/transport/RoutingRpcCommunicator.js.map +0 -1
- package/dist/src/types/ServiceID.d.ts +0 -1
- package/dist/src/types/ServiceID.js +0 -3
- package/dist/src/types/ServiceID.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,36 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamr/dht",
|
|
3
|
-
"version": "103.
|
|
3
|
+
"version": "103.2.0-experiment.0",
|
|
4
4
|
"description": "Streamr Network DHT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/streamr-dev/network.git",
|
|
8
8
|
"directory": "packages/dht"
|
|
9
9
|
},
|
|
10
|
-
"main": "./dist/
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
10
|
+
"main": "./dist/exports-nodejs.cjs",
|
|
11
|
+
"module": "./dist/exports-nodejs.js",
|
|
12
|
+
"types": "./dist/exports-nodejs.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/exports-nodejs.d.ts",
|
|
16
|
+
"browser": {
|
|
17
|
+
"types": "./dist/exports-browser.d.ts",
|
|
18
|
+
"import": "./dist/exports-browser.js",
|
|
19
|
+
"require": "./dist/exports-browser.cjs"
|
|
20
|
+
},
|
|
21
|
+
"import": "./dist/exports-nodejs.js",
|
|
22
|
+
"require": "./dist/exports-nodejs.cjs",
|
|
23
|
+
"default": "./dist/exports-nodejs.js"
|
|
24
|
+
}
|
|
16
25
|
},
|
|
17
|
-
"license": "STREAMR NETWORK OPEN SOURCE LICENSE",
|
|
18
|
-
"author": "Streamr Network AG <contact@streamr.network>",
|
|
19
26
|
"files": [
|
|
20
|
-
"dist",
|
|
27
|
+
"dist/exports-nodejs.*",
|
|
28
|
+
"dist/exports-browser.*",
|
|
21
29
|
"!*.tsbuildinfo",
|
|
22
30
|
"README.md"
|
|
23
31
|
],
|
|
32
|
+
"license": "STREAMR NETWORK OPEN SOURCE LICENSE",
|
|
33
|
+
"author": "Streamr Network AG <contact@streamr.network>",
|
|
24
34
|
"scripts": {
|
|
25
|
-
"prebuild": "./proto.sh",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"clean": "jest --clearCache || true; rm -rf dist *.tsbuildinfo node_modules/.cache || true",
|
|
35
|
+
"prebuild": "npm run reset-self && ./proto.sh",
|
|
36
|
+
"build": "tsc -b",
|
|
37
|
+
"postbuild": "NODE_OPTIONS='--import tsx' rollup -c rollup.config.mts",
|
|
38
|
+
"check": "tsc -b tsconfig.jest.json",
|
|
39
|
+
"reset-self": "rimraf --glob 'dist/**/*.tsbuildinfo'",
|
|
40
|
+
"clean": "jest --clearCache --config '{}' || true; rm -rf dist generated *.tsbuildinfo node_modules/.cache || true",
|
|
31
41
|
"eslint": "eslint --cache --cache-location=node_modules/.cache/.eslintcache/ '*/**/*.{js,ts}'",
|
|
32
42
|
"test": "npm run test-unit && npm run test-integration && npm run test-end-to-end",
|
|
33
|
-
"test-browser": "karma start karma.config.
|
|
43
|
+
"test-browser": "karma start karma.config.ts",
|
|
34
44
|
"test-unit": "jest test/unit",
|
|
35
45
|
"test-integration": "jest --bail test/integration",
|
|
36
46
|
"test-end-to-end": "jest --bail test/end-to-end",
|
|
@@ -40,11 +50,11 @@
|
|
|
40
50
|
"@js-sdsl/ordered-map": "^4.4.2",
|
|
41
51
|
"@protobuf-ts/runtime": "^2.8.2",
|
|
42
52
|
"@protobuf-ts/runtime-rpc": "^2.8.2",
|
|
43
|
-
"@streamr/autocertifier-client": "103.
|
|
44
|
-
"@streamr/cdn-location": "103.
|
|
45
|
-
"@streamr/geoip-location": "103.
|
|
46
|
-
"@streamr/proto-rpc": "103.
|
|
47
|
-
"@streamr/utils": "103.
|
|
53
|
+
"@streamr/autocertifier-client": "103.2.0-experiment.0",
|
|
54
|
+
"@streamr/cdn-location": "103.2.0-experiment.0",
|
|
55
|
+
"@streamr/geoip-location": "103.2.0-experiment.0",
|
|
56
|
+
"@streamr/proto-rpc": "103.2.0-experiment.0",
|
|
57
|
+
"@streamr/utils": "103.2.0-experiment.0",
|
|
48
58
|
"eventemitter3": "^5.0.0",
|
|
49
59
|
"heap": "^0.2.6",
|
|
50
60
|
"ipaddr.js": "^2.0.1",
|
|
@@ -57,17 +67,23 @@
|
|
|
57
67
|
"ws": "^8.18.3"
|
|
58
68
|
},
|
|
59
69
|
"devDependencies": {
|
|
70
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
71
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
72
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
60
73
|
"@streamr/browser-test-runner": "^0.0.1",
|
|
61
|
-
"@streamr/test-utils": "103.
|
|
74
|
+
"@streamr/test-utils": "103.2.0-experiment.0",
|
|
62
75
|
"@types/heap": "^0.2.35",
|
|
63
76
|
"@types/k-bucket": "^5.0.1",
|
|
64
|
-
"@types/lodash": "^4.17.
|
|
77
|
+
"@types/lodash": "^4.17.21",
|
|
65
78
|
"@types/websocket": "^1.0.10",
|
|
66
79
|
"@types/ws": "^8.18.1",
|
|
67
80
|
"jest-leak-detector": "^27.3.1",
|
|
68
81
|
"jest-matcher-utils": "^30.0.5",
|
|
82
|
+
"rimraf": "^6.1.2",
|
|
83
|
+
"rollup": "^4.55.1",
|
|
84
|
+
"rollup-plugin-dts": "^6.3.0",
|
|
69
85
|
"ts-essentials": "^10.1.1",
|
|
70
|
-
"
|
|
86
|
+
"tsx": "^4.21.0"
|
|
71
87
|
},
|
|
72
88
|
"optionalDependencies": {
|
|
73
89
|
"bufferutil": "^4.0.9",
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
4
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { JsonValue } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { IMessageType } from "@protobuf-ts/runtime";
|
|
10
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
11
|
-
/**
|
|
12
|
-
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
13
|
-
* URL that describes the type of the serialized message.
|
|
14
|
-
*
|
|
15
|
-
* Protobuf library provides support to pack/unpack Any values in the form
|
|
16
|
-
* of utility functions or additional generated methods of the Any type.
|
|
17
|
-
*
|
|
18
|
-
* Example 1: Pack and unpack a message in C++.
|
|
19
|
-
*
|
|
20
|
-
* Foo foo = ...;
|
|
21
|
-
* Any any;
|
|
22
|
-
* any.PackFrom(foo);
|
|
23
|
-
* ...
|
|
24
|
-
* if (any.UnpackTo(&foo)) {
|
|
25
|
-
* ...
|
|
26
|
-
* }
|
|
27
|
-
*
|
|
28
|
-
* Example 2: Pack and unpack a message in Java.
|
|
29
|
-
*
|
|
30
|
-
* Foo foo = ...;
|
|
31
|
-
* Any any = Any.pack(foo);
|
|
32
|
-
* ...
|
|
33
|
-
* if (any.is(Foo.class)) {
|
|
34
|
-
* foo = any.unpack(Foo.class);
|
|
35
|
-
* }
|
|
36
|
-
* // or ...
|
|
37
|
-
* if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
|
38
|
-
* foo = any.unpack(Foo.getDefaultInstance());
|
|
39
|
-
* }
|
|
40
|
-
*
|
|
41
|
-
* Example 3: Pack and unpack a message in Python.
|
|
42
|
-
*
|
|
43
|
-
* foo = Foo(...)
|
|
44
|
-
* any = Any()
|
|
45
|
-
* any.Pack(foo)
|
|
46
|
-
* ...
|
|
47
|
-
* if any.Is(Foo.DESCRIPTOR):
|
|
48
|
-
* any.Unpack(foo)
|
|
49
|
-
* ...
|
|
50
|
-
*
|
|
51
|
-
* Example 4: Pack and unpack a message in Go
|
|
52
|
-
*
|
|
53
|
-
* foo := &pb.Foo{...}
|
|
54
|
-
* any, err := anypb.New(foo)
|
|
55
|
-
* if err != nil {
|
|
56
|
-
* ...
|
|
57
|
-
* }
|
|
58
|
-
* ...
|
|
59
|
-
* foo := &pb.Foo{}
|
|
60
|
-
* if err := any.UnmarshalTo(foo); err != nil {
|
|
61
|
-
* ...
|
|
62
|
-
* }
|
|
63
|
-
*
|
|
64
|
-
* The pack methods provided by protobuf library will by default use
|
|
65
|
-
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
66
|
-
* methods only use the fully qualified type name after the last '/'
|
|
67
|
-
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
68
|
-
* name "y.z".
|
|
69
|
-
*
|
|
70
|
-
* JSON
|
|
71
|
-
* ====
|
|
72
|
-
* The JSON representation of an `Any` value uses the regular
|
|
73
|
-
* representation of the deserialized, embedded message, with an
|
|
74
|
-
* additional field `@type` which contains the type URL. Example:
|
|
75
|
-
*
|
|
76
|
-
* package google.profile;
|
|
77
|
-
* message Person {
|
|
78
|
-
* string first_name = 1;
|
|
79
|
-
* string last_name = 2;
|
|
80
|
-
* }
|
|
81
|
-
*
|
|
82
|
-
* {
|
|
83
|
-
* "@type": "type.googleapis.com/google.profile.Person",
|
|
84
|
-
* "firstName": <string>,
|
|
85
|
-
* "lastName": <string>
|
|
86
|
-
* }
|
|
87
|
-
*
|
|
88
|
-
* If the embedded message type is well-known and has a custom JSON
|
|
89
|
-
* representation, that representation will be embedded adding a field
|
|
90
|
-
* `value` which holds the custom JSON in addition to the `@type`
|
|
91
|
-
* field. Example (for message [google.protobuf.Duration][]):
|
|
92
|
-
*
|
|
93
|
-
* {
|
|
94
|
-
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
95
|
-
* "value": "1.212s"
|
|
96
|
-
* }
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* @generated from protobuf message google.protobuf.Any
|
|
100
|
-
*/
|
|
101
|
-
export interface Any {
|
|
102
|
-
/**
|
|
103
|
-
* A URL/resource name that uniquely identifies the type of the serialized
|
|
104
|
-
* protocol buffer message. This string must contain at least
|
|
105
|
-
* one "/" character. The last segment of the URL's path must represent
|
|
106
|
-
* the fully qualified name of the type (as in
|
|
107
|
-
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
108
|
-
* (e.g., leading "." is not accepted).
|
|
109
|
-
*
|
|
110
|
-
* In practice, teams usually precompile into the binary all types that they
|
|
111
|
-
* expect it to use in the context of Any. However, for URLs which use the
|
|
112
|
-
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
113
|
-
* server that maps type URLs to message definitions as follows:
|
|
114
|
-
*
|
|
115
|
-
* * If no scheme is provided, `https` is assumed.
|
|
116
|
-
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
117
|
-
* value in binary format, or produce an error.
|
|
118
|
-
* * Applications are allowed to cache lookup results based on the
|
|
119
|
-
* URL, or have them precompiled into a binary to avoid any
|
|
120
|
-
* lookup. Therefore, binary compatibility needs to be preserved
|
|
121
|
-
* on changes to types. (Use versioned type names to manage
|
|
122
|
-
* breaking changes.)
|
|
123
|
-
*
|
|
124
|
-
* Note: this functionality is not currently available in the official
|
|
125
|
-
* protobuf release, and it is not used for type URLs beginning with
|
|
126
|
-
* type.googleapis.com. As of May 2023, there are no widely used type server
|
|
127
|
-
* implementations and no plans to implement one.
|
|
128
|
-
*
|
|
129
|
-
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
130
|
-
* used with implementation specific semantics.
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* @generated from protobuf field: string type_url = 1
|
|
134
|
-
*/
|
|
135
|
-
typeUrl: string;
|
|
136
|
-
/**
|
|
137
|
-
* Must be a valid serialized protocol buffer of the above specified type.
|
|
138
|
-
*
|
|
139
|
-
* @generated from protobuf field: bytes value = 2
|
|
140
|
-
*/
|
|
141
|
-
value: Uint8Array;
|
|
142
|
-
}
|
|
143
|
-
declare class Any$Type extends MessageType<Any> {
|
|
144
|
-
constructor();
|
|
145
|
-
/**
|
|
146
|
-
* Pack the message into a new `Any`.
|
|
147
|
-
*
|
|
148
|
-
* Uses 'type.googleapis.com/full.type.name' as the type URL.
|
|
149
|
-
*/
|
|
150
|
-
pack<T extends object>(message: T, type: IMessageType<T>): Any;
|
|
151
|
-
/**
|
|
152
|
-
* Unpack the message from the `Any`.
|
|
153
|
-
*/
|
|
154
|
-
unpack<T extends object>(any: Any, type: IMessageType<T>, options?: Partial<BinaryReadOptions>): T;
|
|
155
|
-
/**
|
|
156
|
-
* Does the given `Any` contain a packed message of the given type?
|
|
157
|
-
*/
|
|
158
|
-
contains(any: Any, type: IMessageType<any> | string): boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Convert the message to canonical JSON value.
|
|
161
|
-
*
|
|
162
|
-
* You have to provide the `typeRegistry` option so that the
|
|
163
|
-
* packed message can be converted to JSON.
|
|
164
|
-
*
|
|
165
|
-
* The `typeRegistry` option is also required to read
|
|
166
|
-
* `google.protobuf.Any` from JSON format.
|
|
167
|
-
*/
|
|
168
|
-
internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue;
|
|
169
|
-
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any;
|
|
170
|
-
typeNameToUrl(name: string): string;
|
|
171
|
-
typeUrlToName(url: string): string;
|
|
172
|
-
create(value?: PartialMessage<Any>): Any;
|
|
173
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Any): Any;
|
|
174
|
-
internalBinaryWrite(message: Any, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* @generated MessageType for protobuf message google.protobuf.Any
|
|
178
|
-
*/
|
|
179
|
-
export declare const Any: Any$Type;
|
|
180
|
-
export {};
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Any = void 0;
|
|
4
|
-
const runtime_1 = require("@protobuf-ts/runtime");
|
|
5
|
-
const runtime_2 = require("@protobuf-ts/runtime");
|
|
6
|
-
const runtime_3 = require("@protobuf-ts/runtime");
|
|
7
|
-
const runtime_4 = require("@protobuf-ts/runtime");
|
|
8
|
-
const runtime_5 = require("@protobuf-ts/runtime");
|
|
9
|
-
const runtime_6 = require("@protobuf-ts/runtime");
|
|
10
|
-
const runtime_7 = require("@protobuf-ts/runtime");
|
|
11
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
12
|
-
class Any$Type extends runtime_7.MessageType {
|
|
13
|
-
constructor() {
|
|
14
|
-
super("google.protobuf.Any", [
|
|
15
|
-
{ no: 1, name: "type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
16
|
-
{ no: 2, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
17
|
-
]);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Pack the message into a new `Any`.
|
|
21
|
-
*
|
|
22
|
-
* Uses 'type.googleapis.com/full.type.name' as the type URL.
|
|
23
|
-
*/
|
|
24
|
-
pack(message, type) {
|
|
25
|
-
return {
|
|
26
|
-
typeUrl: this.typeNameToUrl(type.typeName), value: type.toBinary(message),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Unpack the message from the `Any`.
|
|
31
|
-
*/
|
|
32
|
-
unpack(any, type, options) {
|
|
33
|
-
if (!this.contains(any, type))
|
|
34
|
-
throw new Error("Cannot unpack google.protobuf.Any with typeUrl '" + any.typeUrl + "' as " + type.typeName + ".");
|
|
35
|
-
return type.fromBinary(any.value, options);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Does the given `Any` contain a packed message of the given type?
|
|
39
|
-
*/
|
|
40
|
-
contains(any, type) {
|
|
41
|
-
if (!any.typeUrl.length)
|
|
42
|
-
return false;
|
|
43
|
-
let wants = typeof type == "string" ? type : type.typeName;
|
|
44
|
-
let has = this.typeUrlToName(any.typeUrl);
|
|
45
|
-
return wants === has;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Convert the message to canonical JSON value.
|
|
49
|
-
*
|
|
50
|
-
* You have to provide the `typeRegistry` option so that the
|
|
51
|
-
* packed message can be converted to JSON.
|
|
52
|
-
*
|
|
53
|
-
* The `typeRegistry` option is also required to read
|
|
54
|
-
* `google.protobuf.Any` from JSON format.
|
|
55
|
-
*/
|
|
56
|
-
internalJsonWrite(any, options) {
|
|
57
|
-
if (any.typeUrl === "")
|
|
58
|
-
return {};
|
|
59
|
-
let typeName = this.typeUrlToName(any.typeUrl);
|
|
60
|
-
let opt = (0, runtime_6.jsonWriteOptions)(options);
|
|
61
|
-
let type = opt.typeRegistry?.find(t => t.typeName === typeName);
|
|
62
|
-
if (!type)
|
|
63
|
-
throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.typeUrl + "' to JSON. The specified type " + typeName + " is not available in the type registry.");
|
|
64
|
-
let value = type.fromBinary(any.value, { readUnknownField: false });
|
|
65
|
-
let json = type.internalJsonWrite(value, opt);
|
|
66
|
-
if (typeName.startsWith("google.protobuf.") || !(0, runtime_4.isJsonObject)(json))
|
|
67
|
-
json = { value: json };
|
|
68
|
-
json["@type"] = any.typeUrl;
|
|
69
|
-
return json;
|
|
70
|
-
}
|
|
71
|
-
internalJsonRead(json, options, target) {
|
|
72
|
-
if (!(0, runtime_4.isJsonObject)(json))
|
|
73
|
-
throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON " + (0, runtime_5.typeofJsonValue)(json) + ".");
|
|
74
|
-
if (typeof json["@type"] != "string" || json["@type"] == "")
|
|
75
|
-
return this.create();
|
|
76
|
-
let typeName = this.typeUrlToName(json["@type"]);
|
|
77
|
-
let type = options?.typeRegistry?.find(t => t.typeName == typeName);
|
|
78
|
-
if (!type)
|
|
79
|
-
throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON. The specified type " + typeName + " is not available in the type registry.");
|
|
80
|
-
let value;
|
|
81
|
-
if (typeName.startsWith("google.protobuf.") && json.hasOwnProperty("value"))
|
|
82
|
-
value = type.fromJson(json["value"], options);
|
|
83
|
-
else {
|
|
84
|
-
let copy = Object.assign({}, json);
|
|
85
|
-
delete copy["@type"];
|
|
86
|
-
value = type.fromJson(copy, options);
|
|
87
|
-
}
|
|
88
|
-
if (target === undefined)
|
|
89
|
-
target = this.create();
|
|
90
|
-
target.typeUrl = json["@type"];
|
|
91
|
-
target.value = type.toBinary(value);
|
|
92
|
-
return target;
|
|
93
|
-
}
|
|
94
|
-
typeNameToUrl(name) {
|
|
95
|
-
if (!name.length)
|
|
96
|
-
throw new Error("invalid type name: " + name);
|
|
97
|
-
return "type.googleapis.com/" + name;
|
|
98
|
-
}
|
|
99
|
-
typeUrlToName(url) {
|
|
100
|
-
if (!url.length)
|
|
101
|
-
throw new Error("invalid type url: " + url);
|
|
102
|
-
let slash = url.lastIndexOf("/");
|
|
103
|
-
let name = slash > 0 ? url.substring(slash + 1) : url;
|
|
104
|
-
if (!name.length)
|
|
105
|
-
throw new Error("invalid type url: " + url);
|
|
106
|
-
return name;
|
|
107
|
-
}
|
|
108
|
-
create(value) {
|
|
109
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
110
|
-
message.typeUrl = "";
|
|
111
|
-
message.value = new Uint8Array(0);
|
|
112
|
-
if (value !== undefined)
|
|
113
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
114
|
-
return message;
|
|
115
|
-
}
|
|
116
|
-
internalBinaryRead(reader, length, options, target) {
|
|
117
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
118
|
-
while (reader.pos < end) {
|
|
119
|
-
let [fieldNo, wireType] = reader.tag();
|
|
120
|
-
switch (fieldNo) {
|
|
121
|
-
case /* string type_url */ 1:
|
|
122
|
-
message.typeUrl = reader.string();
|
|
123
|
-
break;
|
|
124
|
-
case /* bytes value */ 2:
|
|
125
|
-
message.value = reader.bytes();
|
|
126
|
-
break;
|
|
127
|
-
default:
|
|
128
|
-
let u = options.readUnknownField;
|
|
129
|
-
if (u === "throw")
|
|
130
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
131
|
-
let d = reader.skip(wireType);
|
|
132
|
-
if (u !== false)
|
|
133
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return message;
|
|
137
|
-
}
|
|
138
|
-
internalBinaryWrite(message, writer, options) {
|
|
139
|
-
/* string type_url = 1; */
|
|
140
|
-
if (message.typeUrl !== "")
|
|
141
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.typeUrl);
|
|
142
|
-
/* bytes value = 2; */
|
|
143
|
-
if (message.value.length)
|
|
144
|
-
writer.tag(2, runtime_1.WireType.LengthDelimited).bytes(message.value);
|
|
145
|
-
let u = options.writeUnknownFields;
|
|
146
|
-
if (u !== false)
|
|
147
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
148
|
-
return writer;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* @generated MessageType for protobuf message google.protobuf.Any
|
|
153
|
-
*/
|
|
154
|
-
exports.Any = new Any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BAAQ,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACpE,sBAAsB;QACtB,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM;YACpB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,kBAAQ,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjE,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,6BAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACU,QAAA,GAAG,GAAG,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
-
/**
|
|
8
|
-
* A generic empty message that you can re-use to avoid defining duplicated
|
|
9
|
-
* empty messages in your APIs. A typical example is to use it as the request
|
|
10
|
-
* or the response type of an API method. For instance:
|
|
11
|
-
*
|
|
12
|
-
* service Foo {
|
|
13
|
-
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
14
|
-
* }
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @generated from protobuf message google.protobuf.Empty
|
|
18
|
-
*/
|
|
19
|
-
export interface Empty {
|
|
20
|
-
}
|
|
21
|
-
declare class Empty$Type extends MessageType<Empty> {
|
|
22
|
-
constructor();
|
|
23
|
-
create(value?: PartialMessage<Empty>): Empty;
|
|
24
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Empty): Empty;
|
|
25
|
-
internalBinaryWrite(message: Empty, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @generated MessageType for protobuf message google.protobuf.Empty
|
|
29
|
-
*/
|
|
30
|
-
export declare const Empty: Empty$Type;
|
|
31
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Empty = void 0;
|
|
4
|
-
const runtime_1 = require("@protobuf-ts/runtime");
|
|
5
|
-
const runtime_2 = require("@protobuf-ts/runtime");
|
|
6
|
-
const runtime_3 = require("@protobuf-ts/runtime");
|
|
7
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
8
|
-
class Empty$Type extends runtime_3.MessageType {
|
|
9
|
-
constructor() {
|
|
10
|
-
super("google.protobuf.Empty", []);
|
|
11
|
-
}
|
|
12
|
-
create(value) {
|
|
13
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
14
|
-
if (value !== undefined)
|
|
15
|
-
(0, runtime_2.reflectionMergePartial)(this, message, value);
|
|
16
|
-
return message;
|
|
17
|
-
}
|
|
18
|
-
internalBinaryRead(reader, length, options, target) {
|
|
19
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
20
|
-
while (reader.pos < end) {
|
|
21
|
-
let [fieldNo, wireType] = reader.tag();
|
|
22
|
-
switch (fieldNo) {
|
|
23
|
-
default:
|
|
24
|
-
let u = options.readUnknownField;
|
|
25
|
-
if (u === "throw")
|
|
26
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
27
|
-
let d = reader.skip(wireType);
|
|
28
|
-
if (u !== false)
|
|
29
|
-
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return message;
|
|
33
|
-
}
|
|
34
|
-
internalBinaryWrite(message, writer, options) {
|
|
35
|
-
let u = options.writeUnknownFields;
|
|
36
|
-
if (u !== false)
|
|
37
|
-
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
38
|
-
return writer;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @generated MessageType for protobuf message google.protobuf.Empty
|
|
43
|
-
*/
|
|
44
|
-
exports.Empty = new Empty$Type();
|
|
45
|
-
//# sourceMappingURL=empty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../generated/google/protobuf/empty.ts"],"names":[],"mappings":";;;AAsCA,kDAA2D;AAE3D,kDAA8D;AAC9D,kDAAmD;AAenD,2FAA2F;AAC3F,MAAM,UAAW,SAAQ,qBAAkB;IACvC;QACI,KAAK,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IACD,MAAM,CAAC,KAA6B;QAChC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAiB,CAAC,CAAC,CAAC;QACnE,IAAI,KAAK,KAAK,SAAS;YACnB,IAAA,gCAAsB,EAAQ,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACxD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,kBAAkB,CAAC,MAAqB,EAAE,MAAc,EAAE,OAA0B,EAAE,MAAc;QAChG,IAAI,OAAO,GAAG,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QACjE,OAAO,MAA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