@redux-devtools/remote
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.defaultSocketOptions = void 0; | ||
const defaultSocketOptions = { | ||
const defaultSocketOptions = exports.defaultSocketOptions = { | ||
secure: false, | ||
@@ -16,3 +16,2 @@ hostname: 'localhost', | ||
} | ||
}; | ||
exports.defaultSocketOptions = defaultSocketOptions; | ||
}; |
@@ -19,3 +19,3 @@ "use strict"; | ||
var _devTools = _interopRequireWildcard(require("./devTools")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } |
import { Options } from '@redux-devtools/instrument'; | ||
import { Action, Reducer, StoreEnhancerStoreCreator } from 'redux'; | ||
export default function configureStore<S, A extends Action<unknown>, MonitorState, MonitorAction extends Action<unknown>>(next: StoreEnhancerStoreCreator<{}, unknown>, subscriber: Reducer<MonitorState, MonitorAction>, options: Options<S, A, MonitorState, MonitorAction>): StoreEnhancerStoreCreator<import("@redux-devtools/instrument").InstrumentExt<any, any, MonitorState>, {}>; | ||
export default function configureStore<S, A extends Action<string>, MonitorState, MonitorAction extends Action<string>>(next: StoreEnhancerStoreCreator<{}, unknown>, subscriber: Reducer<MonitorState, MonitorAction>, options: Options<S, A, MonitorState, MonitorAction>): StoreEnhancerStoreCreator<import("@redux-devtools/instrument").InstrumentExt<any, any, MonitorState>, {}>; |
@@ -14,3 +14,3 @@ import { Action, ActionCreator, StoreEnhancer, StoreEnhancerStoreCreator } from 'redux'; | ||
} | ||
interface Options<S, A extends Action<unknown>> { | ||
interface Options<S, A extends Action<string>> { | ||
readonly hostname?: string; | ||
@@ -47,9 +47,9 @@ readonly realtime?: boolean; | ||
readonly actionCreators?: { | ||
[key: string]: ActionCreator<Action<unknown>>; | ||
[key: string]: ActionCreator<Action<string>>; | ||
}; | ||
readonly stateSanitizer?: ((state: S, index?: number) => S) | undefined; | ||
readonly actionSanitizer?: (<A extends Action<unknown>>(action: A, id?: number) => A) | undefined; | ||
readonly actionSanitizer?: (<A extends Action<string>>(action: A, id?: number) => A) | undefined; | ||
} | ||
declare const _default: <S, A extends Action<unknown>>(options?: Options<S, A> | undefined) => StoreEnhancer; | ||
declare const _default: <S, A extends Action<string>>(options?: Options<S, A> | undefined) => StoreEnhancer; | ||
export default _default; | ||
export declare function composeWithDevTools(...funcs: [Options<unknown, Action<unknown>>] | StoreEnhancer[]): StoreEnhancer | ((...funcs: StoreEnhancer[]) => (...args: unknown[]) => StoreEnhancerStoreCreator<{}, {}>) | ((...args: unknown[]) => StoreEnhancerStoreCreator<{}, {}>); | ||
export declare function composeWithDevTools(...funcs: [Options<unknown, Action<string>>] | StoreEnhancer[]): StoreEnhancer | ((...funcs: StoreEnhancer[]) => (...args: unknown[]) => StoreEnhancerStoreCreator<{}, {}>) | ((...args: unknown[]) => StoreEnhancerStoreCreator<{}, {}>); |
{ | ||
"name": "@redux-devtools/remote", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Relay Redux actions to remote Redux DevTools.", | ||
@@ -33,5 +33,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@babel/runtime": "^7.22.11", | ||
"@redux-devtools/instrument": "^2.1.0", | ||
"@redux-devtools/utils": "^2.0.0", | ||
"@babel/runtime": "^7.23.2", | ||
"@redux-devtools/instrument": "^2.1.1", | ||
"@redux-devtools/utils": "^2.0.2", | ||
"jsan": "^3.1.14", | ||
@@ -43,18 +43,18 @@ "querystring": "^0.2.1", | ||
"devDependencies": { | ||
"@babel/cli": "^7.22.10", | ||
"@babel/core": "^7.22.11", | ||
"@babel/eslint-parser": "^7.22.11", | ||
"@babel/plugin-transform-runtime": "^7.22.10", | ||
"@babel/preset-env": "^7.22.14", | ||
"@babel/preset-typescript": "^7.22.11", | ||
"@types/jsan": "^3.1.2", | ||
"@types/node": "^18.17.14", | ||
"@types/rn-host-detect": "^1.2.0", | ||
"@types/socketcluster-client": "^16.0.0", | ||
"@typescript-eslint/eslint-plugin": "^6.5.0", | ||
"@typescript-eslint/parser": "^6.5.0", | ||
"eslint": "^8.48.0", | ||
"@babel/cli": "^7.23.0", | ||
"@babel/core": "^7.23.2", | ||
"@babel/eslint-parser": "^7.22.15", | ||
"@babel/plugin-transform-runtime": "^7.23.2", | ||
"@babel/preset-env": "^7.23.2", | ||
"@babel/preset-typescript": "^7.23.2", | ||
"@types/jsan": "^3.1.4", | ||
"@types/node": "^20.8.9", | ||
"@types/rn-host-detect": "^1.2.1", | ||
"@types/socketcluster-client": "^16.0.2", | ||
"@typescript-eslint/eslint-plugin": "^6.9.0", | ||
"@typescript-eslint/parser": "^6.9.0", | ||
"eslint": "^8.52.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"redux": "^4.2.1", | ||
"rimraf": "^5.0.1", | ||
"rimraf": "^5.0.5", | ||
"typescript": "~5.2.2" | ||
@@ -61,0 +61,0 @@ }, |
@@ -6,5 +6,5 @@ import { instrument, Options } from '@redux-devtools/instrument'; | ||
S, | ||
A extends Action<unknown>, | ||
A extends Action<string>, | ||
MonitorState, | ||
MonitorAction extends Action<unknown>, | ||
MonitorAction extends Action<string>, | ||
>( | ||
@@ -11,0 +11,0 @@ // eslint-disable-next-line @typescript-eslint/ban-types |
@@ -77,3 +77,3 @@ import { stringify, parse } from 'jsan'; | ||
interface Options<S, A extends Action<unknown>> { | ||
interface Options<S, A extends Action<string>> { | ||
readonly hostname?: string; | ||
@@ -110,7 +110,7 @@ readonly realtime?: boolean; | ||
readonly actionCreators?: { | ||
[key: string]: ActionCreator<Action<unknown>>; | ||
[key: string]: ActionCreator<Action<string>>; | ||
}; | ||
readonly stateSanitizer?: ((state: S, index?: number) => S) | undefined; | ||
readonly actionSanitizer?: | ||
| (<A extends Action<unknown>>(action: A, id?: number) => A) | ||
| (<A extends Action<string>>(action: A, id?: number) => A) | ||
| undefined; | ||
@@ -163,3 +163,3 @@ } | ||
interface DispatchMessage<S, A extends Action<unknown>> { | ||
interface DispatchMessage<S, A extends Action<string>> { | ||
readonly type: 'DISPATCH'; | ||
@@ -170,3 +170,3 @@ // eslint-disable-next-line @typescript-eslint/ban-types | ||
type Message<S, A extends Action<unknown>> = | ||
type Message<S, A extends Action<string>> = | ||
| ImportMessage | ||
@@ -181,3 +181,3 @@ | SyncMessage | ||
class DevToolsEnhancer<S, A extends Action<unknown>> { | ||
class DevToolsEnhancer<S, A extends Action<string>> { | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
@@ -268,3 +268,3 @@ store!: EnhancedStore<S, A, {}>; | ||
this.actionSanitizer as | ||
| ((action: Action<unknown>, id: number) => Action) | ||
| ((action: Action<string>, id: number) => Action) | ||
| undefined, | ||
@@ -501,5 +501,3 @@ nextActionId!, | ||
!this.started && | ||
this.startOn.indexOf( | ||
(action as PerformAction<A>).action.type as string, | ||
) !== -1 | ||
this.startOn.indexOf((action as PerformAction<A>).action.type) !== -1 | ||
) | ||
@@ -510,5 +508,3 @@ async(this.start); | ||
this.started && | ||
this.stopOn.indexOf( | ||
(action as PerformAction<A>).action.type as string, | ||
) !== -1 | ||
this.stopOn.indexOf((action as PerformAction<A>).action.type) !== -1 | ||
) | ||
@@ -519,5 +515,3 @@ async(this.stop); | ||
!this.started && | ||
this.sendOn.indexOf( | ||
(action as PerformAction<A>).action.type as string, | ||
) !== -1 | ||
this.sendOn.indexOf((action as PerformAction<A>).action.type) !== -1 | ||
) | ||
@@ -596,7 +590,7 @@ async(this.send); | ||
export default <S, A extends Action<unknown>>(options?: Options<S, A>) => | ||
export default <S, A extends Action<string>>(options?: Options<S, A>) => | ||
new DevToolsEnhancer<S, A>().enhance(options); | ||
const compose = | ||
(options: Options<unknown, Action<unknown>>) => | ||
(options: Options<unknown, Action<string>>) => | ||
(...funcs: StoreEnhancer[]) => | ||
@@ -607,3 +601,3 @@ (...args: unknown[]) => { | ||
function preEnhancer(createStore: StoreEnhancerStoreCreator) { | ||
return <S, A extends Action<unknown>>( | ||
return <S, A extends Action<string>>( | ||
reducer: Reducer<S, A>, | ||
@@ -615,3 +609,3 @@ preloadedState: PreloadedState<S>, | ||
...devToolsEnhancer.store, | ||
dispatch: (action: Action<unknown>) => | ||
dispatch: (action: Action<string>) => | ||
devToolsEnhancer.locked | ||
@@ -633,3 +627,3 @@ ? action | ||
export function composeWithDevTools( | ||
...funcs: [Options<unknown, Action<unknown>>] | StoreEnhancer[] | ||
...funcs: [Options<unknown, Action<string>>] | StoreEnhancer[] | ||
) { | ||
@@ -636,0 +630,0 @@ if (funcs.length === 0) { |
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
76515
1541
Updated@babel/runtime@^7.23.2
Updated@redux-devtools/utils@^2.0.2