@rsdoctor/cli 1.3.1 → 1.3.2
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/commands/analyze.d.ts +2 -2
- package/dist/commands/bundle-diff.d.ts +2 -2
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/stats-analyze.d.ts +2 -2
- package/dist/index.cjs +95 -105
- package/dist/index.d.ts +3 -3
- package/dist/index.js +43 -48
- package/dist/utils.d.ts +1 -1
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SDK } from '@rsdoctor/types';
|
|
2
2
|
import { RsdoctorSDK } from '@rsdoctor/sdk';
|
|
3
|
-
import { Command } from '../types';
|
|
4
|
-
import { Commands } from '../constants';
|
|
3
|
+
import { Command } from '../types.js';
|
|
4
|
+
import { Commands } from '../constants.js';
|
|
5
5
|
interface Options {
|
|
6
6
|
profile: string;
|
|
7
7
|
open?: boolean;
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './analyze';
|
|
2
|
-
export * from './bundle-diff';
|
|
1
|
+
export * from './analyze.js';
|
|
2
|
+
export * from './bundle-diff.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RsdoctorSDK } from '@rsdoctor/sdk';
|
|
2
2
|
import { SDK } from '@rsdoctor/types';
|
|
3
|
-
import { Commands } from '../constants';
|
|
4
|
-
import { Command } from '../types';
|
|
3
|
+
import { Commands } from '../constants.js';
|
|
4
|
+
import { Command } from '../types.js';
|
|
5
5
|
interface Options {
|
|
6
6
|
profile: string;
|
|
7
7
|
open?: boolean;
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see index.cjs.LICENSE.txt */
|
|
2
|
-
|
|
2
|
+
const __rslib_import_meta_url__ = 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
4
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5
5
|
module.exports = {
|
|
@@ -68,7 +68,7 @@ var __webpack_modules__ = {
|
|
|
68
68
|
var iterate = __webpack_require__("../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js"), initState = __webpack_require__("../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js"), terminator = __webpack_require__("../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js");
|
|
69
69
|
module.exports = function(list, iterator, callback) {
|
|
70
70
|
for(var state = initState(list); state.index < (state.keyedList || list).length;)iterate(list, iterator, state, function(error, result) {
|
|
71
|
-
|
|
71
|
+
error ? callback(error, result) : 0 === Object.keys(state.jobs).length && callback(null, state.results);
|
|
72
72
|
}), state.index++;
|
|
73
73
|
return terminator.bind(state, callback);
|
|
74
74
|
};
|
|
@@ -87,7 +87,7 @@ var __webpack_modules__ = {
|
|
|
87
87
|
module.exports = function(list, iterator, sortMethod, callback) {
|
|
88
88
|
var state = initState(list, sortMethod);
|
|
89
89
|
return iterate(list, iterator, state, function iteratorHandler(error, result) {
|
|
90
|
-
|
|
90
|
+
error ? callback(error, result) : (state.index++, state.index < (state.keyedList || list).length) ? iterate(list, iterator, state, iteratorHandler) : callback(null, state.results);
|
|
91
91
|
}), terminator.bind(state, callback);
|
|
92
92
|
}, module.exports.ascending = ascending, module.exports.descending = function(a, b) {
|
|
93
93
|
return -1 * ascending(a, b);
|
|
@@ -157,7 +157,7 @@ var __webpack_modules__ = {
|
|
|
157
157
|
}
|
|
158
158
|
}, CombinedStream.prototype._realGetNext = function() {
|
|
159
159
|
var stream = this._streams.shift();
|
|
160
|
-
|
|
160
|
+
void 0 === stream ? this.end() : 'function' != typeof stream ? this._pipeNext(stream) : stream((function(stream) {
|
|
161
161
|
CombinedStream.isStreamLike(stream) && (stream.on('data', this._checkDataSize.bind(this)), this._handleErrors(stream)), this._pipeNext(stream);
|
|
162
162
|
}).bind(this));
|
|
163
163
|
}, CombinedStream.prototype._pipeNext = function(stream) {
|
|
@@ -392,8 +392,7 @@ var __webpack_modules__ = {
|
|
|
392
392
|
var r = Stream.prototype.pipe.apply(this, arguments);
|
|
393
393
|
return this.resume(), r;
|
|
394
394
|
}, DelayedStream.prototype._handleEmit = function(args) {
|
|
395
|
-
|
|
396
|
-
'data' === args[0] && (this.dataSize += args[1].length, this._checkIfMaxDataSizeExceeded()), this._bufferedEvents.push(args);
|
|
395
|
+
this._released ? this.emit.apply(this, args) : ('data' === args[0] && (this.dataSize += args[1].length, this._checkIfMaxDataSizeExceeded()), this._bufferedEvents.push(args));
|
|
397
396
|
}, DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
|
|
398
397
|
if (!this._maxDataSizeExceeded && !(this.dataSize <= this.maxDataSize)) {
|
|
399
398
|
this._maxDataSizeExceeded = !0;
|
|
@@ -762,8 +761,7 @@ var __webpack_modules__ = {
|
|
|
762
761
|
null != options.knownLength ? valueLength += Number(options.knownLength) : Buffer.isBuffer(value) ? valueLength = value.length : 'string' == typeof value && (valueLength = Buffer.byteLength(value)), this._valueLength += valueLength, this._overheadLength += Buffer.byteLength(header) + FormData1.LINE_BREAK.length, value && (value.path || value.readable && hasOwn(value, 'httpVersion') || value instanceof Stream) && (options.knownLength || this._valuesToMeasure.push(value));
|
|
763
762
|
}, FormData1.prototype._lengthRetriever = function(value, callback) {
|
|
764
763
|
hasOwn(value, 'fd') ? void 0 != value.end && value.end != 1 / 0 && void 0 != value.start ? callback(null, value.end + 1 - (value.start ? value.start : 0)) : fs.stat(value.path, function(err, stat) {
|
|
765
|
-
|
|
766
|
-
callback(null, stat.size - (value.start ? value.start : 0));
|
|
764
|
+
err ? callback(err) : callback(null, stat.size - (value.start ? value.start : 0));
|
|
767
765
|
}) : hasOwn(value, 'httpVersion') ? callback(null, Number(value.headers['content-length'])) : hasOwn(value, 'httpModule') ? (value.on('response', function(response) {
|
|
768
766
|
value.pause(), callback(null, Number(response.headers['content-length']));
|
|
769
767
|
}), value.resume()) : callback('Unknown stream');
|
|
@@ -832,13 +830,11 @@ var __webpack_modules__ = {
|
|
|
832
830
|
return this._valuesToMeasure.length && (hasKnownLength = !1), hasKnownLength;
|
|
833
831
|
}, FormData1.prototype.getLength = function(cb) {
|
|
834
832
|
var knownLength = this._overheadLength + this._valueLength;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
if (err) return void cb(err);
|
|
838
|
-
values.forEach(function(length) {
|
|
833
|
+
(this._streams.length && (knownLength += this._lastBoundary().length), this._valuesToMeasure.length) ? asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
834
|
+
err ? cb(err) : (values.forEach(function(length) {
|
|
839
835
|
knownLength += length;
|
|
840
|
-
}), cb(null, knownLength);
|
|
841
|
-
});
|
|
836
|
+
}), cb(null, knownLength));
|
|
837
|
+
}) : process.nextTick(cb.bind(this, null, knownLength));
|
|
842
838
|
}, FormData1.prototype.submit = function(params, cb) {
|
|
843
839
|
var request, options, defaults = {
|
|
844
840
|
method: 'post'
|
|
@@ -1644,7 +1640,7 @@ var __webpack_modules__ = {
|
|
|
1644
1640
|
},
|
|
1645
1641
|
"./package.json": function(module) {
|
|
1646
1642
|
"use strict";
|
|
1647
|
-
module.exports = JSON.parse('{"name":"@rsdoctor/cli","version":"1.3.
|
|
1643
|
+
module.exports = JSON.parse('{"name":"@rsdoctor/cli","version":"1.3.2","repository":{"type":"git","url":"https://github.com/web-infra-dev/rsdoctor","directory":"packages/cli"},"bin":{"rsdoctor":"./bin/rsdoctor"},"files":["bin","dist"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.cjs"}},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"dev":"npm run start","build":"rslib build","start":"rslib build -w","test":"rstest run"},"type":"module","dependencies":{"ora":"^5.4.1","@rsdoctor/core":"workspace:*","@rsdoctor/sdk":"workspace:*","@rsdoctor/types":"workspace:*","@rsdoctor/utils":"workspace:*","@rsdoctor/graph":"workspace:*"},"devDependencies":{"cac":"^6.7.14","typescript":"^5.9.2","axios":"^1.12.2","picocolors":"^1.1.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}');
|
|
1648
1644
|
}
|
|
1649
1645
|
}, __webpack_module_cache__ = {};
|
|
1650
1646
|
function __webpack_require__(moduleId) {
|
|
@@ -1675,10 +1671,11 @@ __webpack_require__.n = (module)=>{
|
|
|
1675
1671
|
var __webpack_exports__ = {};
|
|
1676
1672
|
for(var __webpack_i__ in (()=>{
|
|
1677
1673
|
"use strict";
|
|
1674
|
+
let cache, TypedArray, origin, isMSIE;
|
|
1678
1675
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
1679
1676
|
execute: ()=>execute
|
|
1680
1677
|
});
|
|
1681
|
-
var setImmediateSupported, postMessageSupported, common_utils_namespaceObject = {};
|
|
1678
|
+
var setImmediateSupported, postMessageSupported, token, callbacks, common_utils_namespaceObject = {};
|
|
1682
1679
|
__webpack_require__.r(common_utils_namespaceObject), __webpack_require__.d(common_utils_namespaceObject, {
|
|
1683
1680
|
hasBrowserEnv: ()=>hasBrowserEnv,
|
|
1684
1681
|
hasStandardBrowserEnv: ()=>hasStandardBrowserEnv,
|
|
@@ -1874,10 +1871,9 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
1874
1871
|
this.matchedCommand = void 0, this.matchedCommandName = void 0;
|
|
1875
1872
|
}
|
|
1876
1873
|
parse(argv = processArgs, { run = !0 } = {}) {
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
})(argv[1]) : "cli");
|
|
1874
|
+
var input;
|
|
1875
|
+
let m;
|
|
1876
|
+
this.rawArgs = argv, this.name || (this.name = argv[1] ? (input = argv[1], (m = /([^\\\/]+)$/.exec(input)) ? m[1] : "") : "cli");
|
|
1881
1877
|
let shouldParse = !0;
|
|
1882
1878
|
for (let command of this.commands){
|
|
1883
1879
|
let parsed = this.mri(argv.slice(2), command), commandName = parsed.args[0];
|
|
@@ -1997,10 +1993,10 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
1997
1993
|
return fn.apply(thisArg, arguments);
|
|
1998
1994
|
};
|
|
1999
1995
|
}
|
|
2000
|
-
let { toString: utils_toString } = Object.prototype, { getPrototypeOf } = Object, { iterator: utils_iterator, toStringTag } = Symbol, kindOf = ((
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
1996
|
+
let { toString: utils_toString } = Object.prototype, { getPrototypeOf } = Object, { iterator: utils_iterator, toStringTag } = Symbol, kindOf = (cache = Object.create(null), (thing)=>{
|
|
1997
|
+
let str = utils_toString.call(thing);
|
|
1998
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
1999
|
+
}), kindOfTest = (type)=>(type = type.toLowerCase(), (thing)=>kindOf(thing) === type), typeOfTest = (type)=>(thing)=>typeof thing === type, { isArray } = Array, isUndefined = typeOfTest('undefined');
|
|
2004
2000
|
function isBuffer(val) {
|
|
2005
2001
|
return null !== val && !isUndefined(val) && null !== val.constructor && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
2006
2002
|
}
|
|
@@ -2034,17 +2030,17 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2034
2030
|
for(; i-- > 0;)if (key === (_key = keys[i]).toLowerCase()) return _key;
|
|
2035
2031
|
return null;
|
|
2036
2032
|
}
|
|
2037
|
-
let _global = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : 'undefined' != typeof window ? window : global, isContextDefined = (context)=>!isUndefined(context) && context !== _global, isTypedArray = (
|
|
2033
|
+
let _global = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : 'undefined' != typeof window ? window : global, isContextDefined = (context)=>!isUndefined(context) && context !== _global, isTypedArray = (TypedArray = 'undefined' != typeof Uint8Array && getPrototypeOf(Uint8Array), (thing)=>TypedArray && thing instanceof TypedArray), isHTMLForm = kindOfTest('HTMLFormElement'), utils_hasOwnProperty = (({ hasOwnProperty })=>(obj, prop)=>hasOwnProperty.call(obj, prop))(Object.prototype), isRegExp = kindOfTest('RegExp'), reduceDescriptors = (obj, reducer)=>{
|
|
2038
2034
|
let descriptors = Object.getOwnPropertyDescriptors(obj), reducedDescriptors = {};
|
|
2039
2035
|
forEach(descriptors, (descriptor, name)=>{
|
|
2040
2036
|
let ret;
|
|
2041
2037
|
!1 !== (ret = reducer(descriptor, name, obj)) && (reducedDescriptors[name] = ret || descriptor);
|
|
2042
2038
|
}), Object.defineProperties(obj, reducedDescriptors);
|
|
2043
|
-
}, isAsyncFn = kindOfTest('AsyncFunction'), _setImmediate = (setImmediateSupported = 'function' == typeof setImmediate, postMessageSupported = isFunction(_global.postMessage), setImmediateSupported ? setImmediate : postMessageSupported ? ((
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2039
|
+
}, isAsyncFn = kindOfTest('AsyncFunction'), _setImmediate = (setImmediateSupported = 'function' == typeof setImmediate, postMessageSupported = isFunction(_global.postMessage), setImmediateSupported ? setImmediate : postMessageSupported ? (token = `axios@${Math.random()}`, callbacks = [], _global.addEventListener("message", ({ source, data })=>{
|
|
2040
|
+
source === _global && data === token && callbacks.length && callbacks.shift()();
|
|
2041
|
+
}, !1), (cb)=>{
|
|
2042
|
+
callbacks.push(cb), _global.postMessage(token, "*");
|
|
2043
|
+
}) : (cb)=>setTimeout(cb)), asap = 'undefined' != typeof queueMicrotask ? queueMicrotask.bind(_global) : 'undefined' != typeof process && process.nextTick || _setImmediate, utils = {
|
|
2048
2044
|
isArray,
|
|
2049
2045
|
isArrayBuffer,
|
|
2050
2046
|
isBuffer,
|
|
@@ -2588,15 +2584,15 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2588
2584
|
if (utils.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
2589
2585
|
else {
|
|
2590
2586
|
let str;
|
|
2591
|
-
if (utils.isString(header) && (header = header.trim()) && (str = header, !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim())))
|
|
2592
|
-
|
|
2593
|
-
|
|
2587
|
+
if (utils.isString(header) && (header = header.trim()) && (str = header, !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()))) {
|
|
2588
|
+
var rawHeaders;
|
|
2589
|
+
let key, val, i, parsed;
|
|
2590
|
+
setHeaders((parsed = {}, (rawHeaders = header) && rawHeaders.split('\n').forEach(function(line) {
|
|
2594
2591
|
i = line.indexOf(':'), key = line.substring(0, i).trim().toLowerCase(), val = line.substring(i + 1).trim(), !key || parsed[key] && ignoreDuplicateOf[key] || ('set-cookie' === key ? parsed[key] ? parsed[key].push(val) : parsed[key] = [
|
|
2595
2592
|
val
|
|
2596
2593
|
] : parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val);
|
|
2597
|
-
}), parsed;
|
|
2598
|
-
})(header)
|
|
2599
|
-
else if (utils.isObject(header) && utils.isIterable(header)) {
|
|
2594
|
+
}), parsed), valueOrRewrite);
|
|
2595
|
+
} else if (utils.isObject(header) && utils.isIterable(header)) {
|
|
2600
2596
|
let obj = {}, dest, key;
|
|
2601
2597
|
for (let entry of header){
|
|
2602
2598
|
if (!utils.isArray(entry)) throw TypeError('Object iterator must return a key-value pair');
|
|
@@ -2704,9 +2700,9 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2704
2700
|
function defineAccessor(_header) {
|
|
2705
2701
|
let lHeader = normalizeHeader(_header);
|
|
2706
2702
|
if (!accessors[lHeader]) {
|
|
2707
|
-
var obj
|
|
2708
|
-
let accessorName
|
|
2709
|
-
[
|
|
2703
|
+
var obj, header;
|
|
2704
|
+
let accessorName;
|
|
2705
|
+
obj = prototype, header = _header, accessorName = utils.toCamelCase(' ' + header), [
|
|
2710
2706
|
'get',
|
|
2711
2707
|
'set',
|
|
2712
2708
|
'has'
|
|
@@ -2766,7 +2762,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2766
2762
|
__CANCEL__: !0
|
|
2767
2763
|
});
|
|
2768
2764
|
var proxy_from_env = __webpack_require__("../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"), external_http_ = __webpack_require__("http"), external_https_ = __webpack_require__("https"), external_util_ = __webpack_require__("util"), follow_redirects = __webpack_require__("../../node_modules/.pnpm/follow-redirects@1.15.9/node_modules/follow-redirects/index.js");
|
|
2769
|
-
let external_zlib_namespaceObject = require("zlib");
|
|
2765
|
+
let external_zlib_namespaceObject = require("zlib"), VERSION = "1.12.2";
|
|
2770
2766
|
function parseProtocol(url) {
|
|
2771
2767
|
let match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
2772
2768
|
return match && match[1] || '';
|
|
@@ -2786,7 +2782,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2786
2782
|
samplesCount: 15
|
|
2787
2783
|
}, null, (prop, source)=>!utils.isUndefined(source[prop]))).chunkSize
|
|
2788
2784
|
});
|
|
2789
|
-
|
|
2785
|
+
const internals = this[kInternals] = {
|
|
2790
2786
|
timeWindow: options.timeWindow,
|
|
2791
2787
|
chunkSize: options.chunkSize,
|
|
2792
2788
|
maxRate: options.maxRate,
|
|
@@ -2839,7 +2835,8 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2839
2835
|
}, BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_', textEncoder = 'function' == typeof TextEncoder ? new TextEncoder() : new external_util_.TextEncoder(), CRLF_BYTES = textEncoder.encode('\r\n');
|
|
2840
2836
|
class FormDataPart {
|
|
2841
2837
|
constructor(name, value){
|
|
2842
|
-
|
|
2838
|
+
const { escapeName } = this.constructor, isStringValue = utils.isString(value);
|
|
2839
|
+
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ''}\r\n`;
|
|
2843
2840
|
isStringValue ? value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, '\r\n')) : headers += `Content-Type: ${value.type || "application/octet-stream"}\r\n`, this.headers = textEncoder.encode(headers + '\r\n'), this.contentLength = isStringValue ? value.byteLength : value.size, this.size = this.headers.byteLength + this.contentLength + 2, this.name = name, this.value = value;
|
|
2844
2841
|
}
|
|
2845
2842
|
async *encode() {
|
|
@@ -3034,7 +3031,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3034
3031
|
}
|
|
3035
3032
|
if (-1 === supportedProtocols.indexOf(protocol)) return reject(new AxiosError_AxiosError('Unsupported protocol ' + protocol, AxiosError_AxiosError.ERR_BAD_REQUEST, config));
|
|
3036
3033
|
let headers = AxiosHeaders_AxiosHeaders.from(config.headers).normalize();
|
|
3037
|
-
headers.set('User-Agent',
|
|
3034
|
+
headers.set('User-Agent', 'axios/' + VERSION, !1);
|
|
3038
3035
|
let { onUploadProgress, onDownloadProgress } = config, maxRate = config.maxRate;
|
|
3039
3036
|
if (utils.isSpecCompliantForm(data)) {
|
|
3040
3037
|
let userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
@@ -3057,7 +3054,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3057
3054
|
})(data, (formHeaders)=>{
|
|
3058
3055
|
headers.set(formHeaders);
|
|
3059
3056
|
}, {
|
|
3060
|
-
tag:
|
|
3057
|
+
tag: `axios-${VERSION}-boundary`,
|
|
3061
3058
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
3062
3059
|
});
|
|
3063
3060
|
} else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {
|
|
@@ -3220,7 +3217,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3220
3217
|
done(value), resolve(value);
|
|
3221
3218
|
}, _reject, (onDoneHandler)=>onDone = onDoneHandler).catch(_reject);
|
|
3222
3219
|
});
|
|
3223
|
-
}, isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE)
|
|
3220
|
+
}, isURLSameOrigin = platform.hasStandardBrowserEnv ? (origin = new URL(platform.origin), isMSIE = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent), (url)=>(url = new URL(url, platform.origin), origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port))) : ()=>!0, cookies = platform.hasStandardBrowserEnv ? {
|
|
3224
3221
|
write (name, value, expires, path, domain, secure) {
|
|
3225
3222
|
let cookie = [
|
|
3226
3223
|
name + '=' + encodeURIComponent(value)
|
|
@@ -3343,7 +3340,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3343
3340
|
}), request = null;
|
|
3344
3341
|
}
|
|
3345
3342
|
request.open(_config.method.toUpperCase(), _config.url, !0), request.timeout = _config.timeout, 'onloadend' in request ? request.onloadend = onloadend : request.onreadystatechange = function() {
|
|
3346
|
-
request
|
|
3343
|
+
!request || 4 !== request.readyState || (0 !== request.status || request.responseURL && 0 === request.responseURL.indexOf('file:')) && setTimeout(onloadend);
|
|
3347
3344
|
}, request.onabort = function() {
|
|
3348
3345
|
request && (reject(new AxiosError_AxiosError('Request aborted', AxiosError_AxiosError.ECONNABORTED, config, request)), request = null);
|
|
3349
3346
|
}, request.onerror = function(event) {
|
|
@@ -3358,8 +3355,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3358
3355
|
request && (reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel), request.abort(), request = null);
|
|
3359
3356
|
}, _config.cancelToken && _config.cancelToken.subscribe(onCanceled), _config.signal && (_config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled)));
|
|
3360
3357
|
let protocol = parseProtocol(_config.url);
|
|
3361
|
-
|
|
3362
|
-
request.send(requestData || null);
|
|
3358
|
+
protocol && -1 === platform.protocols.indexOf(protocol) ? reject(new AxiosError_AxiosError('Unsupported protocol ' + protocol + ':', AxiosError_AxiosError.ERR_BAD_REQUEST, config)) : request.send(requestData || null);
|
|
3363
3359
|
});
|
|
3364
3360
|
}, streamChunk = function*(chunk, chunkSize) {
|
|
3365
3361
|
let end, len = chunk.byteLength;
|
|
@@ -3406,8 +3402,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3406
3402
|
}, {
|
|
3407
3403
|
highWaterMark: 2
|
|
3408
3404
|
});
|
|
3409
|
-
}, { isFunction: fetch_isFunction } = utils, globalFetchAPI = (({
|
|
3410
|
-
fetch,
|
|
3405
|
+
}, { isFunction: fetch_isFunction } = utils, globalFetchAPI = (({ Request, Response })=>({
|
|
3411
3406
|
Request,
|
|
3412
3407
|
Response
|
|
3413
3408
|
}))(utils.global), { ReadableStream: fetch_ReadableStream, TextEncoder: fetch_TextEncoder } = utils.global, test = (fn, ...args)=>{
|
|
@@ -3417,7 +3412,9 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3417
3412
|
return !1;
|
|
3418
3413
|
}
|
|
3419
3414
|
}, factory = (env)=>{
|
|
3420
|
-
let encoder, { fetch, Request, Response } =
|
|
3415
|
+
let encoder, { fetch: envFetch, Request, Response } = env = utils.merge.call({
|
|
3416
|
+
skipUndefined: !0
|
|
3417
|
+
}, globalFetchAPI, env), isFetchSupported = envFetch ? fetch_isFunction(envFetch) : 'function' == typeof fetch, isRequestSupported = fetch_isFunction(Request), isResponseSupported = fetch_isFunction(Response);
|
|
3421
3418
|
if (!isFetchSupported) return !1;
|
|
3422
3419
|
let isReadableStreamSupported = isFetchSupported && fetch_isFunction(fetch_ReadableStream), encodeText = isFetchSupported && ('function' == typeof fetch_TextEncoder ? (encoder = new fetch_TextEncoder(), (str)=>encoder.encode(str)) : async (str)=>new Uint8Array(await new Request(str).arrayBuffer())), supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(()=>{
|
|
3423
3420
|
let duplexAccessed = !1, hasContentType = new Request(platform.origin, {
|
|
@@ -3460,7 +3457,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3460
3457
|
return null == length ? getBodyLength(body) : length;
|
|
3461
3458
|
};
|
|
3462
3459
|
return async (config)=>{
|
|
3463
|
-
let requestContentLength, { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
3460
|
+
let requestContentLength, { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config), _fetch = envFetch || fetch;
|
|
3464
3461
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
3465
3462
|
let composedSignal = ((signals, timeout)=>{
|
|
3466
3463
|
let { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
@@ -3511,7 +3508,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3511
3508
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
3512
3509
|
};
|
|
3513
3510
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
3514
|
-
let response = await (isRequestSupported ?
|
|
3511
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions)), isStreamResponse = supportsResponseStream && ('stream' === responseType || 'response' === responseType);
|
|
3515
3512
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
3516
3513
|
let options = {};
|
|
3517
3514
|
[
|
|
@@ -3546,12 +3543,10 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3546
3543
|
}
|
|
3547
3544
|
};
|
|
3548
3545
|
}, seedCache = new Map(), getFetch = (config)=>{
|
|
3549
|
-
let env =
|
|
3550
|
-
skipUndefined: !0
|
|
3551
|
-
}, globalFetchAPI, config ? config.env : null), { fetch, Request, Response } = env, seeds = [
|
|
3546
|
+
let env = config ? config.env : {}, { fetch: fetch1, Request, Response } = env, seeds = [
|
|
3552
3547
|
Request,
|
|
3553
3548
|
Response,
|
|
3554
|
-
|
|
3549
|
+
fetch1
|
|
3555
3550
|
], i = seeds.length, seed, target, map = seedCache;
|
|
3556
3551
|
for(; i--;)seed = seeds[i], void 0 === (target = map.get(seed)) && map.set(seed, target = i ? new Map() : factory(env)), map = target;
|
|
3557
3552
|
return target;
|
|
@@ -3576,23 +3571,21 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3576
3571
|
});
|
|
3577
3572
|
}
|
|
3578
3573
|
});
|
|
3579
|
-
let renderReason = (reason)=>`- ${reason}`, isResolvedHandle = (adapter)=>utils.isFunction(adapter) || null === adapter || !1 === adapter,
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
return adapter;
|
|
3595
|
-
}
|
|
3574
|
+
let renderReason = (reason)=>`- ${reason}`, isResolvedHandle = (adapter)=>utils.isFunction(adapter) || null === adapter || !1 === adapter, adapters_adapters_getAdapter = (adapters, config)=>{
|
|
3575
|
+
let nameOrAdapter, adapter, { length } = adapters = utils.isArray(adapters) ? adapters : [
|
|
3576
|
+
adapters
|
|
3577
|
+
], rejectedReasons = {};
|
|
3578
|
+
for(let i = 0; i < length; i++){
|
|
3579
|
+
let id;
|
|
3580
|
+
if (adapter = nameOrAdapter = adapters[i], !isResolvedHandle(nameOrAdapter) && void 0 === (adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()])) throw new AxiosError_AxiosError(`Unknown adapter '${id}'`);
|
|
3581
|
+
if (adapter && (utils.isFunction(adapter) || (adapter = adapter.get(config)))) break;
|
|
3582
|
+
rejectedReasons[id || '#' + i] = adapter;
|
|
3583
|
+
}
|
|
3584
|
+
if (!adapter) {
|
|
3585
|
+
let reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (!1 === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
3586
|
+
throw new AxiosError_AxiosError("There is no suitable adapter to dispatch the request " + (length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified'), 'ERR_NOT_SUPPORT');
|
|
3587
|
+
}
|
|
3588
|
+
return adapter;
|
|
3596
3589
|
};
|
|
3597
3590
|
function throwIfCancellationRequested(config) {
|
|
3598
3591
|
if (config.cancelToken && config.cancelToken.throwIfRequested(), config.signal && config.signal.aborted) throw new CanceledError(null, config);
|
|
@@ -3602,7 +3595,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3602
3595
|
'post',
|
|
3603
3596
|
'put',
|
|
3604
3597
|
'patch'
|
|
3605
|
-
].indexOf(config.method) && config.headers.setContentType('application/x-www-form-urlencoded', !1),
|
|
3598
|
+
].indexOf(config.method) && config.headers.setContentType('application/x-www-form-urlencoded', !1), adapters_adapters_getAdapter(config.adapter || defaults_defaults.adapter, config)(config).then(function(response) {
|
|
3606
3599
|
return throwIfCancellationRequested(config), response.data = transformData.call(config, config.transformResponse, response), response.headers = AxiosHeaders_AxiosHeaders.from(response.headers), response;
|
|
3607
3600
|
}, function(reason) {
|
|
3608
3601
|
return !isCancel(reason) && (throwIfCancellationRequested(config), reason && reason.response && (reason.response.data = transformData.call(config, config.transformResponse, reason.response), reason.response.headers = AxiosHeaders_AxiosHeaders.from(reason.response.headers))), Promise.reject(reason);
|
|
@@ -3624,7 +3617,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3624
3617
|
let deprecatedWarnings = {};
|
|
3625
3618
|
validators.transitional = function(validator, version, message) {
|
|
3626
3619
|
function formatMessage(opt, desc) {
|
|
3627
|
-
return
|
|
3620
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
3628
3621
|
}
|
|
3629
3622
|
return (value, opt, opts)=>{
|
|
3630
3623
|
if (!1 === validator) throw new AxiosError_AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError_AxiosError.ERR_DEPRECATED);
|
|
@@ -3633,22 +3626,19 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3633
3626
|
}, validators.spelling = function(correctSpelling) {
|
|
3634
3627
|
return (value, opt)=>(console.warn(`${opt} is likely a misspelling of ${correctSpelling}`), !0);
|
|
3635
3628
|
};
|
|
3636
|
-
let
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
continue;
|
|
3646
|
-
}
|
|
3647
|
-
if (!0 !== allowUnknown) throw new AxiosError_AxiosError('Unknown option ' + opt, AxiosError_AxiosError.ERR_BAD_OPTION);
|
|
3629
|
+
let helpers_validator_assertOptions = function(options, schema, allowUnknown) {
|
|
3630
|
+
if ('object' != typeof options) throw new AxiosError_AxiosError('options must be an object', AxiosError_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3631
|
+
let keys = Object.keys(options), i = keys.length;
|
|
3632
|
+
for(; i-- > 0;){
|
|
3633
|
+
let opt = keys[i], validator = schema[opt];
|
|
3634
|
+
if (validator) {
|
|
3635
|
+
let value = options[opt], result = void 0 === value || validator(value, opt, options);
|
|
3636
|
+
if (!0 !== result) throw new AxiosError_AxiosError('option ' + opt + ' must be ' + result, AxiosError_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3637
|
+
continue;
|
|
3648
3638
|
}
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
}, Axios_validators =
|
|
3639
|
+
if (!0 !== allowUnknown) throw new AxiosError_AxiosError('Unknown option ' + opt, AxiosError_AxiosError.ERR_BAD_OPTION);
|
|
3640
|
+
}
|
|
3641
|
+
}, helpers_validator_validators = validators, Axios_validators = helpers_validator_validators;
|
|
3652
3642
|
class Axios_Axios {
|
|
3653
3643
|
constructor(instanceConfig){
|
|
3654
3644
|
this.defaults = instanceConfig || {}, this.interceptors = {
|
|
@@ -3675,16 +3665,16 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3675
3665
|
let promise, len;
|
|
3676
3666
|
'string' == typeof configOrUrl ? (config = config || {}).url = configOrUrl : config = configOrUrl || {};
|
|
3677
3667
|
let { transitional, paramsSerializer, headers } = config = mergeConfig(this.defaults, config);
|
|
3678
|
-
void 0 !== transitional &&
|
|
3668
|
+
void 0 !== transitional && helpers_validator_assertOptions(transitional, {
|
|
3679
3669
|
silentJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
|
|
3680
3670
|
forcedJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
|
|
3681
3671
|
clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean)
|
|
3682
3672
|
}, !1), null != paramsSerializer && (utils.isFunction(paramsSerializer) ? config.paramsSerializer = {
|
|
3683
3673
|
serialize: paramsSerializer
|
|
3684
|
-
} :
|
|
3674
|
+
} : helpers_validator_assertOptions(paramsSerializer, {
|
|
3685
3675
|
encode: Axios_validators.function,
|
|
3686
3676
|
serialize: Axios_validators.function
|
|
3687
|
-
}, !0)), void 0 !== config.allowAbsoluteUrls || (void 0 !== this.defaults.allowAbsoluteUrls ? config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : config.allowAbsoluteUrls = !0),
|
|
3677
|
+
}, !0)), void 0 !== config.allowAbsoluteUrls || (void 0 !== this.defaults.allowAbsoluteUrls ? config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : config.allowAbsoluteUrls = !0), helpers_validator_assertOptions(config, {
|
|
3688
3678
|
baseUrl: Axios_validators.spelling('baseURL'),
|
|
3689
3679
|
withXsrfToken: Axios_validators.spelling('withXSRFToken')
|
|
3690
3680
|
}, !0), config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
@@ -3719,7 +3709,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3719
3709
|
}
|
|
3720
3710
|
len = requestInterceptorChain.length;
|
|
3721
3711
|
let newConfig = config;
|
|
3722
|
-
for(
|
|
3712
|
+
for(; i < len;){
|
|
3723
3713
|
let onFulfilled = requestInterceptorChain[i++], onRejected = requestInterceptorChain[i++];
|
|
3724
3714
|
try {
|
|
3725
3715
|
newConfig = onFulfilled(newConfig);
|
|
@@ -3779,7 +3769,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3779
3769
|
this.promise = new Promise(function(resolve) {
|
|
3780
3770
|
resolvePromise = resolve;
|
|
3781
3771
|
});
|
|
3782
|
-
|
|
3772
|
+
const token = this;
|
|
3783
3773
|
this.promise.then((cancel)=>{
|
|
3784
3774
|
if (!token._listeners) return;
|
|
3785
3775
|
let i = token._listeners.length;
|
|
@@ -3800,8 +3790,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3800
3790
|
if (this.reason) throw this.reason;
|
|
3801
3791
|
}
|
|
3802
3792
|
subscribe(listener) {
|
|
3803
|
-
|
|
3804
|
-
this._listeners ? this._listeners.push(listener) : this._listeners = [
|
|
3793
|
+
this.reason ? listener(this.reason) : this._listeners ? this._listeners.push(listener) : this._listeners = [
|
|
3805
3794
|
listener
|
|
3806
3795
|
];
|
|
3807
3796
|
}
|
|
@@ -3904,7 +3893,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3904
3893
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
3905
3894
|
}, instance;
|
|
3906
3895
|
}(defaults_defaults);
|
|
3907
|
-
axios.Axios = Axios_Axios, axios.CanceledError = CanceledError, axios.CancelToken = CancelToken_CancelToken, axios.isCancel = isCancel, axios.VERSION =
|
|
3896
|
+
axios.Axios = Axios_Axios, axios.CanceledError = CanceledError, axios.CancelToken = CancelToken_CancelToken, axios.isCancel = isCancel, axios.VERSION = VERSION, axios.toFormData = helpers_toFormData, axios.AxiosError = AxiosError_AxiosError, axios.Cancel = axios.CanceledError, axios.all = function(promises) {
|
|
3908
3897
|
return Promise.all(promises);
|
|
3909
3898
|
}, axios.spread = function(callback) {
|
|
3910
3899
|
return function(arr) {
|
|
@@ -3912,7 +3901,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3912
3901
|
};
|
|
3913
3902
|
}, axios.isAxiosError = function(payload) {
|
|
3914
3903
|
return utils.isObject(payload) && !0 === payload.isAxiosError;
|
|
3915
|
-
}, axios.mergeConfig = mergeConfig, axios.AxiosHeaders = AxiosHeaders_AxiosHeaders, axios.formToJSON = (thing)=>helpers_formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing), axios.getAdapter =
|
|
3904
|
+
}, axios.mergeConfig = mergeConfig, axios.AxiosHeaders = AxiosHeaders_AxiosHeaders, axios.formToJSON = (thing)=>helpers_formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing), axios.getAdapter = adapters_adapters_getAdapter, axios.HttpStatusCode = HttpStatusCode, axios.default = axios;
|
|
3916
3905
|
var external_path_ = __webpack_require__("path"), external_path_default = __webpack_require__.n(external_path_);
|
|
3917
3906
|
let external_node_fs_namespaceObject = require("node:fs");
|
|
3918
3907
|
var external_node_fs_default = __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -4100,7 +4089,7 @@ example: ${bin} bundle-diff --baseline="x.json" --current="x.json"
|
|
|
4100
4089
|
options(commandCli), commandCli.action(async (args)=>{
|
|
4101
4090
|
try {
|
|
4102
4091
|
var command1 = command, args1 = args;
|
|
4103
|
-
"analyze" === command1 && (args1.profile || (logger_namespaceObject.logger.error((0, picocolors.red)(
|
|
4092
|
+
"analyze" === command1 && (args1.profile || (logger_namespaceObject.logger.error((0, picocolors.red)(`❌ Missing required argument: --profile`)), logger_namespaceObject.logger.info(`💡 Usage: ${constants_bin} ${command1} --profile <path>`), logger_namespaceObject.logger.info(`💡 Use --help to see all available options`), process.exit(1))), "bundle-diff" === command1 && (args1.current && args1.baseline || (logger_namespaceObject.logger.error((0, picocolors.red)(`❌ Missing required arguments: --current and --baseline`)), logger_namespaceObject.logger.info(`💡 Usage: ${constants_bin} ${command1} --current <path> --baseline <path>`), logger_namespaceObject.logger.info(`💡 Use --help to see all available options`), process.exit(1))), "stats-analyze" === command1 && (args1.profile || (logger_namespaceObject.logger.error((0, picocolors.red)(`❌ Missing required argument: --profile`)), logger_namespaceObject.logger.info(`💡 Usage: ${constants_bin} ${command1} --profile <path>`), logger_namespaceObject.logger.info(`💡 Use --help to see all available options`), process.exit(1))), await action(args);
|
|
4104
4093
|
} catch (error) {
|
|
4105
4094
|
let { message, stack } = error;
|
|
4106
4095
|
logger_namespaceObject.logger.error((0, picocolors.red)(stack || message)), process.exit(1);
|
|
@@ -4109,10 +4098,11 @@ example: ${bin} bundle-diff --baseline="x.json" --current="x.json"
|
|
|
4109
4098
|
}), process.argv.length <= 2) return void cli.outputHelp();
|
|
4110
4099
|
try {
|
|
4111
4100
|
cli.parse();
|
|
4112
|
-
} catch (
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4101
|
+
} catch (error) {
|
|
4102
|
+
!function(error) {
|
|
4103
|
+
let { message } = error;
|
|
4104
|
+
message.includes('value is missing') ? (logger_namespaceObject.logger.error((0, picocolors.red)(`❌ Missing required argument. Please provide a value for the option.`)), logger_namespaceObject.logger.info(`💡 Use --help to see available options`)) : message.includes('Unknown option') ? (logger_namespaceObject.logger.error((0, picocolors.red)(`❌ Unknown option. Please check your command.`)), logger_namespaceObject.logger.info(`💡 Use --help to see available options`)) : logger_namespaceObject.logger.error((0, picocolors.red)(`❌ ${message}`)), process.exit(1);
|
|
4105
|
+
}(error);
|
|
4116
4106
|
}
|
|
4117
4107
|
}
|
|
4118
4108
|
})(), exports.execute = __webpack_exports__.execute, __webpack_exports__)-1 === [
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { analyze, bundleDiff } from './commands';
|
|
2
|
-
import { GetCommandArgumentsType } from './types';
|
|
3
|
-
import { Commands } from './constants';
|
|
1
|
+
import { analyze, bundleDiff } from './commands/index.js';
|
|
2
|
+
import { GetCommandArgumentsType } from './types.js';
|
|
3
|
+
import { Commands } from './constants.js';
|
|
4
4
|
export declare function execute<T extends GetCommandArgumentsType<typeof analyze>>(command: Commands.Analyze | `${Commands.Analyze}`, options: T['options']): Promise<T['result']>;
|
|
5
5
|
export declare function execute<T extends GetCommandArgumentsType<typeof bundleDiff>>(command: Commands.BundleDiff | `${Commands.BundleDiff}`, options: T['options']): Promise<T['result']>;
|
|
6
6
|
export declare function execute(): Promise<void>;
|