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

@startup-booster/move

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startup-booster/move - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

13

move.js

@@ -5,4 +5,4 @@ const { EventEmitter } = require('events');

/** @type {function(string): MoveClient} */
const connect = url => {
/** @type {function(string, MoveOptions): MoveClient} */
const connect = (url, options = {}) => {
const eventEmitter = new EventEmitter();

@@ -12,2 +12,3 @@ const listeners = {};

path: '/move',
auth: options.auth,
});

@@ -99,5 +100,11 @@

if (listeners[path]) {
console.log(`Listen: adding handler for ${path}`);
listeners[path].handlers.add(callback);
rpc('get', path).then(value => {
console.log(`Got ${path}`, value);
callback(value);
});
return;
}
console.log(`Listen: first handler for ${path}`);
listeners[path] = {

@@ -129,3 +136,3 @@ handlers: new Set([callback]),

index: 0,
}
};
await rpc('collectionListen', collection);

@@ -132,0 +139,0 @@ },

{
"name": "@startup-booster/move",
"version": "0.1.14",
"version": "0.1.15",
"main": "move.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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