@galette/core
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -18,3 +18,3 @@ import { Action } from "../store/redux/reducers"; | ||
export declare function createApiCallAction(actionName: string, call: object, meta?: object): { | ||
[x: number]: { | ||
[x: string]: { | ||
types: { | ||
@@ -21,0 +21,0 @@ type: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const redux_api_middleware_1 = require("redux-api-middleware"); | ||
let CALL_API; | ||
try { | ||
CALL_API = require("redux-api-middleware").CALL_API; | ||
} | ||
catch (e) { | ||
CALL_API = 'MODULE_NOT_INSTALLED'; | ||
} | ||
const functions_1 = require("../store/redux/functions"); | ||
@@ -27,3 +33,3 @@ exports.createReducer = functions_1.createMappedReducer; | ||
return { | ||
[redux_api_middleware_1.CALL_API]: Object.assign({}, call, { types: [ | ||
[CALL_API]: Object.assign({}, call, { types: [ | ||
{ type: actionName + "_SENT", meta }, | ||
@@ -30,0 +36,0 @@ { type: actionName + "_RECEIVED", meta }, |
{ | ||
"name": "@galette/core", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"scripts": { | ||
@@ -12,2 +12,3 @@ "build": "npm run build-ts", | ||
"@types/jasmine": "^2.8.8", | ||
"@types/node": "^10.7.1", | ||
"jest": "^23.4.1", | ||
@@ -14,0 +15,0 @@ "redux-api-middleware": "^2.3.0", |
Sorry, the diff of this file is not supported yet
26489
434
7