New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@live-change/framework

Package Overview
Dependencies
Maintainers
1
Versions
362
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.2.16 to 0.3.0

10

lib/runtime/Model.js

@@ -9,3 +9,2 @@ const ReaderModel = require("./ReaderModel.js")

this.definition = definition
this.changeListeners = this.definition.onChange || []
}

@@ -18,3 +17,2 @@

const [newObj, oldObj] = res
await this.handleChange(newObj, oldObj)
return [newObj, oldObj]

@@ -27,3 +25,2 @@ }

['database', 'delete'], this.service.databaseName, this.tableName, id)
await this.handleChange(null, res)
}

@@ -45,14 +42,7 @@

['database', 'put'], this.service.databaseName, this.tableName, prepData)
await this.handleChange(prepData, res)
return res
}
async handleChange(newObj, oldObj) {
//console.log("HADNLE CHANGE", newObj, oldObj)
//console.log("CHANGE LISTENERS", this.changeListeners)
for(let listener of this.changeListeners) await listener(newObj, oldObj)
}
}
module.exports = Model

2

package.json
{
"name": "@live-change/framework",
"version": "0.2.16",
"version": "0.3.0",
"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