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 2.6.1 to 2.6.2

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [2.6.2](https://github.com/alipay/goldfish/compare/v2.6.1...v2.6.2) (2022-03-10)
### Bug Fixes
* the parent key logic ([fb78271](https://github.com/alipay/goldfish/commit/fb78271d3ecaa9a572d6c3690a6ec16ba68a363c))
## [2.6.1](https://github.com/alipay/goldfish/compare/v2.6.0...v2.6.1) (2022-03-08)

@@ -8,0 +19,0 @@

9

lib/watchDeep.js

@@ -32,2 +32,7 @@ import _isObject from "@goldfishjs/utils/lib/isObject";

}
}, {
key: "isStartWithKeyPathString",
value: function isStartWithKeyPathString(target, keyPathString) {
return target === keyPathString || target.indexOf(keyPathString) === 0 && '.['.indexOf(target.replace(keyPathString, '')[0]) !== -1;
}
/**

@@ -45,3 +50,3 @@ * Remove current layer and all the children's listeners.

for (var kps in this.fns) {
if (kps.indexOf(keyPathString) === 0) {
if (this.isStartWithKeyPathString(kps, keyPathString)) {
for (var k in this.fns[kps]) {

@@ -61,3 +66,3 @@ this.fns[kps][k]();

for (var kps in this.fns) {
if (kps !== keyPathString && kps.indexOf(keyPathString) === 0) {
if (kps !== keyPathString && this.isStartWithKeyPathString(kps, keyPathString)) {
for (var k in this.fns[kps]) {

@@ -64,0 +69,0 @@ this.fns[kps][k]();

{
"name": "@goldfishjs/reactive",
"version": "2.6.1",
"version": "2.6.2",
"description": "Reactive.",

@@ -17,4 +17,4 @@ "main": "lib/index.js",

"dependencies": {
"@goldfishjs/module-usage": "^2.6.1",
"@goldfishjs/utils": "^2.6.1"
"@goldfishjs/module-usage": "^2.6.2",
"@goldfishjs/utils": "^2.6.2"
},

@@ -21,0 +21,0 @@ "devDependencies": {

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