cozy-client 27.19.2 → 27.20.0
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/CozyClient.js +1 -1
- package/dist/store/index.js +8 -1
- package/package.json +3 -3
- package/types/store/index.d.ts +1 -8
package/dist/CozyClient.js
CHANGED
|
@@ -2464,7 +2464,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2464
2464
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2465
2465
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2466
2466
|
|
|
2467
|
-
CozyClient.version = "27.
|
|
2467
|
+
CozyClient.version = "27.20.0";
|
|
2468
2468
|
|
|
2469
2469
|
_microee.default.mixin(CozyClient);
|
|
2470
2470
|
|
package/dist/store/index.js
CHANGED
|
@@ -57,6 +57,8 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
57
57
|
|
|
58
58
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
59
59
|
|
|
60
|
+
var _cozyFlags = _interopRequireDefault(require("cozy-flags"));
|
|
61
|
+
|
|
60
62
|
var _redux = require("redux");
|
|
61
63
|
|
|
62
64
|
var _reduxThunk = _interopRequireDefault(require("redux-thunk"));
|
|
@@ -153,10 +155,15 @@ var combinedReducer = function combinedReducer() {
|
|
|
153
155
|
var _default = combinedReducer;
|
|
154
156
|
exports.default = _default;
|
|
155
157
|
|
|
158
|
+
var composedEnhancer = // @ts-ignore '__REDUX_DEVTOOLS_EXTENSION_COMPOSE__' doesn't exist 'Window & typeof globalThis'.ts(2339)
|
|
159
|
+
// should be (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ in ts file
|
|
160
|
+
// see https://github.com/reduxjs/redux-devtools/tree/main/extension#11-basic-store
|
|
161
|
+
(0, _cozyFlags.default)('debug') && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || _redux.compose;
|
|
162
|
+
|
|
156
163
|
var createStore = function createStore() {
|
|
157
164
|
return (0, _redux.createStore)((0, _redux.combineReducers)({
|
|
158
165
|
cozy: combinedReducer
|
|
159
|
-
}), (0, _redux.applyMiddleware)(_reduxThunk.default));
|
|
166
|
+
}), composedEnhancer((0, _redux.applyMiddleware)(_reduxThunk.default)));
|
|
160
167
|
};
|
|
161
168
|
|
|
162
169
|
exports.createStore = createStore;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.20.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"cozy-device-helper": "^1.12.0",
|
|
22
22
|
"cozy-flags": "2.7.1",
|
|
23
23
|
"cozy-logger": "^1.6.0",
|
|
24
|
-
"cozy-stack-client": "^27.19.
|
|
24
|
+
"cozy-stack-client": "^27.19.4",
|
|
25
25
|
"json-stable-stringify": "^1.0.1",
|
|
26
26
|
"lodash": "^4.17.13",
|
|
27
27
|
"microee": "^0.0.6",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react-native-ios11-devicecheck": "https://github.com/cozy/react-native-devicecheck#app-attest-v0.1"
|
|
72
72
|
},
|
|
73
73
|
"sideEffects": false,
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "aec196270a53b798b793823e8f5c98de40de3aab"
|
|
75
75
|
}
|
package/types/store/index.d.ts
CHANGED
|
@@ -7,14 +7,7 @@ export class StoreProxy {
|
|
|
7
7
|
getState(): any;
|
|
8
8
|
}
|
|
9
9
|
export default combinedReducer;
|
|
10
|
-
export function createStore():
|
|
11
|
-
cozy: {
|
|
12
|
-
documents: any;
|
|
13
|
-
queries: Record<string, import("../types").QueryState>;
|
|
14
|
-
};
|
|
15
|
-
}>, import("redux").AnyAction> & {
|
|
16
|
-
dispatch: any;
|
|
17
|
-
};
|
|
10
|
+
export function createStore(): any;
|
|
18
11
|
export function getStateRoot(state: any): any;
|
|
19
12
|
export function getCollectionFromState(state: any, doctype: any): any[];
|
|
20
13
|
export function getDocumentFromState(state: any, doctype: any, id: any): any;
|