@next-core/brick-kit 2.127.1 → 2.127.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.127.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.127.1...@next-core/brick-kit@2.127.2) (2022-08-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * ignore emitting if devtools is not presented ([9833e81](https://github.com/easyops-cn/next-core/commit/9833e81051f95e140ccd86940a7e6de5a7e526ca))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.127.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.127.0...@next-core/brick-kit@2.127.1) (2022-08-10)
7
18
 
8
19
  **Note:** Version bump only for package @next-core/brick-kit
@@ -1136,10 +1136,16 @@
1136
1136
 
1137
1137
  /* istanbul ignore next */
1138
1138
  function devtoolsHookEmit(type, payload) {
1139
+ var devtools = getDevHook();
1140
+
1141
+ if (!devtools) {
1142
+ return;
1143
+ }
1144
+
1139
1145
  var emit = () => {
1140
- var _getDevHook, _getDevHook$emit;
1146
+ var _devtools$emit;
1141
1147
 
1142
- (_getDevHook = getDevHook()) === null || _getDevHook === void 0 ? void 0 : (_getDevHook$emit = _getDevHook.emit) === null || _getDevHook$emit === void 0 ? void 0 : _getDevHook$emit.call(_getDevHook, {
1148
+ (_devtools$emit = devtools.emit) === null || _devtools$emit === void 0 ? void 0 : _devtools$emit.call(devtools, {
1143
1149
  type,
1144
1150
  payload
1145
1151
  });
@@ -1195,9 +1201,9 @@
1195
1201
  }
1196
1202
 
1197
1203
  function restoreDehydrated(value) {
1198
- var _getDevHook$restoreDe, _getDevHook2;
1204
+ var _getDevHook$restoreDe, _getDevHook;
1199
1205
 
1200
- return (_getDevHook$restoreDe = (_getDevHook2 = getDevHook()) === null || _getDevHook2 === void 0 ? void 0 : _getDevHook2.restoreDehydrated(value)) !== null && _getDevHook$restoreDe !== void 0 ? _getDevHook$restoreDe : value;
1206
+ return (_getDevHook$restoreDe = (_getDevHook = getDevHook()) === null || _getDevHook === void 0 ? void 0 : _getDevHook.restoreDehydrated(value)) !== null && _getDevHook$restoreDe !== void 0 ? _getDevHook$restoreDe : value;
1201
1207
  }
1202
1208
 
1203
1209
  function getItemFactory(storageType) {