@doreamonjs/plugin-log 1.2.13 → 1.10.57
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 +19 -0
- package/lib/model.js +10 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [1.10.57](https://github.com/doreamonjs/doreamon/compare/v1.10.56...v1.10.57) (2024-01-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @doreamonjs/plugin-log
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.10.47](https://github.com/doreamonjs/doreamon/compare/v1.10.46...v1.10.47) (2023-12-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* plugin log allow next action in page-creator ([e569ce0](https://github.com/doreamonjs/doreamon/commit/e569ce02162b62b0fb5f3737cea8b86e82c404d5))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.2.13](https://github.com/doreamonjs/doreamon/compare/v1.2.12...v1.2.13) (2022-11-14)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @doreamonjs/plugin-log
|
package/lib/model.js
CHANGED
|
@@ -63,11 +63,11 @@ class Model {
|
|
|
63
63
|
},
|
|
64
64
|
});
|
|
65
65
|
},
|
|
66
|
-
*cancel(action, { select, put }) {
|
|
66
|
+
*cancel(action, { select, put, take }) {
|
|
67
67
|
const { callback } = yield select((state) => state.confirms);
|
|
68
|
-
yield put({ type: '
|
|
68
|
+
yield put({ type: 'close' });
|
|
69
|
+
yield take('close/@@end');
|
|
69
70
|
callback === null || callback === void 0 ? void 0 : callback(null, 'cancel');
|
|
70
|
-
yield put({ type: 'queue/out' });
|
|
71
71
|
},
|
|
72
72
|
// data
|
|
73
73
|
*submit({ payload: { values: updates } }, { select, put, call, take }) {
|
|
@@ -103,8 +103,14 @@ class Model {
|
|
|
103
103
|
yield put({ type: 'queue/out' });
|
|
104
104
|
},
|
|
105
105
|
//
|
|
106
|
-
*close(action, { put }) {
|
|
106
|
+
*close(action, { put, select, take }) {
|
|
107
|
+
const { attributes, datasets, callback } = yield select((state) => state[constants_1.NAMESPACE]);
|
|
108
|
+
const { target } = attributes || {};
|
|
109
|
+
const { namespace, effect, props } = target || {};
|
|
110
|
+
const nextEffect = `${namespace}/${effect}`;
|
|
107
111
|
yield put({ type: 'save', payload: { visible: false } });
|
|
112
|
+
yield put({ ...props, type: nextEffect, payload: datasets });
|
|
113
|
+
yield take(`${nextEffect}/@@end`);
|
|
108
114
|
yield put({ type: 'queue/out' });
|
|
109
115
|
},
|
|
110
116
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doreamonjs/plugin-log",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.57",
|
|
4
4
|
"description": "log plugin for doreamonjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"doreamonjs",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@doreamonjs/plugin-shared": "^1.1.28",
|
|
69
|
-
"@doreamonjs/request": "^1.
|
|
69
|
+
"@doreamonjs/request": "^1.10.57",
|
|
70
70
|
"@sentry/browser": "^7.11.1",
|
|
71
71
|
"@sentry/tracing": "^7.11.1",
|
|
72
72
|
"@zcorky/delay": "^1.0.1",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"mixpanel-browser": "^2.45.0",
|
|
78
78
|
"thinkingdata-browser": "^1.6.0"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "502754827b46cfd8b1d6dc7abb9d12dce50ac8e4"
|
|
81
81
|
}
|