@open-wa/wa-automate 4.28.10 → 4.28.11
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.js +2 -2
- package/package.json +1 -1
package/dist/utils/tools.js
CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.generateGHIssueLink = exports.processSendData = 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
|
-
const
|
28
|
+
const child_process_1 = require("child_process");
|
29
29
|
//@ts-ignore
|
30
30
|
process.send = process.send || function () { };
|
31
31
|
const timeout = ms => new Promise(resolve => setTimeout(resolve, ms, 'timeout'));
|
@@ -147,7 +147,7 @@ const processSendData = (data = {}) => {
|
|
147
147
|
};
|
148
148
|
exports.processSendData = processSendData;
|
149
149
|
const generateGHIssueLink = (config, sessionInfo, extras = {}) => {
|
150
|
-
const npm_ver = (0,
|
150
|
+
const npm_ver = (0, child_process_1.execSync)('npm -v');
|
151
151
|
const labels = [];
|
152
152
|
if (sessionInfo.CLI)
|
153
153
|
labels.push('CLI');
|
package/package.json
CHANGED