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

lemonadejs

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lemonadejs - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

20

dist/index.js
/**
* LemonadeJS v4.1.0 (ESM build)
* LemonadeJS v4.1.1 (ESM build)
*

@@ -442,4 +442,6 @@ * Website: https://lemonadejs.net

* @param {string} property - property from the self
* @param {any} oldValue property value
* @param {any} newValue property value
*/
const dispatch = function(property) {
const dispatch = function(property, oldValue, newValue) {
// Tracking object

@@ -459,3 +461,3 @@ let o = R.tracking.get(this);

if (typeof(this.onchange) === 'function') {
this.onchange(property, o, this);
this.onchange(property, o, this, oldValue, newValue);
}

@@ -499,8 +501,8 @@ }

set: function (v) {
// Only update if the value is really different
if (value !== v) {
value = v;
// Refresh bound elements
dispatch.call(this, p);
}
// Old value
let oldValue = value;
// New value
value = v;
// Refresh bound elements
dispatch.call(this, p, oldValue, v);
},

@@ -507,0 +509,0 @@ get: function () {

/**
* LemonadeJS v4.1.0
* LemonadeJS v4.1.1
*

@@ -447,4 +447,6 @@ * Website: https://lemonadejs.net

* @param {string} property - property from the self
* @param {any} oldValue property value
* @param {any} newValue property value
*/
const dispatch = function(property) {
const dispatch = function(property, oldValue, newValue) {
// Tracking object

@@ -464,3 +466,3 @@ let o = R.tracking.get(this);

if (typeof(this.onchange) === 'function') {
this.onchange(property, o, this);
this.onchange(property, o, this, oldValue, newValue);
}

@@ -504,8 +506,8 @@ }

set: function (v) {
// Only update if the value is really different
if (value !== v) {
value = v;
// Refresh bound elements
dispatch.call(this, p);
}
// Old value
let oldValue = value;
// New value
value = v;
// Refresh bound elements
dispatch.call(this, p, oldValue, v);
},

@@ -512,0 +514,0 @@ get: function () {

@@ -42,3 +42,3 @@ {

"types": "dist/lemonade.d.ts",
"version": "4.1.0"
"version": "4.1.1"
}
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