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

@goldfishjs/reactive

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goldfishjs/reactive - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

lib/computed.js

@@ -90,2 +90,4 @@ import _typeof from "@babel/runtime/helpers/typeof";

removeListenersGroup.push(removeFns);
}, function (error) {
throw error;
});

@@ -92,0 +94,0 @@ }

2

package.json
{
"name": "@goldfishjs/reactive",
"version": "0.0.9",
"version": "0.0.10",
"description": "Reactive.",

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

@@ -86,23 +86,28 @@ import { call, getCurrent, Dep, DepList } from './dep';

if (isDirty) {
call(() => {
cachedValue = realGetter();
depList = getCurrent();
depMap[key] = depList;
call(
() => {
cachedValue = realGetter();
depList = getCurrent();
depMap[key] = depList;
removeListenersGroup.forEach(group => group.forEach(fn => fn()));
removeListenersGroup = [];
removeListenersGroup.forEach(group => group.forEach(fn => fn()));
removeListenersGroup = [];
const removeFns = depList.addChangeListener(
() => {
isDirty = true;
dep.notifyChange(undefined, cachedValue, {
type: 'computed',
isChanged: () => true,
});
},
false,
);
isDirty = false;
removeListenersGroup.push(removeFns);
});
const removeFns = depList.addChangeListener(
() => {
isDirty = true;
dep.notifyChange(undefined, cachedValue, {
type: 'computed',
isChanged: () => true,
});
},
false,
);
isDirty = false;
removeListenersGroup.push(removeFns);
},
(error) => {
throw error;
},
);
}

@@ -109,0 +114,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