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

@parca/store

Package Overview
Dependencies
Maintainers
4
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parca/store - npm Package Compare versions

Comparing version 0.16.49 to 0.16.50

4

CHANGELOG.md

@@ -6,2 +6,6 @@ # Change Log

## 0.16.50 (2022-11-14)
**Note:** Version bump only for package @parca/store
## [0.16.49](https://github.com/parca-dev/parca/compare/ui-v0.16.48...ui-v0.16.49) (2022-10-17)

@@ -8,0 +12,0 @@

7

dist/index.d.ts
import store from './store';
import { useAppDispatch, useAppSelector } from './hooks';
import { selectDarkMode, setDarkMode } from './slices/uiSlice';
import { selectCompareMode, setCompare, selectSearchNodeString, setSearchNodeString } from './slices/profileSlice';
export { store, useAppDispatch, useAppSelector, selectCompareMode, setCompare, selectDarkMode, setDarkMode, selectSearchNodeString, setSearchNodeString, };
export * from './slices/uiSlice';
export * from './slices/profileSlice';
export * from './store';
export { store, useAppDispatch, useAppSelector };

@@ -15,4 +15,5 @@ // Copyright 2022 The Parca Authors

import { useAppDispatch, useAppSelector } from './hooks';
import { selectDarkMode, setDarkMode } from './slices/uiSlice';
import { selectCompareMode, setCompare, selectSearchNodeString, setSearchNodeString, } from './slices/profileSlice';
export { store, useAppDispatch, useAppSelector, selectCompareMode, setCompare, selectDarkMode, setDarkMode, selectSearchNodeString, setSearchNodeString, };
export * from './slices/uiSlice';
export * from './slices/profileSlice';
export * from './store';
export { store, useAppDispatch, useAppSelector };

@@ -6,2 +6,3 @@ import { PayloadAction } from '@reduxjs/toolkit';

searchNodeString: string | undefined;
filterByFunction: string | undefined;
}

@@ -11,7 +12,9 @@ export declare const profileSlice: import("@reduxjs/toolkit").Slice<ProfileState, {

setSearchNodeString: (state: import("immer/dist/internal").WritableDraft<ProfileState>, action: PayloadAction<string | undefined>) => void;
setFilterByFunction: (state: import("immer/dist/internal").WritableDraft<ProfileState>, action: PayloadAction<string | undefined>) => void;
}, "profile">;
export declare const setCompare: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, string>, setSearchNodeString: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, string>;
export declare const setCompare: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean, string>, setSearchNodeString: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, string>, setFilterByFunction: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<string, string>;
export declare const selectCompareMode: (state: RootState) => boolean;
export declare const selectSearchNodeString: (state: RootState) => string | undefined;
export declare const selectFilterByFunction: (state: RootState) => string | undefined;
declare const _default: import("redux").Reducer<ProfileState, import("redux").AnyAction>;
export default _default;

@@ -19,2 +19,3 @@ // Copyright 2022 The Parca Authors

searchNodeString: undefined,
filterByFunction: undefined,
};

@@ -32,5 +33,8 @@ export var profileSlice = createSlice({

},
setFilterByFunction: function (state, action) {
state.filterByFunction = action.payload;
},
},
});
export var setCompare = (_a = profileSlice.actions, _a.setCompare), setSearchNodeString = _a.setSearchNodeString;
export var setCompare = (_a = profileSlice.actions, _a.setCompare), setSearchNodeString = _a.setSearchNodeString, setFilterByFunction = _a.setFilterByFunction;
// Other code such as selectors can use the imported `RootState` type

@@ -41,2 +45,5 @@ export var selectCompareMode = function (state) { return state.profile.compare; };

};
export var selectFilterByFunction = function (state) {
return state.profile.filterByFunction;
};
export default profileSlice.reducer;

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

/// <reference types="redux-persist/types/persistreducer" />
/// <reference types="redux-persist/types/persistReducer" />
import { ProfileState } from './slices/profileSlice';

@@ -15,3 +15,3 @@ import { UiState } from './slices/uiSlice';

profile: ProfileState;
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<import("redux").EmptyObject & {
} & import("redux-persist/es/persistReducer").PersistPartial, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<import("redux").EmptyObject & {
ui: UiState;

@@ -18,0 +18,0 @@ profile: ProfileState;

{
"name": "@parca/store",
"version": "0.16.49",
"version": "0.16.50",
"description": "State management for Parca UI",

@@ -24,3 +24,3 @@ "main": "dist/index.js",

},
"gitHead": "2d1d93e9e75a15dfe18875acc6924f8f2e16206f"
"gitHead": "3906954545b45cfa106e146c6dc648a855a0e330"
}

@@ -21,2 +21,3 @@ // Copyright 2022 The Parca Authors

searchNodeString: string | undefined;
filterByFunction: string | undefined;
}

@@ -28,2 +29,3 @@

searchNodeString: undefined,
filterByFunction: undefined,
};

@@ -42,6 +44,9 @@

},
setFilterByFunction: (state, action: PayloadAction<string | undefined>) => {
state.filterByFunction = action.payload;
},
},
});
export const {setCompare, setSearchNodeString} = profileSlice.actions;
export const {setCompare, setSearchNodeString, setFilterByFunction} = profileSlice.actions;

@@ -52,3 +57,5 @@ // Other code such as selectors can use the imported `RootState` type

state.profile.searchNodeString;
export const selectFilterByFunction = (state: RootState): string | undefined =>
state.profile.filterByFunction;
export default profileSlice.reducer;

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