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

@appbaseio/reactivecore

Package Overview
Dependencies
Maintainers
6
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appbaseio/reactivecore - npm Package Compare versions

Comparing version 9.14.8 to 9.14.9

2

lib/reducers/valueReducer.js

@@ -1,1 +0,1 @@

Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};exports.default=valueReducer;var _constants=require('../constants');function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function valueReducer(){var state=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var action=arguments[1];switch(action.type){case _constants.SET_VALUE:{var newState={};Object.keys(action.componentsToReset).forEach(function(id){newState[id]=_extends({},state[id],{value:action.componentsToReset[id]});});return _extends({},state,newState,_defineProperty({},action.component,{value:action.value,label:action.label||action.component,showFilter:action.showFilter,URLParams:action.URLParams,componentType:action.componentType,category:action.category,meta:action.meta,reference:action.reference}));}case _constants.PATCH_VALUE:return _extends({},state,_defineProperty({},action.component,_extends({},state[action.component],action.payload)));case _constants.CLEAR_VALUES:{var nextState={};if(action.resetValues){Object.keys(action.resetValues).forEach(function(componentId){nextState[componentId]=_extends({},state[componentId],{value:action.resetValues[componentId]});});}if(Array.isArray(action.clearAllBlacklistComponents)){Object.keys(state).forEach(function(componentId){if(action.clearAllBlacklistComponents.includes(componentId)){nextState[componentId]=state[componentId];}});}return nextState;}case _constants.REMOVE_COMPONENT:{var del=state[action.component],obj=_objectWithoutProperties(state,[action.component]);return obj;}case _constants.RESET_TO_DEFAULT:return _extends({},state,action.defaultValues);default:return state;}}
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};exports.default=valueReducer;var _constants=require('../constants');function _objectWithoutProperties(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function valueReducer(){var state=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var action=arguments[1];switch(action.type){case _constants.SET_VALUE:{var newState={};Object.keys(action.componentsToReset||{}).forEach(function(id){newState[id]=_extends({},state[id],{value:action.componentsToReset[id]});});return _extends({},state,newState,_defineProperty({},action.component,{value:action.value,label:action.label||action.component,showFilter:action.showFilter,URLParams:action.URLParams,componentType:action.componentType,category:action.category,meta:action.meta,reference:action.reference}));}case _constants.PATCH_VALUE:return _extends({},state,_defineProperty({},action.component,_extends({},state[action.component],action.payload)));case _constants.CLEAR_VALUES:{var nextState={};if(action.resetValues){Object.keys(action.resetValues).forEach(function(componentId){nextState[componentId]=_extends({},state[componentId],{value:action.resetValues[componentId]});});}if(Array.isArray(action.clearAllBlacklistComponents)){Object.keys(state).forEach(function(componentId){if(action.clearAllBlacklistComponents.includes(componentId)){nextState[componentId]=state[componentId];}});}return nextState;}case _constants.REMOVE_COMPONENT:{var del=state[action.component],obj=_objectWithoutProperties(state,[action.component]);return obj;}case _constants.RESET_TO_DEFAULT:return _extends({},state,action.defaultValues);default:return state;}}
{
"name": "@appbaseio/reactivecore",
"version": "9.14.8",
"version": "9.14.9",
"description": "Core architecture of reactive UI libraries",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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