ztxkutils 2.10.54 → 4.0.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/request.d.ts CHANGED
@@ -14,6 +14,7 @@ export interface IOptions extends AxiosRequestConfig {
14
14
  mustCatch?: boolean;
15
15
  isCancelRepeat?: boolean;
16
16
  isCancelNoCompleteRequest?: boolean;
17
+ noInterceptorsResponse?: boolean;
17
18
  }
18
19
  export default function request(myOptions: IOptions, jumpCallback?: any, otherOptions?: any): any;
19
20
  export declare function clearNoCompleteRequest(): void;
package/dist/request.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import './tslib.es6-35653116.js';
2
2
  import 'axios';
3
3
  import 'ztxkui';
4
- export { N as NEW_AUTHORIZATION, O as OLD_AUTHORIZATION, b as clearCatch, c as clearNoCompleteRequest, a as default } from './request-1ac889d2.js';
4
+ export { N as NEW_AUTHORIZATION, O as OLD_AUTHORIZATION, b as clearCatch, c as clearNoCompleteRequest, a as default } from './request-a6274f1b.js';
5
5
  import './authority-7a91cb9f.js';
6
6
  import './crypto-c481f616.js';
7
+ import './constants.js';
7
8
  import 'crypto';
@@ -1,36 +1 @@
1
- declare const PV_URL_SET: Set<unknown>;
2
- declare const EVENT_URL = "/api/zmdms-log/web/submit";
3
- declare const ERROR_URL = "/api/zmdms-log/web/submit";
4
- /**
5
- * routeUrl: string
6
- * systemId: string
7
- * userId: string
8
- * navigator: string // 浏览器信息 userAgent
9
- * platform: string // 系统信息
10
- * memory: string // 内存信息
11
- * eventKey: string // 事件名
12
- * eventValue: string // 事件值
13
- * {
14
- * jsHeapSizeLimit: 上下文内可用堆的最大体积,以字节计算。
15
- * totalJSHeapSize: 已分配的堆体积,以字节计算。
16
- * usedJSHeapSize: 当前 JS 堆活跃段(segment)的体积,以字节计算。
17
- * }
18
- */
19
- declare function getUserOsInfo(userAgent?: string): "Windows 10" | "Windows 8" | "Windows 7" | "Windows Vista" | "Windows XP" | "Windows 2000" | "Mac/iOS" | "UNIX" | "Linux" | "Other";
20
- declare class MyStatistic {
21
- private systemId;
22
- private userId;
23
- private navigator;
24
- private platform;
25
- constructor(systemId: any, userId: any);
26
- private send;
27
- private initPerformance;
28
- sendPerformance(): void;
29
- private errorHandle;
30
- private unhandledrejectionHandle;
31
- private initError;
32
- removeError(): void;
33
- pv(): void;
34
- event(eventKey: string, eventValue: string): void;
35
- error(error: Error, info?: any): void;
36
- }
1
+ export {};
@@ -1,6 +1,7 @@
1
1
  import Stomp from 'zt-stompjs';
2
2
  import SockJS from 'zt-sockjs-client';
3
3
  import { g as getToken } from './authority-7a91cb9f.js';
4
+ import { BASIC_KEY } from './constants.js';
4
5
 
5
6
  var StompClient = /** @class */ (function () {
6
7
  function StompClient(connectWsConfig) {
@@ -26,7 +27,7 @@ var StompClient = /** @class */ (function () {
26
27
  this.isInit = true;
27
28
  var token = this.connectWsConfig.token || getToken();
28
29
  // 建立连接对象,还未发起连接
29
- var socket = new SockJS(this.connectWsConfig.baseUrl + "/api/zmdms-csc-ztim/ws?token=" + token + "&system=" + this.connectWsConfig.systemType + "&clientType=" + this.connectWsConfig.clientType);
30
+ var socket = new SockJS(this.connectWsConfig.baseUrl + "/api/" + BASIC_KEY + "-csc-ztim/ws?token=" + token + "&system=" + this.connectWsConfig.systemType + "&clientType=" + this.connectWsConfig.clientType);
30
31
  // 获取 STOMP 子协议的客户端对象
31
32
  this.client = Stomp.over(socket);
32
33
  this.isClient = false;
@@ -4,6 +4,7 @@ import './authority-7a91cb9f.js';
4
4
  import './tools-09a4d620.js';
5
5
  import './tslib.es6-35653116.js';
6
6
  import 'dayjs';
7
+ import './constants.js';
7
8
 
8
9
  /**
9
10
  * 图片附件id转base64字符串
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.10.54",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",