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

reshow-return

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-return - npm Package Compare versions

Comparing version 0.17.32 to 0.17.33

6

build/cjs/src/connectOptions.js

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

/**
* @typedef {any[]|object} InitStatesProps
*/
/**
* @param {object} props

@@ -62,3 +66,3 @@ * @param {object} [more]

/**
* @param {any[]|object} initStates
* @param {InitStatesProps} initStates
* @returns {[any[], function(string):any]}

@@ -65,0 +69,0 @@ */

@@ -13,2 +13,21 @@ "use strict";

var _excluded = ["children", "backfillProps"];
/**
* @typedef {object} GetReturnOptions
* @property {string} [displayName]
* @property {function} [useConnect]
* @property {string[]} [cleanProps]
* @property {object} [options]
*/
/**
* @typedef {object} ReturnProps
* @property {string} store
* @property {import("../../connectOptions").InitStatesProps} initStates
* @property {import("react").ReactChild} children
* @property {boolean} backfillProps
*/
/**
* @param {GetReturnOptions} props
*/
var getReturn = function getReturn(_temp) {

@@ -22,2 +41,5 @@ var _ref = _temp === void 0 ? {} : _temp,

useConnect = useConnect || (0, _reshowFlux.useConnect)((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, _connectOptions["default"]), options));
/**
* @param {ReturnProps} props
*/
var Return = function Return(props) {

@@ -24,0 +46,0 @@ var children = props.children,

5

package.json
{
"version": "0.17.32",
"version": "0.17.33",
"name": "reshow-return",

@@ -52,3 +52,4 @@ "repository": {

"mocha": "npm run mochaFor -- 'build/es/**/__tests__/*.mjs'",
"test": "npm run build && npm run mocha",
"test": "npm run build && npm run mochaFor -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test_output/mocha.xml 'build/es/**/__tests__/*.mjs'",
"test:run": "npm run build && npm run mocha",
"prepublishOnly": "npm run test"

@@ -55,0 +56,0 @@ },

export default connectOptions;
export type InitStatesProps = any[] | object;
declare namespace connectOptions {

@@ -7,6 +8,6 @@ export { calculateState };

/**
* @param {any[]|object} initStates
* @param {InitStatesProps} initStates
* @returns {[any[], function(string):any]}
*/
export function stateKeyLocator(initStates: any[] | object): [any[], (arg0: string) => any];
export function stateKeyLocator(initStates: InitStatesProps): [any[], (arg0: string) => any];
/**

@@ -19,2 +20,5 @@ * @param {any} prevState

/**
* @typedef {any[]|object} InitStatesProps
*/
/**
* @param {object} props

@@ -21,0 +25,0 @@ * @param {object} [more]

export default Return;
declare function Return(props: any): JSX.Element;
export type GetReturnOptions = {
displayName?: string;
useConnect?: Function;
cleanProps?: string[];
options?: object;
};
export type ReturnProps = {
store: string;
initStates: import("../../connectOptions").InitStatesProps;
children: import("react").ReactChild;
backfillProps: boolean;
};
/**
* @param {ReturnProps} props
*/
declare function Return(props: ReturnProps): JSX.Element;
declare namespace Return {
export { displayName };
}
export function getReturn({ displayName, useConnect, cleanProps, options, }?: {
displayName?: string;
useConnect: any;
cleanProps: any;
options: any;
}): {
(props: any): JSX.Element;
/**
* @typedef {object} GetReturnOptions
* @property {string} [displayName]
* @property {function} [useConnect]
* @property {string[]} [cleanProps]
* @property {object} [options]
*/
/**
* @typedef {object} ReturnProps
* @property {string} store
* @property {import("../../connectOptions").InitStatesProps} initStates
* @property {import("react").ReactChild} children
* @property {boolean} backfillProps
*/
/**
* @param {GetReturnOptions} props
*/
export function getReturn({ displayName, useConnect, cleanProps, options, }?: GetReturnOptions): {
(props: ReturnProps): JSX.Element;
displayName: string;
};

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