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

tardis-machine

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tardis-machine - npm Package Compare versions

Comparing version 3.13.0 to 3.14.0

18

dist/ws/subscriptionsmappers.js

@@ -59,2 +59,3 @@ "use strict";

map: (message) => {
console.log(message);
return message.params.channels.map((channel) => {

@@ -498,2 +499,16 @@ const lastSeparator = channel.lastIndexOf('.');

};
const wooxMapper = {
canHandle: (message) => {
return message.event === 'subscribe';
},
map: (message) => {
const [symbol, channel] = message.topic.split('@');
return [
{
channel,
symbols: symbol
}
];
}
};
exports.subscriptionsMappers = {

@@ -547,4 +562,5 @@ bitmex: bitmexMapper,

kucoin: kucoinMapper,
bitnomial: bitnomialMapper
bitnomial: bitnomialMapper,
'woo-x': wooxMapper
};
//# sourceMappingURL=subscriptionsmappers.js.map

4

package.json
{
"name": "tardis-machine",
"version": "3.13.0",
"version": "3.14.0",
"engines": {

@@ -62,3 +62,3 @@ "node": ">=12"

"is-docker": "^2.2.1",
"tardis-dev": "^13.11.0",
"tardis-dev": "^13.12.0",
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.10.0",

@@ -65,0 +65,0 @@ "yargs": "^17.5.1"

@@ -68,2 +68,3 @@ import { Exchange, Filter } from 'tardis-dev'

map: (message: any) => {
console.log(message)
return message.params.channels.map((channel: string) => {

@@ -579,2 +580,18 @@ const lastSeparator = channel.lastIndexOf('.')

const wooxMapper: SubscriptionMapper = {
canHandle: (message: any) => {
return message.event === 'subscribe'
},
map: (message: any) => {
const [symbol, channel] = message.topic.split('@')
return [
{
channel,
symbols: symbol
}
]
}
}
export const subscriptionsMappers: { [key in Exchange]: SubscriptionMapper } = {

@@ -628,3 +645,4 @@ bitmex: bitmexMapper,

kucoin: kucoinMapper,
bitnomial: bitnomialMapper
bitnomial: bitnomialMapper,
'woo-x': wooxMapper
}

@@ -631,0 +649,0 @@

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