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

okam-core

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

okam-core - npm Package Compare versions

Comparing version 0.4.0-beta.1 to 0.4.0-beta.2

src/extend/data/redux/equal.js

2

package.json
{
"name": "okam-core",
"version": "0.4.0-beta.1",
"version": "0.4.0-beta.2",
"description": "The extension for small program framework",

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

@@ -179,2 +179,7 @@ /**

if (old !== value || (typeof old === 'object')) {
let needUpdate = this.shouldUpdate ? this.shouldUpdate(old, value) : true;
if (!needUpdate) {
return;
}
ctx.data[p] = value;

@@ -181,0 +186,0 @@ ctx.$setData({[p]: value});

@@ -8,2 +8,4 @@ /**

import isValueEqual from './equal';
/* eslint-disable fecs-prefer-destructure */

@@ -88,2 +90,6 @@

function shouldUpdate(old, curr) {
return !isValueEqual(old, curr);
}
function onStoreChange() {

@@ -95,3 +101,5 @@ let observer = this.__computedObserver;

}
if (observer && upKeys) {
observer.shouldUpdate || (observer.shouldUpdate = shouldUpdate);
upKeys.forEach(k => observer.updateComputed(k));

@@ -98,0 +106,0 @@ }

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