@livekit/rtc-node
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -21,5 +21,4 @@ import type { PartialMessage } from '@bufbuild/protobuf'; | ||
retrievePtr(data: Uint8Array): bigint; | ||
dispose(): Promise<void>; | ||
waitFor<T>(predicate: (ev: FfiEvent) => boolean): Promise<T>; | ||
} | ||
//# sourceMappingURL=ffi_client.d.ts.map |
import EventEmitter from 'events'; | ||
import { FfiHandle, livekitCopyBuffer, livekitDispose, livekitFfiRequest, livekitInitialize, livekitRetrievePtr, } from './napi/native.js'; | ||
import { FfiHandle, livekitCopyBuffer, livekitFfiRequest, livekitInitialize, livekitRetrievePtr, } from './napi/native.js'; | ||
import { FfiEvent, FfiRequest, FfiResponse } from './proto/ffi_pb.js'; | ||
@@ -35,5 +35,2 @@ export { FfiHandle, FfiEvent, FfiResponse, FfiRequest }; | ||
} | ||
async dispose() { | ||
return await livekitDispose(); | ||
} | ||
async waitFor(predicate) { | ||
@@ -40,0 +37,0 @@ return new Promise((resolve) => { |
@@ -7,3 +7,2 @@ /* tslint:disable */ | ||
export function livekitInitialize(callback: (data: Uint8Array) => void, captureLogs: boolean): void; | ||
export function livekitDispose(): Promise<void>; | ||
export function livekitFfiRequest(data: Uint8Array): Uint8Array; | ||
@@ -10,0 +9,0 @@ export function livekitRetrievePtr(handle: Uint8Array): bigint; |
@@ -10,3 +10,2 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc. | ||
livekitInitialize, | ||
livekitDispose, | ||
livekitCopyBuffer, | ||
@@ -13,0 +12,0 @@ livekitRetrievePtr, |
@@ -231,3 +231,2 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc. | ||
FfiClient.instance.removeAllListeners(); | ||
await FfiClient.instance.dispose(); | ||
this.removeAllListeners(); | ||
@@ -234,0 +233,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"author": "LiveKit", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"main": "dist/index.js", | ||
@@ -13,4 +13,4 @@ "types": "dist/index.d.ts", | ||
"type": "git", | ||
"url": "https://github.com/livekit/node-sdks-temp.git", | ||
"directory": "rtc-node" | ||
"url": "https://github.com/livekit/node-sdks.git", | ||
"directory": "packages/livekit-rtc" | ||
}, | ||
@@ -51,3 +51,3 @@ "files": [ | ||
"scripts": { | ||
"build:tsc": "tsc && cp -r src/napi dist/napi", | ||
"build:tsc": "tsc && cp -r src/napi dist/", | ||
"build": "pnpm build:tsc && napi build --platform --release --dts native.d.ts --js native.cjs --pipe \"prettier -w\" src/napi", | ||
@@ -54,0 +54,0 @@ "artifacts": "pnpm build:tsc && napi artifacts", |
@@ -10,3 +10,2 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc. | ||
livekitCopyBuffer, | ||
livekitDispose, | ||
livekitFfiRequest, | ||
@@ -62,6 +61,2 @@ livekitInitialize, | ||
async dispose() { | ||
return await livekitDispose(); | ||
} | ||
async waitFor<T>(predicate: (ev: FfiEvent) => boolean): Promise<T> { | ||
@@ -68,0 +63,0 @@ return new Promise<T>((resolve) => { |
@@ -7,3 +7,2 @@ /* tslint:disable */ | ||
export function livekitInitialize(callback: (data: Uint8Array) => void, captureLogs: boolean): void; | ||
export function livekitDispose(): Promise<void>; | ||
export function livekitFfiRequest(data: Uint8Array): Uint8Array; | ||
@@ -10,0 +9,0 @@ export function livekitRetrievePtr(handle: Uint8Array): bigint; |
@@ -10,3 +10,2 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc. | ||
livekitInitialize, | ||
livekitDispose, | ||
livekitCopyBuffer, | ||
@@ -13,0 +12,0 @@ livekitRetrievePtr, |
@@ -161,3 +161,2 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc. | ||
FfiClient.instance.removeAllListeners(); | ||
await FfiClient.instance.dispose(); | ||
this.removeAllListeners(); | ||
@@ -164,0 +163,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
1567041
122
0
82
27123
1
3