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

@cicada/render

Package Overview
Dependencies
Maintainers
3
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cicada/render - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

8

lib/background/utility/validation/createValidation.js

@@ -140,6 +140,6 @@ 'use strict';

var asyncGroupIds = [];
var changedIds = { self: [], group: []
var changedIds = { self: [], group: [] };
// 缓存一下联合校验器的触发,改善性能
};var triggeredGroupValidatorCache = {};
// 缓存一下联合校验器的触发,改善性能
var triggeredGroupValidatorCache = {};
(0, _common.walkStateTree)(stateTree.get(statePathToValidate), statePathToValidate, function (state) {

@@ -186,5 +186,3 @@ executeValidator(state._id, sessionId, changedIds, asyncStateIds, asyncGroupIds, triggeredGroupValidatorCache);

triggerValidator: triggerValidator
// reset: partial(oneOrAll, false, validators, (statePath) => {
// }),
};
}

@@ -142,7 +142,7 @@ 'use strict';

_this.instance = initialize();
_this.state = { stateChange: 0
_this.state = { stateChange: 0 };
// CAUTION 生成的 bind 里面不能包含 [] 符号,因为会被 exist.js 误判为路径
// bind 为空的情况, 自动生成一个
};_this.bind = (0, _util.isNegative)(bind) ? displayName + '(' + _this.componentId + ')' : bind;
// CAUTION 生成的 bind 里面不能包含 [] 符号,因为会被 exist.js 误判为路径
// bind 为空的情况, 自动生成一个
_this.bind = (0, _util.isNegative)(bind) ? displayName + '(' + _this.componentId + ')' : bind;

@@ -193,3 +193,3 @@ _this.setupLifeCycle();

var _background$register = background.register(this.stateId, props, DeclarativeComponent),
var _background$register = background.register(this.stateId, (0, _extends3.default)({}, props, pathGetter), DeclarativeComponent),
cancel = _background$register.cancel,

@@ -196,0 +196,0 @@ injectComponentArgs = _background$register.inject;

@@ -213,6 +213,7 @@ 'use strict';

onChange: commonListener
});
// CAUTION shouldComponentUpdate 起作用完全是因为 lego 在收到数据的变化的时候
// 支持了这个函数。这样就不会受未来 react 变化的影响
});var shouldComponentUpdate = function shouldComponentUpdate() {
// CAUTION shouldComponentUpdate 起作用完全是因为 lego 在收到数据的变化的时候
// 支持了这个函数。这样就不会受未来 react 变化的影响
var shouldComponentUpdate = function shouldComponentUpdate() {
return false;

@@ -219,0 +220,0 @@ };

@@ -114,6 +114,6 @@ 'use strict';

var componentPathKey = componentPath !== undefined ? componentPath.join('.') : undefined;
appearance[id] = { visible: true, style: {}, componentPath: componentPath
// CAUTION 在与 react-router 这样的库结合使用时,由于会动态创建组件,
// 所以 Render 无法给组件打上 path, 要兼容这种情况。
};if (componentPathKey !== undefined) {
appearance[id] = { visible: true, style: {}, componentPath: componentPath };
// CAUTION 在与 react-router 这样的库结合使用时,由于会动态创建组件,
// 所以 Render 无法给组件打上 path, 要兼容这种情况。
if (componentPathKey !== undefined) {
stateIdByComponentPath.insert(componentPathKey, id);

@@ -120,0 +120,0 @@ }

@@ -107,3 +107,3 @@ 'use strict';

appearance: appearanceBackground,
listender: listenerBackground
listener: listenerBackground
},

@@ -110,0 +110,0 @@ jobs: {

{
"name": "@cicada/render",
"version": "1.0.6",
"version": "1.0.7",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "scripts": {

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