react-terminal-viewer-cicd 2.0.4 → 2.0.6
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/esm/Addon/WorkerLog/LogWorker.js +1 -1
- package/dist/esm/Hooks/useRemote.d.ts +2 -1
- package/dist/esm/Hooks/useRemote.js +1 -1
- package/dist/esm/TerminalViewerVirtualDom/index.d.ts +2 -2
- package/dist/esm/TerminalViewerVirtualDom/index.js +2 -2
- package/dist/worker/Hooks/useRemote.d.ts +2 -1
- package/dist/worker/TerminalViewerVirtualDom/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function LogWorker() {
|
|
2
2
|
var workerPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '/worker';
|
|
3
3
|
var worker = null;
|
|
4
|
-
var version = "2.0.
|
|
4
|
+
var version = "2.0.6" || '0.0.0';
|
|
5
5
|
var path = workerPath.includes('http') ? "".concat(workerPath, "/log.worker.js") : "".concat(window.location.origin).concat(workerPath, "/log.worker.js");
|
|
6
6
|
var blob = new Blob(["importScripts(\"".concat(path, "?v=").concat(version, "\")")], {
|
|
7
7
|
type: 'application/javascript'
|
|
@@ -7,6 +7,7 @@ export interface IRemoteOptions {
|
|
|
7
7
|
timeout?: number;
|
|
8
8
|
retry?: number;
|
|
9
9
|
enableBatch?: boolean;
|
|
10
|
+
status?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type UseRemoteHooks = (defaultData: string, callback?: (string: string) => void, options?: IRemoteOptions | undefined, cacheOptions?: ICacheOptions) => {
|
|
12
13
|
data: string;
|
|
@@ -20,7 +21,7 @@ export interface FetchResult {
|
|
|
20
21
|
key?: string | number;
|
|
21
22
|
nextKey?: string | number;
|
|
22
23
|
}
|
|
23
|
-
export declare const useSequenceFetch: (fetch: ((cacheValueKey?: string | number) => Promise<FetchResult>) | undefined, callback: (data: string) => Promise<void>, options: Pick<IRemoteOptions, 'timeout' | 'retry' | 'cacheKey' | 'cacheValueKey'>, cacheOptions?: ICacheOptions) => {
|
|
24
|
+
export declare const useSequenceFetch: (fetch: ((cacheValueKey?: string | number) => Promise<FetchResult>) | undefined, callback: (data: string) => Promise<void>, options: Pick<IRemoteOptions, 'timeout' | 'retry' | 'cacheKey' | 'cacheValueKey' | 'status'>, cacheOptions?: ICacheOptions) => {
|
|
24
25
|
loading: boolean;
|
|
25
26
|
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
26
27
|
refresh: () => Promise<void>;
|
|
@@ -232,7 +232,7 @@ export var useSequenceFetch = function useSequenceFetch(fetch, callback, options
|
|
|
232
232
|
};
|
|
233
233
|
}();
|
|
234
234
|
execJob();
|
|
235
|
-
}, [setCache, getCache, job]);
|
|
235
|
+
}, [setCache, getCache, job, options.status]);
|
|
236
236
|
useEffect(function () {
|
|
237
237
|
return function () {
|
|
238
238
|
clearTimeout(timerRef.current);
|
|
@@ -67,5 +67,5 @@ export interface TerminalViewerVirtualDomProps {
|
|
|
67
67
|
export type RowRenderProps = ListRowProps & {
|
|
68
68
|
style: object;
|
|
69
69
|
};
|
|
70
|
-
declare const
|
|
71
|
-
export default
|
|
70
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<TerminalViewerVirtualDomProps & React.RefAttributes<TerminalRef | undefined>>>;
|
|
71
|
+
export default _default;
|
|
@@ -9,7 +9,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
/* eslint-disable react/no-danger */
|
|
11
11
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
12
|
-
import React, { forwardRef, useRef, useEffect, useImperativeHandle, useCallback, useMemo, createElement } from 'react';
|
|
12
|
+
import React, { forwardRef, useRef, useEffect, useImperativeHandle, useCallback, useMemo, createElement, memo } from 'react';
|
|
13
13
|
import { CellMeasurer, CellMeasurerCache, AutoSizer } from 'react-virtualized';
|
|
14
14
|
import List from 'react-virtualized/dist/es/List';
|
|
15
15
|
import useRemote from "../Hooks/useRemote";
|
|
@@ -306,4 +306,4 @@ var TerminalViewerVirtualDom = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
306
306
|
className: "terminal-viewer-body-empty"
|
|
307
307
|
}, "\u6682\u65E0\u6570\u636E")));
|
|
308
308
|
});
|
|
309
|
-
export default TerminalViewerVirtualDom;
|
|
309
|
+
export default /*#__PURE__*/memo(TerminalViewerVirtualDom);
|
|
@@ -7,6 +7,7 @@ export interface IRemoteOptions {
|
|
|
7
7
|
timeout?: number;
|
|
8
8
|
retry?: number;
|
|
9
9
|
enableBatch?: boolean;
|
|
10
|
+
status?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type UseRemoteHooks = (defaultData: string, callback?: (string: string) => void, options?: IRemoteOptions | undefined, cacheOptions?: ICacheOptions) => {
|
|
12
13
|
data: string;
|
|
@@ -20,7 +21,7 @@ export interface FetchResult {
|
|
|
20
21
|
key?: string | number;
|
|
21
22
|
nextKey?: string | number;
|
|
22
23
|
}
|
|
23
|
-
export declare const useSequenceFetch: (fetch: ((cacheValueKey?: string | number) => Promise<FetchResult>) | undefined, callback: (data: string) => Promise<void>, options: Pick<IRemoteOptions, 'timeout' | 'retry' | 'cacheKey' | 'cacheValueKey'>, cacheOptions?: ICacheOptions) => {
|
|
24
|
+
export declare const useSequenceFetch: (fetch: ((cacheValueKey?: string | number) => Promise<FetchResult>) | undefined, callback: (data: string) => Promise<void>, options: Pick<IRemoteOptions, 'timeout' | 'retry' | 'cacheKey' | 'cacheValueKey' | 'status'>, cacheOptions?: ICacheOptions) => {
|
|
24
25
|
loading: boolean;
|
|
25
26
|
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
26
27
|
refresh: () => Promise<void>;
|
|
@@ -67,5 +67,5 @@ export interface TerminalViewerVirtualDomProps {
|
|
|
67
67
|
export type RowRenderProps = ListRowProps & {
|
|
68
68
|
style: object;
|
|
69
69
|
};
|
|
70
|
-
declare const
|
|
71
|
-
export default
|
|
70
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<TerminalViewerVirtualDomProps & React.RefAttributes<TerminalRef | undefined>>>;
|
|
71
|
+
export default _default;
|