redux-fluent
Advanced tools
Comparing version 0.7.1 to 0.8.2
/**! | ||
* @name redux-fluent | ||
* @version 0.7.1 | ||
* @version 0.8.2 | ||
* @author Code-Y (https://github.com/Code-Y) | ||
@@ -11,6 +11,6 @@ * @description Tiny and eloquent way to manage a redux-like state manager | ||
* @build-info development - Tue Dec 26 2017 16:48:57 GMT+0000 (UTC) | ||
* @build-info development - Wed Dec 27 2017 10:48:14 GMT+0000 (UTC) | ||
* @homepage https://github.com/Code-Y/redux-fluent#readme | ||
* @keywords [ redux, ngrx-store, typescript, state-management ] | ||
* @license ISC | ||
* @license MIT | ||
**/ | ||
@@ -17,0 +17,0 @@ /******/ (function(modules) { // webpackBootstrap |
/**! | ||
* @name redux-fluent | ||
* @version 0.7.1 | ||
* @version 0.8.2 | ||
* @author Code-Y (https://github.com/Code-Y) | ||
@@ -11,8 +11,8 @@ * @description Tiny and eloquent way to manage a redux-like state manager | ||
* @build-info production - Tue Dec 26 2017 16:48:57 GMT+0000 (UTC) | ||
* @build-info production - Wed Dec 27 2017 10:48:14 GMT+0000 (UTC) | ||
* @homepage https://github.com/Code-Y/redux-fluent#readme | ||
* @keywords [ redux, ngrx-store, typescript, state-management ] | ||
* @license ISC | ||
* @license MIT | ||
**/ | ||
!function(e){function n(u){if(t[u])return t[u].exports;var r=t[u]={i:u,l:!1,exports:{}};return e[u].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var t={};n.m=e,n.c=t,n.d=function(e,t,u){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:u})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){e.exports=t(1)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=t(2);n.createAction=u.default;var r=t(3);n.createReducer=r.default},function(e,n,t){"use strict";function u(e){function n(n,t){var u=Object.create(null);return u.type=e,u.error=n instanceof Error,u.meta=t||null,u.payload=n||null,Object.freeze(u)}return Object.defineProperties(n,{type:{enumerable:!0,value:e},toString:{enumerable:!0,value:function(){return e}}}),n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=u},function(e,n,t){"use strict";function u(e,n){function t(t,u){return t||(a.default.isFunction(e)?e(t,u,n.config):e)}function u(e,u){return(n.actions[u?u.type:u]||[t]).reduce(function(e,t){return t(e,u,n.config)},e)}return f.squashQueues(n.caseQueue,n.doQueue,n.actions),Object.defineProperties(u,{domain:{enumerable:!0,value:n.domain},toString:{enumerable:!0,value:function(){return n.domain}}}),u}function r(e,n){return n.caseQueue.push(e.type||e.toString()),{case:function(e){return r(e,n)},do:function(e){return o(e,n)}}}function o(e,n){return n.doQueue.push(e),{do:function(e){return o(e,n)},default:function(e){return u(e,n)},case:function(e){return f.squashQueues(n.caseQueue,n.doQueue,n.actions),r(e,n)}}}function c(e){return{case:function(n){return r(n,e)},default:function(n){return u(n,e)}}}function i(e){var n={domain:e,actions:Object.create(null),caseQueue:f.default(),doQueue:f.default(),config:Object.create(null)};return Object.assign(c(n),{config:function(e){return n.config=e,c(n)}})}Object.defineProperty(n,"__esModule",{value:!0});var f=t(4),a=t(5);n.default=i},function(e,n,t){"use strict";function u(){var e=[];return{push:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];e=e.concat(n)},forEach:function(n){e.forEach(n)},flush:function(){e=[]}}}function r(e,n,t){e.forEach(function(e){return n.forEach(function(n){t[e]=(t[e]||[]).concat(n)})}),n.flush(),e.flush()}Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,n.squashQueues=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=function(){function e(){}return e.of=function(e){return{}.toString.call(e)},e.is=function(n,t){return e.of(n)===t},e.isFunction=function(n){return e.is(n,"[object Function]")},e}();n.default=u}]); | ||
//# sourceMappingURL=redux-fluent.production.js.map |
@@ -0,1 +1,23 @@ | ||
declare module 'redux-fluent' { | ||
export function createReducer< | ||
S extends { [key: string]: any }, | ||
C extends { [key: string]: any } = { [key: string]: any }, | ||
D extends string = string | ||
>(domain: D): { | ||
default: I.Default<D, S, C>; | ||
case: I.Case<D, S, C>; | ||
config<CC extends C>(config: CC): { | ||
default: I.Default<D, S, CC>; | ||
case: I.Case<D, S, CC> | ||
} | ||
}; | ||
export function createAction< | ||
P extends { [key: string]: any } = { [key: string]: any }, | ||
M extends { [key: string]: any } = { [key: string]: any }, | ||
T extends string = string | ||
>(type: T): I.ActionCreator<P, M, T>; | ||
} | ||
declare namespace /* Interfaces */ I { | ||
@@ -82,21 +104,1 @@ export interface Action { | ||
} | ||
export function createReducer< | ||
S extends { [key: string]: any }, | ||
C extends { [key: string]: any } = { [key: string]: any }, | ||
D extends string = string | ||
>(domain: D): { | ||
default: I.Default<D, S, C>; | ||
case: I.Case<D, S, C>; | ||
config<CC extends C>(config: CC): { | ||
default: I.Default<D, S, CC>; | ||
case: I.Case<D, S, CC> | ||
} | ||
}; | ||
export function createAction< | ||
P extends { [key: string]: any } = { [key: string]: any }, | ||
M extends { [key: string]: any } = { [key: string]: any }, | ||
T extends string = string | ||
>(type: T): I.ActionCreator<P, M, T>; |
@@ -0,1 +1,2 @@ | ||
/// <reference path="./index.d.ts" /> | ||
'use strict'; | ||
@@ -2,0 +3,0 @@ |
{ | ||
"name": "redux-fluent", | ||
"license": "ISC", | ||
"version": "0.7.1", | ||
"license": "MIT", | ||
"version": "0.8.2", | ||
"homepage": "https://github.com/Code-Y/redux-fluent#readme", | ||
@@ -19,2 +19,3 @@ "description": "Tiny and eloquent way to manage a redux-like state manager", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
@@ -21,0 +22,0 @@ "test": "jest --coverage", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49752
9
362