@based/client
Advanced tools
Comparing version 6.11.0 to 6.11.1
import { BasedClient } from './index.js'; | ||
export declare const getTargetInfo: (client: BasedClient, id: number, type: 'channel' | 'sub') => { | ||
export declare const getTargetInfo: (client: BasedClient, id: number, type: "channel" | "sub") => { | ||
name: string; | ||
@@ -4,0 +4,0 @@ payload?: any; |
import { AuthState } from '../types/auth.js'; | ||
import { ChannelPublishQueueItem, ChannelQueueItem, FunctionQueueItem, GetObserveQueue, ObserveQueue, StreamQueueItem } from '../types/index.js'; | ||
export declare const encodeGetObserveMessage: (id: number, o: import("../types/observe.js").GetObserveQueueItem) => { | ||
export declare const encodeGetObserveMessage: (id: number, o: GetObserveQueue extends Map<any, infer I> ? I : never) => { | ||
buffers: Uint8Array[]; | ||
@@ -11,3 +11,3 @@ len: number; | ||
}; | ||
export declare const encodeObserveMessage: (id: number, o: import("../types/observe.js").ObserveQueueItem) => { | ||
export declare const encodeObserveMessage: (id: number, o: ObserveQueue extends Map<any, infer I> ? I : never) => { | ||
buffers: Uint8Array[]; | ||
@@ -24,3 +24,3 @@ len: number; | ||
}; | ||
export declare const encodeAuthMessage: (authState: AuthState) => Uint8Array; | ||
export declare const encodeAuthMessage: (authState: AuthState) => Uint8Array<ArrayBufferLike>; | ||
export declare const encodeStreamMessage: (f: StreamQueueItem) => { | ||
@@ -27,0 +27,0 @@ buffers: Uint8Array[]; |
@@ -5,3 +5,2 @@ import { addStreamChunk, addStreamRegister } from '../outgoing/index.js'; | ||
reader.addEventListener('loadend', (e) => { | ||
console.log('loaded?'); | ||
resolve(new Uint8Array(reader.result)); | ||
@@ -8,0 +7,0 @@ }); |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { Readable } from "stream"; | ||
@@ -3,0 +2,0 @@ import { StreamFunctionPath, StreamFunctionStream } from "./types.js"; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
export type ReadableStream = { | ||
@@ -3,0 +2,0 @@ pipe: (x: any) => ReadableStream; |
{ | ||
"name": "@based/client", | ||
"version": "6.11.0", | ||
"version": "6.11.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
439189
4405