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

reshow-flux-base

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-flux-base - npm Package Compare versions

Comparing version 0.17.32 to 0.17.34

45

build/cjs/src/createReducer.js

@@ -30,2 +30,22 @@ "use strict";

/**
* @template StateType
* @interface
*/
exports.ActionObject = ActionObject;
var StoreObject = /*#__PURE__*/(0, _createClass2["default"])(function StoreObject() {
(0, _classCallCheck2["default"])(this, StoreObject);
/** @type {function():State<StateType>} */
(0, _defineProperty2["default"])(this, "reset", void 0);
/** @type {function():State<StateType>} */
(0, _defineProperty2["default"])(this, "getState", void 0);
/** @type {emiter<StateType>["add"]} */
(0, _defineProperty2["default"])(this, "addListener", void 0);
/** @type {emiter<StateType>["remove"]} */
(0, _defineProperty2["default"])(this, "removeListener", void 0);
});
/**
* @template StateType
* @typedef {State<StateType>|function():State<StateType>} InitStateType
*/
/**
* @typedef {string|boolean|ActionObject|Payload|function(State<any>):ActionObject} DispatchAction

@@ -69,3 +89,3 @@ */

*/
exports.ActionObject = ActionObject;
exports.StoreObject = StoreObject;
var getMitt = function getMitt() {

@@ -140,24 +160,5 @@ /**

* @template StateType
* @interface
*/
exports.refineAction = refineAction;
var StoreObject = /*#__PURE__*/(0, _createClass2["default"])(function StoreObject() {
(0, _classCallCheck2["default"])(this, StoreObject);
/** @type {function():State<StateType>} */
(0, _defineProperty2["default"])(this, "reset", void 0);
/** @type {function():State<StateType>} */
(0, _defineProperty2["default"])(this, "getState", void 0);
/** @type {emiter<StateType>["add"]} */
(0, _defineProperty2["default"])(this, "addListener", void 0);
/** @type {emiter<StateType>["remove"]} */
(0, _defineProperty2["default"])(this, "removeListener", void 0);
});
/**
* @template StateType
* @typedef {State<StateType>|function():State<StateType>} InitStateType
*/
/**
* @template StateType
* @typedef {function(State<StateType>, ActionObject): State<any>} ReducerType
*/
/**

@@ -169,3 +170,3 @@ * @template StateType

*/
exports.StoreObject = StoreObject;
exports.refineAction = refineAction;
var createReducer = function createReducer(reducer, initState) {

@@ -172,0 +173,0 @@ var state = {

{
"version": "0.17.32",
"version": "0.17.34",
"name": "reshow-flux-base",

@@ -4,0 +4,0 @@ "repository": {

@@ -17,3 +17,2 @@ /**

}
export function refineAction<StateType>(action: DispatchAction, params?: Payload, prevState?: StateType): ActionObject;
/**

@@ -33,2 +32,3 @@ * @template StateType

}
export function refineAction<StateType>(action: DispatchAction, params?: Payload, prevState?: StateType): ActionObject;
export default createReducer;

@@ -39,2 +39,3 @@ export type State<StateType> = StateType;

};
export type InitStateType<StateType> = State<StateType> | (() => State<StateType>);
export type DispatchAction = string | boolean | ActionObject | Payload | ((arg0: State<any>) => ActionObject);

@@ -52,10 +53,5 @@ export type FluxHandler = (arg0: State<any> | null, arg1: ActionObject | null, arg2: State<any> | null) => State<any>;

};
export type InitStateType<StateType> = State<StateType> | (() => State<StateType>);
export type ReducerType<StateType> = (arg0: State<StateType>, arg1: ActionObject) => State<any>;
/**
* @template StateType
* @typedef {State<StateType>|function():State<StateType>} InitStateType
*/
/**
* @template StateType
* @typedef {function(State<StateType>, ActionObject): State<any>} ReducerType

@@ -62,0 +58,0 @@ */

export { default as SimpleMap } from "./SimpleMap";
export type StoreObject = import("./createReducer").StoreObject<any>;
export type StoreObject<StateType> = import("./createReducer").StoreObject<StateType>;
export type InitStateType<StateType> = import("./createReducer").InitStateType<StateType>;
export type ActionObject = import("./createReducer").ActionObject;
export { default as createReducer, refineAction } from "./createReducer";

Sorry, the diff of this file is not supported yet

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