Comparing version 0.3.17 to 0.4.0
@@ -102,6 +102,6 @@ import { is, set, on, update, until } from 'minimal-state'; | ||
setState: { | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio">(key: L, value: StateType[L]): void; | ||
<L extends "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks">(key: L, value: StateType[L]): void; | ||
(state: Partial<StateType>): void; | ||
}; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
onState: (key: "identities" | "swarm" | "roomId" | "myIdentity" | "myId" | "micMuted" | "handRaised" | "inRoom" | "room" | "hasRoom" | "isRoomLoading" | "iAmSpeaker" | "iAmModerator" | "otherDeviceInRoom" | "peers" | "peerState" | "myPeerState" | "reactions" | "soundMuted" | "audioFile" | "audioFileElement" | "myAudio" | "audioPlayError" | "hasMicFailed" | "speaking" | "isRecording" | "isSomeoneRecording" | "recordedAudio" | "isPodcasting" | "isSomeonePodcasting" | "podcastTracks" | undefined, listener: (...args: unknown[]) => void) => () => void; | ||
createRoom: (roomId: string, partialRoom?: Partial<RoomType> | undefined) => Promise<boolean>; | ||
@@ -108,0 +108,0 @@ updateRoom: (roomId: string, room: RoomType) => Promise<boolean>; |
@@ -31,2 +31,6 @@ export { defaultProps, defaultState }; | ||
}; | ||
declare type AccessType = { | ||
identities?: string[]; | ||
identitiesLocked?: boolean; | ||
}; | ||
declare type RoomType = { | ||
@@ -40,2 +44,3 @@ name: string; | ||
logoURI?: string; | ||
access?: AccessType; | ||
}; | ||
@@ -82,2 +87,5 @@ declare type PeerState = { | ||
recordedAudio: Blob | null; | ||
isPodcasting: boolean; | ||
isSomeonePodcasting: boolean; | ||
podcastTracks: Record<string, Blob>; | ||
}; | ||
@@ -84,0 +92,0 @@ declare type StateType = typeof defaultState & { |
{ | ||
"name": "jam-core", | ||
"description": "Jam SDK for creating custom audio spaces like Clubhouse / Twitter Spaces, made with WebRTC", | ||
"version": "0.3.17", | ||
"version": "0.4.0", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "license": "(AGPL-3.0 OR Apache-2.0)", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
522983
6123
6