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

@galette/core

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@galette/core - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

LICENSE

3

dist/store/redux/reducers.d.ts

@@ -23,2 +23,3 @@ export declare type Action = {

listKeyInState: string;
errorMessageResolver?: (action: Action) => string;
totalItems?: (action: Action) => number;

@@ -30,3 +31,3 @@ };

loading?: number;
error?: any;
error?: string;
total_items?: number;

@@ -33,0 +34,0 @@ };

@@ -17,2 +17,6 @@ "use strict";

}
var defaultErrorMessageResolver = function (action) {
var messageSource = action.error || action.payload || {};
return messageSource.message || messageSource.error || 'Something went wrong.';
};
exports.reduceItems = function (state, action, options) {

@@ -65,5 +69,6 @@ if (state === void 0) { state = {}; }

if (action.type === options.actions.failed) {
var errorResolver = options.errorMessageResolver ? options.errorMessageResolver : defaultErrorMessageResolver;
return functions_1.updateItem(state, options.listKeyInState, {
loading: false,
error: action.error || action.payload,
error: errorResolver(action),
});

@@ -70,0 +75,0 @@ }

{
"name": "@galette/core",
"version": "0.0.8",
"version": "0.0.9",
"scripts": {

@@ -5,0 +5,0 @@ "build": "npm run build-ts",

Sorry, the diff of this file is not supported yet

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