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
6
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.1.8-alpha3 to 1.1.8-alpha4

12

lib/createAppearance.js

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

var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
exports.default = createAppearance;

@@ -61,6 +57,10 @@

var isObject = function isObject(v) {
return Object.prototype.toString.apply(v) === '[object Object]';
};
// 避免state数据传入到react开发版props属性被设置为frozen导致无法set
function simpleCloneWithNofrozen(state) {
if (!isObject(state)) return state;
return (0, _util.mapValues)(state, function (v) {
return (typeof v === 'undefined' ? 'undefined' : (0, _typeof3.default)(v)) === 'object' ? (0, _extends3.default)({}, v) : v;
return isObject(v) ? (0, _extends3.default)({}, v) : v;
});

@@ -183,3 +183,3 @@ }

componentArg.props = (0, _extends3.default)({}, componentArg.props, injectedExternalProps);
componentArg.state = componentArg.state ? simpleCloneWithNofrozen(componentArg.state) : componentArg.state;
componentArg.state = simpleCloneWithNofrozen(componentArg.state);

@@ -186,0 +186,0 @@ return _react2.default.createElement(

{
"name": "@cicada/render",
"version": "1.1.8-alpha3",
"version": "1.1.8-alpha4",
"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