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

@reduxjs/toolkit

Package Overview
Dependencies
Maintainers
5
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reduxjs/toolkit - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

136

dist/query/react/rtk-query-react.legacy-esm.js

@@ -0,1 +1,33 @@

var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
target[prop] = source[prop];
if (source != null && __getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(source)) {
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
target[prop] = source[prop];
}
return target;
};
// src/query/react/index.ts

@@ -42,3 +74,3 @@ import { buildCreateApi, coreModule } from "@reduxjs/toolkit/query";

let serialized = "";
const cached = cache?.get(queryArgs);
const cached = cache == null ? void 0 : cache.get(queryArgs);
if (typeof cached === "string") {

@@ -52,3 +84,3 @@ serialized = cached;

if (isPlainObject(queryArgs)) {
cache?.set(queryArgs, stringified);
cache == null ? void 0 : cache.set(queryArgs, stringified);
}

@@ -100,4 +132,3 @@ serialized = stringified;

if (selected.isUninitialized) {
return {
...selected,
return __spreadProps(__spreadValues({}, selected), {
isUninitialized: false,

@@ -107,3 +138,3 @@ isFetching: true,

status: QueryStatus.pending
};
});
}

@@ -134,3 +165,3 @@ return selected;

function queryStatePreSelector(currentState, lastResult, queryArgs) {
if (lastResult?.endpointName && currentState.isUninitialized) {
if ((lastResult == null ? void 0 : lastResult.endpointName) && currentState.isUninitialized) {
const {

@@ -151,3 +182,3 @@ endpointName

}
let data = currentState.isSuccess ? currentState.data : lastResult?.data;
let data = currentState.isSuccess ? currentState.data : lastResult == null ? void 0 : lastResult.data;
if (data === void 0)

@@ -159,4 +190,3 @@ data = currentState.data;

const isSuccess = currentState.isSuccess || isFetching && hasData;
return {
...currentState,
return __spreadProps(__spreadValues({}, currentState), {
data,

@@ -167,3 +197,3 @@ currentData: currentState.data,

isSuccess
};
});
}

@@ -173,6 +203,3 @@ function usePrefetch(endpointName, defaultOptions) {

const stableDefaultOptions = useShallowStableValue(defaultOptions);
return useCallback((arg, options) => dispatch(api.util.prefetch(endpointName, arg, {
...stableDefaultOptions,
...options
})), [endpointName, dispatch, stableDefaultOptions]);
return useCallback((arg, options) => dispatch(api.util.prefetch(endpointName, arg, __spreadValues(__spreadValues({}, stableDefaultOptions), options))), [endpointName, dispatch, stableDefaultOptions]);
}

@@ -196,3 +223,3 @@ function buildQueryHooks(name) {

if (process.env.NODE_ENV !== "production") {
if (typeof returnedValue !== "object" || typeof returnedValue?.type === "string") {
if (typeof returnedValue !== "object" || typeof (returnedValue == null ? void 0 : returnedValue.type) === "string") {
throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage(37) : `Warning: Middleware for RTK-Query API at reducerPath "${api.reducerPath}" has not been added to the store.

@@ -241,2 +268,3 @@ You must add the middleware for RTK-Query to function correctly!`);

usePossiblyImmediateEffect(() => {
var _a;
const lastPromise = promiseRef.current;

@@ -247,9 +275,9 @@ if (typeof process !== "undefined" && process.env.NODE_ENV === "removeMeOnCompilation") {

if (stableArg === skipToken) {
lastPromise?.unsubscribe();
lastPromise == null ? void 0 : lastPromise.unsubscribe();
promiseRef.current = void 0;
return;
}
const lastSubscriptionOptions = promiseRef.current?.subscriptionOptions;
const lastSubscriptionOptions = (_a = promiseRef.current) == null ? void 0 : _a.subscriptionOptions;
if (!lastPromise || lastPromise.arg !== stableArg) {
lastPromise?.unsubscribe();
lastPromise == null ? void 0 : lastPromise.unsubscribe();
const promise = dispatch(initiate(stableArg, {

@@ -266,3 +294,4 @@ subscriptionOptions: stableSubscriptionOptions,

return () => {
promiseRef.current?.unsubscribe();
var _a;
(_a = promiseRef.current) == null ? void 0 : _a.unsubscribe();
promiseRef.current = void 0;

@@ -276,5 +305,6 @@ };

refetch: () => {
var _a;
if (!promiseRef.current)
throw new Error(process.env.NODE_ENV === "production" ? _formatProdErrorMessage2(38) : "Cannot refetch a query that has not been started yet.");
return promiseRef.current?.refetch();
return (_a = promiseRef.current) == null ? void 0 : _a.refetch();
}

@@ -302,5 +332,6 @@ }), []);

usePossiblyImmediateEffect(() => {
const lastSubscriptionOptions = promiseRef.current?.subscriptionOptions;
var _a, _b;
const lastSubscriptionOptions = (_a = promiseRef.current) == null ? void 0 : _a.subscriptionOptions;
if (stableSubscriptionOptions !== lastSubscriptionOptions) {
promiseRef.current?.updateSubscriptionOptions(stableSubscriptionOptions);
(_b = promiseRef.current) == null ? void 0 : _b.updateSubscriptionOptions(stableSubscriptionOptions);
}

@@ -315,3 +346,4 @@ }, [stableSubscriptionOptions]);

batch(() => {
promiseRef.current?.unsubscribe();
var _a;
(_a = promiseRef.current) == null ? void 0 : _a.unsubscribe();
promiseRef.current = promise = dispatch(initiate(arg2, {

@@ -327,3 +359,4 @@ subscriptionOptions: subscriptionOptionsRef.current,

return () => {
promiseRef?.current?.unsubscribe();
var _a;
(_a = promiseRef == null ? void 0 : promiseRef.current) == null ? void 0 : _a.unsubscribe();
};

@@ -371,6 +404,5 @@ }, []);

const [trigger, arg] = useLazyQuerySubscription(options);
const queryStateResults = useQueryState(arg, {
...options,
const queryStateResults = useQueryState(arg, __spreadProps(__spreadValues({}, options), {
skip: arg === UNINITIALIZED_VALUE
});
}));
const info = useMemo2(() => ({

@@ -383,6 +415,5 @@ lastArg: arg

const querySubscriptionResults = useQuerySubscription(arg, options);
const queryStateResults = useQueryState(arg, {
selectFromResult: arg === skipToken || options?.skip ? void 0 : noPendingQueryStateSelector,
...options
});
const queryStateResults = useQueryState(arg, __spreadValues({
selectFromResult: arg === skipToken || (options == null ? void 0 : options.skip) ? void 0 : noPendingQueryStateSelector
}, options));
const {

@@ -404,6 +435,3 @@ data,

});
return useMemo2(() => ({
...queryStateResults,
...querySubscriptionResults
}), [queryStateResults, querySubscriptionResults]);
return useMemo2(() => __spreadValues(__spreadValues({}, queryStateResults), querySubscriptionResults), [queryStateResults, querySubscriptionResults]);
}

@@ -424,4 +452,4 @@ };

useEffect3(() => () => {
if (!promise?.arg.fixedCacheKey) {
promise?.reset();
if (!(promise == null ? void 0 : promise.arg.fixedCacheKey)) {
promise == null ? void 0 : promise.reset();
}

@@ -441,7 +469,7 @@ }, [promise]);

fixedCacheKey,
requestId: promise?.requestId
requestId: promise == null ? void 0 : promise.requestId
}), [fixedCacheKey, promise, select]);
const mutationSelector = useMemo2(() => selectFromResult ? createSelector2([selectDefaultResult], selectFromResult) : selectDefaultResult, [selectFromResult, selectDefaultResult]);
const currentState = useSelector(mutationSelector, shallowEqual2);
const originalArgs = fixedCacheKey == null ? promise?.arg.originalArgs : void 0;
const originalArgs = fixedCacheKey == null ? promise == null ? void 0 : promise.arg.originalArgs : void 0;
const reset = useCallback(() => {

@@ -478,4 +506,3 @@ batch(() => {

});
const finalState = useMemo2(() => ({
...currentState,
const finalState = useMemo2(() => __spreadProps(__spreadValues({}, currentState), {
originalArgs,

@@ -504,13 +531,18 @@ reset

var reactHooksModuleName = /* @__PURE__ */ Symbol();
var reactHooksModule = ({
batch = rrBatch,
hooks = {
useDispatch: rrUseDispatch,
useSelector: rrUseSelector,
useStore: rrUseStore
},
createSelector: createSelector2 = _createSelector,
unstable__sideEffectsInRender = false,
...rest
} = {}) => {
var reactHooksModule = (_a = {}) => {
var _b = _a, {
batch = rrBatch,
hooks = {
useDispatch: rrUseDispatch,
useSelector: rrUseSelector,
useStore: rrUseStore
},
createSelector: createSelector2 = _createSelector,
unstable__sideEffectsInRender = false
} = _b, rest = __objRest(_b, [
"batch",
"hooks",
"createSelector",
"unstable__sideEffectsInRender"
]);
if (process.env.NODE_ENV !== "production") {

@@ -517,0 +549,0 @@ const hookNames = ["useDispatch", "useSelector", "useStore"];

@@ -0,1 +1,21 @@

var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
// src/react/index.ts

@@ -22,7 +42,6 @@ export * from "@reduxjs/toolkit";

const createDispatchWithMiddlewareHook = createDispatchWithMiddlewareHookFactory();
return {
...instance,
return __spreadProps(__spreadValues({}, instance), {
createDispatchWithMiddlewareHookFactory,
createDispatchWithMiddlewareHook
};
});
};

@@ -29,0 +48,0 @@ export {

@@ -0,0 +0,0 @@ // inlined from https://github.com/EskiMojo14/uncheckedindexed

{
"name": "@reduxjs/toolkit",
"version": "2.2.1",
"version": "2.2.2",
"description": "The official, opinionated, batteries-included toolset for efficient Redux development",

@@ -5,0 +5,0 @@ "author": "Mark Erikson <mark@isquaredsoftware.com>",

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ # Redux Toolkit

@@ -0,0 +0,0 @@ import type { Middleware } from 'redux'

@@ -0,0 +0,0 @@ import type { StoreEnhancer } from 'redux'

@@ -0,0 +0,0 @@ import type { UnknownAction, Reducer, StateFromReducersMapObject } from 'redux'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import { isAction } from 'redux'

@@ -0,0 +0,0 @@ import type { Dispatch, UnknownAction } from 'redux'

@@ -0,0 +0,0 @@ import { current, isDraft } from 'immer'

@@ -0,0 +0,0 @@ import type { Draft } from 'immer'

@@ -0,0 +0,0 @@ import type { Action, UnknownAction, Reducer } from 'redux'

@@ -0,0 +0,0 @@ import type { Action, ActionCreator, StoreEnhancer } from 'redux'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { Action, Middleware, UnknownAction } from 'redux'

@@ -0,0 +0,0 @@ import type { Middleware } from 'redux'

@@ -0,0 +0,0 @@ import type { Context } from 'react'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { EntityAdapter, EntityId, EntityAdapterOptions } from './models'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ export { createEntityAdapter } from './create_adapter'

@@ -0,0 +0,0 @@ import type { UncheckedIndexedAccess } from '../uncheckedindexed'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import { produce as createNextState, isDraft } from 'immer'

@@ -0,0 +0,0 @@ import type { CreateSelectorFunction, Selector, createSelector } from 'reselect'

@@ -0,0 +0,0 @@ import { createEntityAdapter, createSlice } from '../..'

@@ -0,0 +0,0 @@ import type { EntityAdapter } from '../index'

@@ -0,0 +0,0 @@ export interface BookModel {

@@ -0,0 +0,0 @@ import type { EntityAdapter, EntityState } from '../models'

@@ -0,0 +0,0 @@ import type { EntityAdapter } from '../index'

@@ -0,0 +0,0 @@ import { createDraftSafeSelectorCreator } from '../../createDraftSafeSelector'

@@ -0,0 +0,0 @@ import type { EntityAdapter, EntityState } from '../models'

@@ -0,0 +0,0 @@ import { vi } from 'vitest'

@@ -0,0 +0,0 @@ import type { Draft } from 'immer'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import type { StoreEnhancer } from 'redux'

@@ -0,0 +0,0 @@ import type { Middleware, UnknownAction } from 'redux'

@@ -0,0 +0,0 @@ import type { Middleware } from 'redux'

@@ -0,0 +0,0 @@ // This must remain here so that the `mangleErrors.cjs` build script

@@ -0,0 +0,0 @@ import type { SerializedError } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type { Action, Dispatch, MiddlewareAPI, UnknownAction } from 'redux'

@@ -0,0 +0,0 @@ import { TaskAbortError } from './exceptions'

@@ -0,0 +0,0 @@ import type { EnhancedStore } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import { createListenerEntry } from '@internal/listenerMiddleware'

@@ -0,0 +0,0 @@ import type { Action } from 'redux'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { AbortSignalWithReason } from './types'

@@ -0,0 +0,0 @@ import type { Action } from 'redux'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ // Borrowed from https://github.com/ai/nanoid/blob/3.0.2/non-secure/index.js

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { ThunkDispatch } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type { SerializedError } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { InternalHandlerBuilder, SubscriptionSelectors } from './types'

@@ -0,1 +1,2 @@

import { isAnyOf } from '@reduxjs/toolkit'
import type { BaseQueryFn } from '../../baseQueryTypes'

@@ -52,2 +53,3 @@ import type { QueryDefinition } from '../../endpointDefinitions'

api,
queryThunk,
context,

@@ -58,2 +60,8 @@ internalState,

const canTriggerUnsubscribe = isAnyOf(
unsubscribeQueryResult.match,
queryThunk.fulfilled,
queryThunk.rejected
)
function anySubscriptionsRemainingForKey(queryCacheKey: string) {

@@ -71,5 +79,7 @@ const subscriptions = internalState.currentSubscriptions[queryCacheKey]

) => {
if (unsubscribeQueryResult.match(action)) {
if (canTriggerUnsubscribe(action)) {
const state = mwApi.getState()[reducerPath]
const { queryCacheKey } = action.payload
const { queryCacheKey } = unsubscribeQueryResult.match(action)
? action.payload
: action.meta.arg

@@ -76,0 +86,0 @@ handleUnsubscribe(

@@ -0,0 +0,0 @@ import { isAsyncThunkAction, isFulfilled } from '../rtkImports'

@@ -0,0 +0,0 @@ import type { InternalHandlerBuilder } from './types'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { QuerySubstateIdentifier, Subscribers } from '../apiState'

@@ -0,0 +0,0 @@ import { isPending, isRejected, isFulfilled } from '../rtkImports'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import { QueryStatus } from '../apiState'

@@ -0,0 +0,0 @@ import type { createSelector as _createSelector } from './rtkImports'

@@ -0,0 +0,0 @@ import type { Action, PayloadAction, UnknownAction } from '@reduxjs/toolkit'

@@ -324,2 +324,6 @@ import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs'

if (ret.patches.length === 0) {
return ret
}
dispatch(

@@ -326,0 +330,0 @@ api.util.patchQueryData(

@@ -0,0 +0,0 @@ import { buildCreateApi, CreateApi } from '../createApi'

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ // This file exists to consolidate all of the imports from the `@reduxjs/toolkit` package.

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { Api, ApiContext, Module, ModuleName } from './apiTypes'

@@ -0,0 +0,0 @@ import type { QueryCacheKey } from './core/apiState'

@@ -0,0 +0,0 @@ import type { SerializeQueryArgs } from './defaultSerializeQueryArgs'

@@ -0,0 +0,0 @@ import type { BaseQueryFn } from './baseQueryTypes'

@@ -0,0 +0,0 @@ import { joinUrls } from './utils'

@@ -0,0 +0,0 @@ export class HandledError {

@@ -0,0 +0,0 @@ // This must remain here so that the `mangleErrors.cjs` build script

@@ -0,0 +0,0 @@ import type {

export const UNINITIALIZED_VALUE = Symbol()
export type UninitializedValue = typeof UNINITIALIZED_VALUE

@@ -0,0 +0,0 @@ // This must remain here so that the `mangleErrors.cjs` build script

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { UseMutation, UseLazyQuery, UseQuery } from './buildHooks'

@@ -0,0 +0,0 @@ import { useEffect, useRef, useMemo } from 'react'

@@ -0,0 +0,0 @@ import { useEffect, useRef } from 'react'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import { createApi, fetchBaseQuery, retry } from '@reduxjs/toolkit/query'

@@ -0,0 +0,0 @@ import { createApi } from '@reduxjs/toolkit/query'

@@ -0,0 +0,0 @@ import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'

@@ -0,0 +0,0 @@ import { createSlice } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query'

@@ -0,0 +0,0 @@ import type { FetchBaseQueryMeta } from '@reduxjs/toolkit/query'

@@ -0,0 +0,0 @@ import { copyWithStructuralSharing } from '@reduxjs/toolkit/query'

@@ -0,0 +0,0 @@ import { setupApiStore } from '@internal/tests/utils/helpers'

@@ -0,0 +0,0 @@ import { server } from '@internal/query/tests/mocks/server'

@@ -0,0 +0,0 @@ import { defaultSerializeQueryArgs } from '@internal/query/defaultSerializeQueryArgs'

@@ -0,0 +0,0 @@ import { headersToObject } from 'headers-polyfill'

@@ -0,0 +0,0 @@ import { setupServer } from 'msw/node'

@@ -0,0 +0,0 @@ import { createApi, QueryStatus } from '@reduxjs/toolkit/query'

@@ -0,0 +0,0 @@ import type { RetryOptions } from '@internal/query/retry'

@@ -0,0 +0,0 @@ import type { BaseQueryFn } from '@reduxjs/toolkit/query'

@@ -0,0 +0,0 @@ import type { SerializedError } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import { vi } from 'vitest'

@@ -0,0 +0,0 @@ export type Id<T> = { [K in keyof T]: T[K] } & {}

export function capitalize(str: string) {
return str.replace(str[0], str[0].toUpperCase())
}

@@ -0,0 +0,0 @@ import { isPlainObject as _iPO } from '../core/rtkImports'

@@ -0,0 +0,0 @@ // Fast method for counting an object's keys

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export * from './isAbsoluteUrl'

export function isNotNullish<T>(v: T | null | undefined): v is T {
return v != null
}

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export function isValidUrl(string: string) {

@@ -0,0 +0,0 @@ import { isAbsoluteUrl } from './isAbsoluteUrl'

@@ -0,0 +0,0 @@ // This must remain here so that the `mangleErrors.cjs` build script

@@ -0,0 +0,0 @@ import type { Middleware } from 'redux'

@@ -0,0 +0,0 @@ import type { ActionCreatorInvariantMiddlewareOptions } from '@internal/actionCreatorInvariantMiddleware'

@@ -0,0 +0,0 @@ import { configureStore } from '../configureStore'

@@ -0,0 +0,0 @@ import type { PayloadAction } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type { Reducer, Slice, WithSlice } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type { WithSlice } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import * as DevTools from '@internal/devtoolsExtension'

@@ -0,0 +0,0 @@ import { createAction, isActionCreator } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { UnknownAction } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import { createDraftSafeSelector, createSelector } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import { createDraftSafeSelector } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { ActionReducerMapBuilder, Reducer } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import { vi } from 'vitest'

@@ -0,0 +0,0 @@ import type {

@@ -0,0 +0,0 @@ import type { PayloadAction, WithSlice } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type { StoreEnhancer } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import { buildGetDefaultMiddleware } from '@internal/getDefaultMiddleware'

@@ -0,0 +0,0 @@ import { Tuple } from '@internal/utils'

@@ -0,0 +0,0 @@ import type { SerializedError } from '@internal/createAsyncThunk'

@@ -0,0 +0,0 @@ import type { UnknownAction } from 'redux'

@@ -0,0 +0,0 @@ import { vi } from 'vitest'

@@ -0,0 +0,0 @@ import { Tuple } from '@reduxjs/toolkit'

@@ -0,0 +0,0 @@ import type { Assertion, AsymmetricMatchersContaining } from 'vitest'

@@ -0,0 +0,0 @@ import type { Middleware, StoreEnhancer } from 'redux'

@@ -0,0 +0,0 @@ // inlined from https://github.com/EskiMojo14/uncheckedindexed

@@ -0,0 +0,0 @@ import { produce as createNextState, isDraftable } from 'immer'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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