ztxkutils 2.4.1 → 2.4.4
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/authority-fad2028d.js +366 -0
- package/dist/authority.d.ts +3 -0
- package/dist/authority.js +1 -1
- package/dist/constants.d.ts +4 -4
- package/dist/constants.js +4 -4
- package/dist/fileOperation.js +1 -1
- package/dist/index.js +2 -2
- package/dist/request-4f3e6994.js +2719 -0
- package/dist/request-a8fb5cd3.js +2692 -0
- package/dist/request.d.ts +1 -1
- package/dist/request.js +2 -2
- package/dist/stompClient.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.js +7 -3
- package/package.json +2 -2
package/dist/request.d.ts
CHANGED
@@ -6,4 +6,4 @@ export interface IOptions extends AxiosRequestConfig {
|
|
6
6
|
isFormData?: boolean;
|
7
7
|
encryptionType?: 'aes' | 'des' | boolean;
|
8
8
|
}
|
9
|
-
export default function request(myOptions: IOptions):
|
9
|
+
export default function request(myOptions: IOptions): any;
|
package/dist/request.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import './tslib.es6-f9459658.js';
|
2
2
|
import 'axios';
|
3
3
|
import 'ztxkui';
|
4
|
-
export { a as default } from './request-
|
5
|
-
import './authority-
|
4
|
+
export { a as default } from './request-4f3e6994.js';
|
5
|
+
import './authority-fad2028d.js';
|
6
6
|
import './crypto-c481f616.js';
|
7
7
|
import 'crypto';
|
package/dist/stompClient.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import Stomp from 'stompjs';
|
2
2
|
import SockJS from 'zt-sockjs-client';
|
3
|
-
import { g as getToken } from './authority-
|
3
|
+
import { g as getToken } from './authority-fad2028d.js';
|
4
4
|
|
5
5
|
var StompClient = /** @class */ (function () {
|
6
6
|
function StompClient(connectWsConfig) {
|
package/dist/workflow.d.ts
CHANGED
package/dist/workflow.js
CHANGED
@@ -11,16 +11,20 @@ import 'number-precision';
|
|
11
11
|
/**
|
12
12
|
* @description 通过iframe双向通信逻辑
|
13
13
|
*/
|
14
|
-
function useOnmessage(messageFn) {
|
14
|
+
function useOnmessage(messageFn, isDebugger) {
|
15
15
|
useEffect(function () {
|
16
16
|
var messageHandle = function (e) {
|
17
|
-
|
17
|
+
if (isDebugger) {
|
18
|
+
console.log('父页面传递过来的消息', e);
|
19
|
+
}
|
18
20
|
var messageData = {};
|
19
21
|
try {
|
20
22
|
messageData = JSON.parse(e.data);
|
21
23
|
}
|
22
24
|
catch (err) {
|
23
|
-
|
25
|
+
if (isDebugger) {
|
26
|
+
console.log('父页面传递过来的消息解析报错', err);
|
27
|
+
}
|
24
28
|
}
|
25
29
|
messageFn && messageFn(messageData);
|
26
30
|
};
|
package/package.json
CHANGED