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

@satorijs/protocol

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@satorijs/protocol - npm Package Compare versions

Comparing version 1.4.2 to 1.5.0

18

lib/index.d.ts

@@ -14,3 +14,3 @@ import Element from '@satorijs/element';

statusText?: string;
data?: ArrayBuffer;
body?: ArrayBuffer;
headers?: Headers;

@@ -139,2 +139,4 @@ }

export interface Login {
sn: number;
adapter: string;
user?: User;

@@ -147,3 +149,2 @@ platform?: string;

features: string[];
proxyUrls: string[];
}

@@ -199,3 +200,3 @@ export const enum Status {

export interface Event {
id: number;
sn: number;
type: string;

@@ -228,3 +229,4 @@ selfId: string;

IDENTIFY = 3,
READY = 4
READY = 4,
META = 5
}

@@ -237,3 +239,3 @@ export interface GatewayPayloadStructure<O extends Opcode> {

[O in Opcode]: GatewayPayloadStructure<O>;
}[Opcode.EVENT | Opcode.PONG | Opcode.READY];
}[Opcode.EVENT | Opcode.PONG | Opcode.READY | Opcode.META];
export type ClientPayload = {

@@ -248,7 +250,11 @@ [O in Opcode]: GatewayPayloadStructure<O>;

token?: string;
sequence?: number;
sn?: number;
};
[Opcode.READY]: {
logins: Login[];
proxyUrls: string[];
};
[Opcode.META]: {
proxyUrls: string[];
};
}

@@ -255,0 +261,0 @@ export namespace WebSocket {

{
"name": "@satorijs/protocol",
"description": "Protocol types for Satori protocol",
"version": "1.4.2",
"version": "1.5.0",
"type": "module",

@@ -11,5 +11,5 @@ "main": "lib/index.cjs",

".": {
"types": "./lib/index.d.ts",
"require": "./lib/index.cjs",
"import": "./lib/index.mjs",
"types": "./lib/index.d.ts"
"import": "./lib/index.mjs"
},

@@ -43,4 +43,4 @@ "./src/*": "./src/*",

"@satorijs/element": "^3.1.7",
"cosmokit": "^1.6.2"
"cosmokit": "^1.6.3"
}
}

@@ -17,3 +17,3 @@ import Element from '@satorijs/element'

statusText?: string
data?: ArrayBuffer
body?: ArrayBuffer
headers?: Headers

@@ -229,2 +229,4 @@ }

export interface Login {
sn: number
adapter: string
user?: User

@@ -237,3 +239,2 @@ platform?: string

features: string[]
proxyUrls: string[]
}

@@ -314,3 +315,3 @@

export interface Event {
id: number
sn: number
type: string

@@ -346,2 +347,3 @@ selfId: string

READY = 4,
META = 5,
}

@@ -356,3 +358,3 @@

[O in Opcode]: GatewayPayloadStructure<O>
}[Opcode.EVENT | Opcode.PONG | Opcode.READY]
}[Opcode.EVENT | Opcode.PONG | Opcode.READY | Opcode.META]

@@ -369,7 +371,11 @@ export type ClientPayload = {

token?: string
sequence?: number
sn?: number
}
[Opcode.READY]: {
logins: Login[]
proxyUrls: string[]
}
[Opcode.META]: {
proxyUrls: string[]
}
}

@@ -376,0 +382,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

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