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

@live-change/framework

Package Overview
Dependencies
Maintainers
1
Versions
302
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/framework - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

23

lib/runtime/ReaderModel.js

@@ -122,4 +122,27 @@ const ReactiveDao = require("@live-change/dao")

condition(id, condition = x => !!x, timeout = 10000) {
return new Promise((resolve, reject) => {
const observable = this.observable(id)
const timeoutId = setTimeout(() => {
observable.unobserve(observer)
return reject(new Error('timeout'))
}, timeout)
const observer = (signal, value) => {
if(signal != 'set') {
observable.unobserve(observer)
clearTimeout(timeoutId)
return reject(new Error(`unknown signal ${signal}`))
}
if(condition(signal)) {
observable.unobserve(observer)
clearTimeout(timeoutId)
return resolve(value)
}
}
observable.observe(observer)
})
}
}
module.exports = ReaderModel

2

package.json
{
"name": "@live-change/framework",
"version": "0.3.9",
"version": "0.3.10",
"description": "Live Change Framework - ultimate solution for real time mobile/web apps",

@@ -5,0 +5,0 @@ "main": "index.js",

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