Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ar-nelson/osmosis-js
/ functions
Functions
290 in github.com/ar-nelson/osmosis-js
⨍
Functions
290
◇
Types & classes
126
↓ 65 callers
Function
compileJsonPath
( path: JsonPath, vars: Vars = {} )
osmosis-store-js/src/jsonpath.ts:873
↓ 62 callers
Method
on
( event: U, listener: PeerFinderEvents[U] )
osmosis-net-js/src/peer-finder.ts:87
↓ 53 callers
Method
set
(key: K, value: V)
osmosis-store-js/src/sorted-array-map.ts:18
↓ 50 callers
Function
Key
(query: string)
osmosis-store-js/test/mock-constructors.ts:6
↓ 41 callers
Function
binaryPathToArray
(path: BinaryPath)
osmosis-store-js/src/binary-path.ts:108
↓ 40 callers
Function
binaryPathAppend
( path: BinaryPath, index: number | string )
osmosis-store-js/src/binary-path.ts:112
↓ 39 callers
Method
getByPath
(path: BinaryPath)
osmosis-store-js/src/json-source.ts:24
↓ 38 callers
Method
dispatch
( action: Action, returnFailures = false )
osmosis-js/src/osmosis.ts:510
↓ 37 callers
Function
Put
(path: AbsolutePathArray, value: Json)
osmosis-store-js/test/mock-constructors.ts:14
↓ 37 callers
Method
get
(key: K)
osmosis-store-js/src/sorted-array-map.ts:8
↓ 33 callers
Function
pathArrayToBinary
(path: PathArray)
osmosis-store-js/src/binary-path.ts:51
↓ 31 callers
Method
emit
( event: U, ...args: Parameters<PeerFinderEvents[U]> )
osmosis-net-js/src/peer-finder.ts:92
↓ 24 callers
Method
error
(err: Error)
osmosis-net-js/src/rpc-sockets.ts:56
↓ 22 callers
Function
expectPath
(path: PathArray, value: JsonNode, ...ids: Id[])
osmosis-store-js/test/save-state.spec.ts:43
↓ 21 callers
Method
dispatch
( action: JsonPathAction )
osmosis-store-js/src/store.ts:43
↓ 21 callers
Function
scalarActionToChanges
( action: ScalarAction<CompiledJsonPath | CompiledJsonIdPath>, source: JsonSource )
osmosis-store-js/src/actions.ts:144
↓ 19 callers
Method
close
()
osmosis-net-js/src/rpc-sockets.ts:55
↓ 19 callers
Function
expectNumber
( op: string, json: Promise<TaggedNode> )
osmosis-store-js/src/jsonpath.ts:178
↓ 17 callers
Method
callMethod
( method: string, params: Structural = {}, notification = false, timeout: number = this.server
osmosis-net-js/src/rpc-sockets.ts:297
↓ 17 callers
Method
delete
(key: K)
osmosis-store-js/src/sorted-array-map.ts:34
↓ 16 callers
Function
idIndex
( id: Id, ops: readonly CausalTree[], expectMatch = false )
osmosis-store-js/src/id.ts:28
↓ 15 callers
Function
Index
(query: number)
osmosis-store-js/test/mock-constructors.ts:10
↓ 14 callers
Method
queryOnce
(query: JsonPath, vars?: Vars)
osmosis-store-js/src/queryable.ts:13
↓ 12 callers
Function
idCompare
(id1: Id, id2: Id)
osmosis-store-js/src/id.ts:22
↓ 11 callers
Method
clear
()
osmosis-js/src/async-queue-map.ts:63
↓ 11 callers
Method
keys
()
osmosis-store-js/src/sorted-array-map.ts:48
↓ 10 callers
Method
connect
( port: number, address: string, publicKey?: Buffer )
osmosis-net-js/src/rpc-sockets.ts:100
↓ 10 callers
Function
expectRoot
(...keys: string[])
osmosis-store-js/test/save-state.spec.ts:31
↓ 10 callers
Method
send
(message: Uint8Array)
osmosis-net-js/src/encrypted-socket.ts:257
↓ 10 callers
Method
take
(key: K, timeoutMs = 1000)
osmosis-js/src/async-queue-map.ts:9
↓ 9 callers
Function
binaryPathSplit
( path: BinaryPath )
osmosis-store-js/src/binary-path.ts:119
↓ 9 callers
Method
entries
()
osmosis-store-js/src/sorted-array-map.ts:60
↓ 9 callers
Function
queryPaths
( jsonPath: CompiledJsonPath | CompiledJsonIdPath, source: JsonSource, rootPath: BinaryPath = EMPTY_PATH
osmosis-store-js/src/jsonpath.ts:589
↓ 9 callers
Function
testInMultipleOrders
( name: string, ops: Op[], expectedChanges: Change[][], finalTests: () => Promise<void> = asyn
osmosis-store-js/test/save-state.spec.ts:75
↓ 8 callers
Method
setByPath
(path: BinaryPath, value: JsonNode, id?: Id)
osmosis-store-js/src/json-source.ts:34
↓ 8 callers
Method
startAsyncTest
(done: (err?: any) => void)
osmosis-net-js/test/socket-test-helper.ts:79
↓ 7 callers
Method
getIdsByPath
(path: BinaryPath)
osmosis-store-js/src/json-source.ts:27
↓ 7 callers
Function
isArray
( node: JsonNode | undefined )
osmosis-store-js/src/jsonpath.ts:304
↓ 7 callers
Function
jsonPathToString
( path: CompiledJsonIdPath | CompiledJsonPath )
osmosis-store-js/src/jsonpath.ts:932
↓ 7 callers
Function
pair
()
osmosis-js/test/osmosis.spec.ts:29
↓ 7 callers
Function
queryValues
( jsonPath: CompiledJsonPath, source: JsonSource, rootPath: BinaryPath = EMPTY_PATH )
osmosis-store-js/src/jsonpath.ts:645
↓ 6 callers
Function
generateConfig
( appId: string = uuid.v4(), peerName: string = hostname() )
osmosis-net-js/src/peer-config.ts:57
↓ 6 callers
Method
insert
( ops: Op[] )
osmosis-store-js/src/in-memory-save-state.ts:144
↓ 6 callers
Function
nextStateHash
(lastStateHash: Uint8Array, id: Id)
osmosis-store-js/src/id.ts:52
↓ 6 callers
Method
opsRange
(earliestId: Id | null, latestId: Id | null)
osmosis-store-js/src/store.ts:130
↓ 6 callers
Function
queryBothUntil
( path: string, predicate: (json: Json[]) => boolean )
osmosis-js/test/osmosis.spec.ts:59
↓ 6 callers
Function
sortedIndex
( array: T[], value: V, compare: (a: V, b: V) => number, extract: (x: T) => V = (x) => (x as unknown)
osmosis-store-js/src/utils.ts:41
↓ 6 callers
Method
write
(value: T)
osmosis-store-js/src/flat-files-save-state.ts:70
↓ 5 callers
Function
Move
(from: AbsolutePathArray, to: AbsolutePathArray)
osmosis-store-js/test/mock-constructors.ts:26
↓ 5 callers
Method
exportPeer
(peer: VisiblePeer)
osmosis-net-js/src/osmosis-connection.ts:739
↓ 5 callers
Function
fillNulls
( changes: Change[], path: BinaryPath, source: JsonSource )
osmosis-store-js/src/actions.ts:83
↓ 5 callers
Method
getPathById
(id: Id)
osmosis-store-js/src/json-source.ts:26
↓ 5 callers
Function
isObject
( node: JsonNode | undefined )
osmosis-store-js/src/jsonpath.ts:310
↓ 5 callers
Method
mergeOps
( ops: readonly Op[] )
osmosis-store-js/src/store.ts:69
↓ 5 callers
Function
nth
(n)
osmosis-store-js/src/jsonpath.grammar.ts:11
↓ 5 callers
Function
sourceToJson
( source: JsonSource, root: BinaryPath = EMPTY_PATH )
osmosis-store-js/src/json-source.ts:85
↓ 5 callers
Method
subscribe
( query: JsonPath, vars: Vars, callback: (json: Json) => void )
osmosis-store-js/src/queryable.ts:5
↓ 5 callers
Method
values
()
osmosis-store-js/src/sorted-array-map.ts:54
↓ 4 callers
Function
Touch
(path: AbsolutePathArray)
osmosis-store-js/test/mock-constructors.ts:22
↓ 4 callers
Function
adjustIndex
(index: number, array: { length: number })
osmosis-store-js/src/jsonpath.ts:294
↓ 4 callers
Method
applyOp
( op: Op )
osmosis-store-js/src/in-memory-save-state.ts:179
↓ 4 callers
Function
getTaggedNode
( source: JsonSource, path: BinaryPath )
osmosis-store-js/src/jsonpath.ts:162
↓ 4 callers
Function
idIndexAfter
(id: Id, ops: readonly CausalTree[])
osmosis-store-js/src/in-memory-save-state.ts:22
↓ 4 callers
Function
idToString
({ author, index }: Id)
osmosis-store-js/src/id.ts:18
↓ 4 callers
Method
makeServer
()
osmosis-net-js/test/socket-test-helper.ts:83
↓ 4 callers
Method
makeSocket
()
osmosis-net-js/test/socket-test-helper.ts:90
↓ 4 callers
Method
onBadMessage
( why: 'encryption' | 'compression' | 'compressed' | 'size', err: Error )
osmosis-net-js/src/encrypted-socket.ts:241
↓ 4 callers
Method
sendRpc
(rpc: JsonRpc)
osmosis-net-js/src/rpc-sockets.ts:277
↓ 4 callers
Method
stop
()
osmosis-js/src/osmosis.ts:631
↓ 4 callers
Method
stop
()
osmosis-net-js/src/peer-finder.ts:129
↓ 4 callers
Method
subscribeMeta
( query: JsonPath, arg1: unknown, arg2?: (json: Json) => void )
osmosis-js/src/osmosis.ts:619
↓ 4 callers
Function
ts
(index: number)
osmosis-store-js/test/store.spec.ts:98
↓ 3 callers
Function
Delete
(path: AbsolutePathArray)
osmosis-store-js/test/mock-constructors.ts:18
↓ 3 callers
Method
addPairedPeer
(peer: PeerInfo)
osmosis-net-js/src/osmosis-connection.ts:280
↓ 3 callers
Function
applyChange
( change: Change, id: Id, dest: MutableJsonSource )
osmosis-store-js/src/actions.ts:448
↓ 3 callers
Method
callMethod
( peerId: string, method: M, params: Parameters<Methods[M]>[0], notification = false, time
osmosis-net-js/src/osmosis-connection.ts:706
↓ 3 callers
Function
compileIndex
( index: readonly [string, ...any[]] )
osmosis-store-js/src/jsonpath.ts:759
↓ 3 callers
Method
disconnectPeer
(peerId: string)
osmosis-net-js/src/osmosis-connection.ts:671
↓ 3 callers
Function
evalJsonPathExpr
( self: TaggedNode, source: JsonSource, expr: JsonPathExpr )
osmosis-store-js/src/jsonpath.ts:173
↓ 3 callers
Function
expectNumberExpr
(expr)
osmosis-store-js/src/jsonpath.ts:488
↓ 3 callers
Method
expirePath
(path: BinaryPath, isDeleted = true)
osmosis-store-js/src/json-cache.ts:72
↓ 3 callers
Method
failuresRange
( earliestId: Id | null, latestId: Id | null )
osmosis-store-js/src/store.ts:134
↓ 3 callers
Function
flatMapAsync
( xs: readonly T[], f: (t: T) => Promise<U[]> )
osmosis-store-js/src/utils.ts:18
↓ 3 callers
Method
getByPath
(path: BinaryPath)
osmosis-store-js/src/overlay-json-source.ts:28
↓ 3 callers
Method
getIdsAfter
( id: Id )
osmosis-store-js/src/json-source.ts:28
↓ 3 callers
Method
insert
(key: K, value: V)
osmosis-js/src/async-queue-map.ts:42
↓ 3 callers
Function
isObject
(it: unknown)
osmosis-store-js/src/utils.ts:25
↓ 3 callers
Function
iterateBinaryPath
( path: BinaryPath )
osmosis-store-js/src/binary-path.ts:55
↓ 3 callers
Method
sendHeartbeat
(interfaceAddress: string)
osmosis-net-js/src/peer-finder.ts:293
↓ 3 callers
Function
serializeSummary
({ hash, latestIndexes, }: StateSummary)
osmosis-js/src/osmosis.ts:49
↓ 3 callers
Method
setIdsByPath
(path: BinaryPath, ids: Id[])
osmosis-store-js/src/json-source.ts:37
↓ 3 callers
Method
setState
(newState: Json)
osmosis-store-js/test/meta-store.spec.ts:18
↓ 3 callers
Method
shutdownInterface
(ifa: HeartbeatInterface)
osmosis-net-js/src/peer-finder.ts:146
↓ 3 callers
Method
start
()
osmosis-net-js/src/peer-finder.ts:120
↓ 3 callers
Function
topLevelExprToString
(expr: JsonPathExpr)
osmosis-store-js/src/jsonpath.ts:923
↓ 3 callers
Method
update
(value: Json)
osmosis-js/src/metadata/event-metadata-source.ts:15
↓ 2 callers
Method
acceptPairRequest
(peerId: string, secret: string)
osmosis-net-js/src/osmosis-connection.ts:560
↓ 2 callers
Function
actionToChanges
( action: Action<CompiledJsonPath | CompiledJsonIdPath>, id: Id, source: JsonSource )
osmosis-store-js/src/actions.ts:105
↓ 2 callers
Function
addParentKey
(path: BinaryPath, dest: MutableJsonSource)
osmosis-store-js/src/actions.ts:414
↓ 2 callers
Function
binaryEqual
(a: Uint8Array, b: Uint8Array)
osmosis-net-js/src/utils.ts:26
next →
1–100 of 290, ranked by callers