@open-wa/wa-automate 4.30.4 → 4.30.5
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/utils/tools.d.ts +2 -1
- package/dist/utils/tools.js +2 -1
- package/package.json +1 -1
package/dist/utils/tools.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="node" />
|
1
2
|
import { ConfigObject, DataURL } from '../api/model';
|
2
3
|
import { AxiosRequestConfig } from 'axios';
|
3
4
|
import { SessionInfo } from '../api/model/sessionInfo';
|
@@ -27,7 +28,7 @@ export declare const getDUrl: (url: string, optionsOverride?: AxiosRequestConfig
|
|
27
28
|
*/
|
28
29
|
export declare const base64MimeType: (dUrl: DataURL) => string;
|
29
30
|
export declare const processSend: (message: string) => void;
|
30
|
-
export declare const perf: () => DateConstructor | Performance;
|
31
|
+
export declare const perf: () => DateConstructor | import("perf_hooks").Performance;
|
31
32
|
export declare const now: () => number;
|
32
33
|
export declare function timePromise(fn: () => Promise<any>): Promise<string>;
|
33
34
|
export declare const processSendData: (data?: any) => void;
|
package/dist/utils/tools.js
CHANGED
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.generateGHIssueLink = exports.processSendData = exports.timePromise = exports.now = exports.perf = exports.processSend = exports.base64MimeType = exports.getDUrl = exports.isDataURL = exports.isBase64 = exports.camelize = exports.without = exports.getConfigFromProcessEnv = exports.smartUserAgent = exports.timeout = void 0;
|
27
27
|
const axios_1 = __importDefault(require("axios"));
|
28
28
|
const child_process_1 = require("child_process");
|
29
|
+
const perf_hooks_1 = require("perf_hooks");
|
29
30
|
//@ts-ignore
|
30
31
|
process.send = process.send || function () { };
|
31
32
|
const timeout = ms => new Promise(resolve => setTimeout(resolve, ms, 'timeout'));
|
@@ -138,7 +139,7 @@ const processSend = (message) => {
|
|
138
139
|
return;
|
139
140
|
};
|
140
141
|
exports.processSend = processSend;
|
141
|
-
const perf = () => performance || Date;
|
142
|
+
const perf = () => perf_hooks_1.performance || Date;
|
142
143
|
exports.perf = perf;
|
143
144
|
const now = () => (0, exports.perf)().now();
|
144
145
|
exports.now = now;
|
package/package.json
CHANGED