@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 +11 -0
- package/dist/index.bundle.js +10 -4
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +10 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/types/internal/devtools.d.ts.map +1 -1
- package/package.json +2 -2
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
|
package/dist/index.bundle.js
CHANGED
|
@@ -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
|
|
1146
|
+
var _devtools$emit;
|
|
1141
1147
|
|
|
1142
|
-
(
|
|
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,
|
|
1204
|
+
var _getDevHook$restoreDe, _getDevHook;
|
|
1199
1205
|
|
|
1200
|
-
return (_getDevHook$restoreDe = (
|
|
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) {
|