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

@waves.exchange/matcher-ws

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves.exchange/matcher-ws - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

dist/addressUpdates.d.ts

@@ -60,4 +60,4 @@ /// <reference types="zen-observable" />

export declare type AddressUpdateMessages = RawAddressUpdate | AddressUpdateSubscribeMessage | AddressUpdateUnsubscribeMessage;
export declare function addressUpdates(ws: WebSocketSubject<AddressUpdateMessages>, address: string, accessToken: string): Observable<AddressUpdate>;
export declare function addressUpdates(ws: WebSocketSubject<AddressUpdateMessages>, address: string, accessToken: string, filters?: Array<string>): Observable<AddressUpdate>;
export {};
//# sourceMappingURL=addressUpdates.d.ts.map

@@ -6,6 +6,6 @@ "use strict";

const MatcherUpdateSequence_1 = require("./MatcherUpdateSequence");
function addressUpdates(ws, address, accessToken) {
function addressUpdates(ws, address, accessToken, filters = []) {
return new reactive_1.Observable((observer) => {
const matcherUpdateSequence = new MatcherUpdateSequence_1.MatcherUpdateSequence();
const subscription = ws.multiplex(() => ({ T: 'aus', S: address, t: 'jwt', j: accessToken }), () => ({ T: 'u', S: address }), (message) => message.T === 'au' && message.S === address).subscribe((au) => {
const subscription = ws.multiplex(() => ({ T: 'aus', S: address, t: 'jwt', j: accessToken, f: filters }), () => ({ T: 'u', S: address }), (message) => message.T === 'au' && message.S === address).subscribe((au) => {
if (matcherUpdateSequence.setAndValidate(au.U)) {

@@ -12,0 +12,0 @@ observer.next({

{
"name": "@waves.exchange/matcher-ws",
"version": "0.0.6",
"version": "0.0.7",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts",

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