mtxuilib 0.1.406 → 0.1.408
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/lib/utils.d.ts +0 -1
- package/dist/lib/utils.js +1 -5
- package/package.json +1 -1
package/dist/lib/utils.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export declare function ReadFileStr(file: Blob): Promise<string>;
|
|
|
16
16
|
export declare const DataFormat: (date: number) => string;
|
|
17
17
|
export declare const DataFormatWithSeconds: (date: number) => string;
|
|
18
18
|
export declare const isEdgeRuntime: () => boolean;
|
|
19
|
-
export declare function isWebWorker(): boolean;
|
|
20
19
|
export declare const convertToArray: <T>(maybeArray: T | T[]) => T[];
|
|
21
20
|
export declare const ConvertToSearchParams: (value: any) => URLSearchParams;
|
|
22
21
|
export declare const splitMethodsParts: (methodName: string) => string[];
|
package/dist/lib/utils.js
CHANGED
|
@@ -107,10 +107,6 @@ export const DataFormatWithSeconds = (date) => {
|
|
|
107
107
|
export const isEdgeRuntime = () => {
|
|
108
108
|
return typeof EdgeRuntime === "string";
|
|
109
109
|
};
|
|
110
|
-
export function isWebWorker() {
|
|
111
|
-
return (typeof WorkerGlobalScope !== "undefined" &&
|
|
112
|
-
self instanceof WorkerGlobalScope);
|
|
113
|
-
}
|
|
114
110
|
export const convertToArray = (maybeArray) => {
|
|
115
111
|
return Array.isArray(maybeArray) ? maybeArray : [maybeArray];
|
|
116
112
|
};
|
|
@@ -215,7 +211,7 @@ export const copyClipboard = (obj) => {
|
|
|
215
211
|
navigator.clipboard.writeText(obj);
|
|
216
212
|
};
|
|
217
213
|
export function isObject(object) {
|
|
218
|
-
return object != null && typeof object ===
|
|
214
|
+
return object != null && typeof object === "object";
|
|
219
215
|
}
|
|
220
216
|
export function deepEqual(object1, object2) {
|
|
221
217
|
const keys1 = Object.keys(object1);
|