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
7
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.22-alpha3 to 1.1.22-alpha4

45

lib/createDynamicRender.js

@@ -92,2 +92,4 @@ 'use strict';

var proxy = {};
function setStateValue(statePath, value) {

@@ -128,21 +130,26 @@ for (var _len2 = arguments.length, arg = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {

return {
get: function get(statePath) {
var _instance$stateTree3;
function getStateValue(statePath) {
var _instance$stateTree3;
for (var _len3 = arguments.length, arg = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
arg[_key3 - 1] = arguments[_key3];
}
for (var _len3 = arguments.length, arg = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
arg[_key3 - 1] = arguments[_key3];
}
if (/^value/.test(statePath)) return (_instance$stateTree3 = instance.stateTree).get.apply(_instance$stateTree3, [removePathHeader(statePath, 'value')].concat(arg));
if (/^config/.test(statePath)) return _exist2.default.get.apply(_exist2.default, [instance.config, removePathHeader(statePath, 'config')].concat(arg));
if (statePath === '') {
return {
config: instance.config,
value: instance.stateTree.get('')
};
}
throw new Error('get unknown state name: ' + statePath);
},
set: function set(statePath, value) {
if (/^value/.test(statePath)) return (_instance$stateTree3 = instance.stateTree).get.apply(_instance$stateTree3, [removePathHeader(statePath, 'value')].concat(arg));
if (/^config/.test(statePath)) return _exist2.default.get.apply(_exist2.default, [instance.config, removePathHeader(statePath, 'config')].concat(arg));
if (statePath === '') {
return {
config: instance.config,
value: instance.stateTree.get('')
};
}
throw new Error('get unknown state name: ' + statePath);
}
Object.defineProperty(proxy, 'get', {
value: getStateValue
});
Object.defineProperty(proxy, 'set', {
value: function set(statePath, value) {
for (var _len4 = arguments.length, arg = Array(_len4 > 2 ? _len4 - 2 : 0), _key4 = 2; _key4 < _len4; _key4++) {

@@ -161,3 +168,5 @@ arg[_key4 - 2] = arguments[_key4];

}
};
});
return proxy;
};

@@ -164,0 +173,0 @@

2

package.json
{
"name": "@cicada/render",
"version": "1.1.22-alpha3",
"version": "1.1.22-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