Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dlghq/dialog-types

Package Overview
Dependencies
Maintainers
6
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlghq/dialog-types - npm Package Compare versions

Comparing version 1.32.0 to 1.32.1

2

package.json
{
"name": "@dlghq/dialog-types",
"version": "1.32.0",
"version": "1.32.1",
"description": "Flow types for dialog projects",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -33,2 +33,18 @@ /*

export function peerToApi(peer: Peer) {
switch (peer.type) {
case 'user':
return { type: 'private', id: peer.id, strId: null };
case 'group':
return { type: 'group', id: peer.id, strId: null };
case 'sip':
return { type: 'sip', id: peer.id, strId: peer.key };
default:
throw new Error(`Unexpected peer type: ${peer.type}`);
}
}
export function isSamePeer(peer1: ?Peer, peer2: ?Peer): boolean {

@@ -35,0 +51,0 @@ if (peer1 && peer2) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc