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

@cicada/render

Package Overview
Dependencies
Maintainers
4
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.11-alpha1 to 1.0.11

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,3 +186,5 @@ 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;

@@ -379,3 +379,4 @@ _this.setupLifeCycle();

context: _this6.context,
instance: _this6.instance
instance: _this6.instance,
inject: _this6.getInjectArg()
};

@@ -382,0 +383,0 @@ };

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

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

@@ -220,0 +219,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 @@ }

@@ -11,2 +11,6 @@ 'use strict';

var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray');

@@ -66,2 +70,10 @@

function getIdentifierProps(config) {
var props = config.props,
listeners = config.listeners,
intercepters = config.intercepters;
return (0, _assign2.default)(props, listeners ? { listeners: listeners } : {}, intercepters ? { intercepters: intercepters } : {});
}
function createFlatTree(components, parentComponentPath, config, index) {

@@ -78,3 +90,3 @@ if (typeof config === 'string') return config;

// identifier 只要 config.props
var props = type === _constant.COMPONENT_TYPE_IDENTIFIER ? config.props :
var props = type === _constant.COMPONENT_TYPE_IDENTIFIER ? getIdentifierProps(config) :
// 因为在 config 变化的情况下重用组件可能会导致位置问题,所以不如保证每个组件都是唯一的

@@ -81,0 +93,0 @@ (0, _extends3.default)({}, config, { path: componentPath, key: createComponentKey() });

{
"name": "@cicada/render",
"version": "1.0.11-alpha1",
"version": "1.0.11",
"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