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

@startup-booster/move-mobx

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startup-booster/move-mobx - npm Package Compare versions

Comparing version 0.1.28 to 0.1.29

12

move-mobx.js

@@ -5,2 +5,3 @@ const { observable } = require('mobx');

const debounce = require('lodash/debounce');
const lodashSet = require('lodash/set');

@@ -15,7 +16,9 @@ /** @type {function(string, MoveOptions): MoveMobxClient} */

const set = debounce((path, newValue) => connection.set(path, newValue), 500);
const set = debounce((path, newValue) => connection.set(path, newValue), 10);
connection.ref = (path, { defaultValue = undefined, previewSet = true } = {}) => {
let box = observable({ value: defaultValue });
const listenCallback = newValue => (box.value = newValue);
const listenCallback = newValue => {
box.value = newValue;
};
connection.listen(path, listenCallback);

@@ -33,4 +36,5 @@

},
set(newValue) {
box.value = newValue;
set(key, value) {
lodashSet(box.value, key, value);
set(`${path}.${key}`, value);
},

@@ -37,0 +41,0 @@ };

{
"name": "@startup-booster/move-mobx",
"version": "0.1.28",
"version": "0.1.29",
"main": "move-mobx.js",
"license": "MIT",
"dependencies": {
"@startup-booster/move": "0.1.28"
"@startup-booster/move": "0.1.29"
},

@@ -9,0 +9,0 @@ "peerDependencies": {

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