@equinor/cpl-feature-flag-react 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -115,8 +115,8 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
115
115
|
function buildFeatureFlagContext(storage, sessionStorageKey, config) {
|
|
116
116
|
const FeatureFlagContext = (0, import_react.createContext)(config);
|
|
117
117
|
const useFeatureFlagConfig = () => (0, import_react.useContext)(FeatureFlagContext);
|
|
118
|
-
const FeatureFlagDispatchContext = (0, import_react.createContext)(() => {
|
|
119
|
-
});
|
|
118
|
+
const FeatureFlagDispatchContext = (0, import_react.createContext)((() => {
|
|
119
|
+
}));
|
|
120
120
|
const useFeatureFlagDispatch = () => (0, import_react.useContext)(FeatureFlagDispatchContext);
|
|
121
121
|
const reducer = buildReducer(storage, sessionStorageKey);
|
|
122
122
|
const FeatureFlagProvider = ({ children }) => {
|
package/dist/index.mjs
CHANGED
|
@@ -82,8 +82,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
82
82
|
function buildFeatureFlagContext(storage, sessionStorageKey, config) {
|
|
83
83
|
const FeatureFlagContext = createContext(config);
|
|
84
84
|
const useFeatureFlagConfig = () => useContext(FeatureFlagContext);
|
|
85
|
-
const FeatureFlagDispatchContext = createContext(() => {
|
|
86
|
-
});
|
|
85
|
+
const FeatureFlagDispatchContext = createContext((() => {
|
|
86
|
+
}));
|
|
87
87
|
const useFeatureFlagDispatch = () => useContext(FeatureFlagDispatchContext);
|
|
88
88
|
const reducer = buildReducer(storage, sessionStorageKey);
|
|
89
89
|
const FeatureFlagProvider = ({ children }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/cpl-feature-flag-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"react": "^18.2.0",
|
|
19
19
|
"react-dom": "^18.2.0",
|
|
20
20
|
"styled-components": "^6.1.14",
|
|
21
|
-
"tsup": "^8.
|
|
21
|
+
"tsup": "^8.5.1",
|
|
22
22
|
"@equinor/cpl-eslint-config": "1.0.0",
|
|
23
23
|
"@equinor/cpl-typescript-config": "0.0.2"
|
|
24
24
|
},
|