@mcesystems/adb-kit 1.0.40 → 1.0.41
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/index.js +807 -18
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +807 -18
- package/dist/index.mjs.map +4 -4
- package/dist/types/logic/adbDeviceKit.d.ts.map +1 -1
- package/package.json +3 -3
- package/scripts/export-resources.ts +342 -342
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJS = (cb, mod) => function
|
|
9
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
10
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
11
|
};
|
|
12
12
|
var __export = (target, all) => {
|
|
@@ -30902,6 +30902,803 @@ logInfo.color = "45";
|
|
|
30902
30902
|
logWarning.color = "214";
|
|
30903
30903
|
logError.color = "160";
|
|
30904
30904
|
|
|
30905
|
+
// ../tool-debug/dist/index.mjs
|
|
30906
|
+
var __create2 = Object.create;
|
|
30907
|
+
var __defProp2 = Object.defineProperty;
|
|
30908
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
30909
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
30910
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
30911
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
30912
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
30913
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
30914
|
+
}) : x)(function(x) {
|
|
30915
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
30916
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
30917
|
+
});
|
|
30918
|
+
var __commonJS2 = (cb, mod) => function __require2() {
|
|
30919
|
+
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
30920
|
+
};
|
|
30921
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
30922
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
30923
|
+
for (let key of __getOwnPropNames2(from))
|
|
30924
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
30925
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
30926
|
+
}
|
|
30927
|
+
return to;
|
|
30928
|
+
};
|
|
30929
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
30930
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30931
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30932
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30933
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30934
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
30935
|
+
mod
|
|
30936
|
+
));
|
|
30937
|
+
var require_ms2 = __commonJS2({
|
|
30938
|
+
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports2, module2) {
|
|
30939
|
+
var s = 1e3;
|
|
30940
|
+
var m = s * 60;
|
|
30941
|
+
var h = m * 60;
|
|
30942
|
+
var d = h * 24;
|
|
30943
|
+
var w = d * 7;
|
|
30944
|
+
var y = d * 365.25;
|
|
30945
|
+
module2.exports = function(val, options) {
|
|
30946
|
+
options = options || {};
|
|
30947
|
+
var type = typeof val;
|
|
30948
|
+
if (type === "string" && val.length > 0) {
|
|
30949
|
+
return parse(val);
|
|
30950
|
+
} else if (type === "number" && isFinite(val)) {
|
|
30951
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
30952
|
+
}
|
|
30953
|
+
throw new Error(
|
|
30954
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
30955
|
+
);
|
|
30956
|
+
};
|
|
30957
|
+
function parse(str) {
|
|
30958
|
+
str = String(str);
|
|
30959
|
+
if (str.length > 100) {
|
|
30960
|
+
return;
|
|
30961
|
+
}
|
|
30962
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
30963
|
+
str
|
|
30964
|
+
);
|
|
30965
|
+
if (!match) {
|
|
30966
|
+
return;
|
|
30967
|
+
}
|
|
30968
|
+
var n = parseFloat(match[1]);
|
|
30969
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
30970
|
+
switch (type) {
|
|
30971
|
+
case "years":
|
|
30972
|
+
case "year":
|
|
30973
|
+
case "yrs":
|
|
30974
|
+
case "yr":
|
|
30975
|
+
case "y":
|
|
30976
|
+
return n * y;
|
|
30977
|
+
case "weeks":
|
|
30978
|
+
case "week":
|
|
30979
|
+
case "w":
|
|
30980
|
+
return n * w;
|
|
30981
|
+
case "days":
|
|
30982
|
+
case "day":
|
|
30983
|
+
case "d":
|
|
30984
|
+
return n * d;
|
|
30985
|
+
case "hours":
|
|
30986
|
+
case "hour":
|
|
30987
|
+
case "hrs":
|
|
30988
|
+
case "hr":
|
|
30989
|
+
case "h":
|
|
30990
|
+
return n * h;
|
|
30991
|
+
case "minutes":
|
|
30992
|
+
case "minute":
|
|
30993
|
+
case "mins":
|
|
30994
|
+
case "min":
|
|
30995
|
+
case "m":
|
|
30996
|
+
return n * m;
|
|
30997
|
+
case "seconds":
|
|
30998
|
+
case "second":
|
|
30999
|
+
case "secs":
|
|
31000
|
+
case "sec":
|
|
31001
|
+
case "s":
|
|
31002
|
+
return n * s;
|
|
31003
|
+
case "milliseconds":
|
|
31004
|
+
case "millisecond":
|
|
31005
|
+
case "msecs":
|
|
31006
|
+
case "msec":
|
|
31007
|
+
case "ms":
|
|
31008
|
+
return n;
|
|
31009
|
+
default:
|
|
31010
|
+
return void 0;
|
|
31011
|
+
}
|
|
31012
|
+
}
|
|
31013
|
+
function fmtShort(ms) {
|
|
31014
|
+
var msAbs = Math.abs(ms);
|
|
31015
|
+
if (msAbs >= d) {
|
|
31016
|
+
return Math.round(ms / d) + "d";
|
|
31017
|
+
}
|
|
31018
|
+
if (msAbs >= h) {
|
|
31019
|
+
return Math.round(ms / h) + "h";
|
|
31020
|
+
}
|
|
31021
|
+
if (msAbs >= m) {
|
|
31022
|
+
return Math.round(ms / m) + "m";
|
|
31023
|
+
}
|
|
31024
|
+
if (msAbs >= s) {
|
|
31025
|
+
return Math.round(ms / s) + "s";
|
|
31026
|
+
}
|
|
31027
|
+
return ms + "ms";
|
|
31028
|
+
}
|
|
31029
|
+
function fmtLong(ms) {
|
|
31030
|
+
var msAbs = Math.abs(ms);
|
|
31031
|
+
if (msAbs >= d) {
|
|
31032
|
+
return plural(ms, msAbs, d, "day");
|
|
31033
|
+
}
|
|
31034
|
+
if (msAbs >= h) {
|
|
31035
|
+
return plural(ms, msAbs, h, "hour");
|
|
31036
|
+
}
|
|
31037
|
+
if (msAbs >= m) {
|
|
31038
|
+
return plural(ms, msAbs, m, "minute");
|
|
31039
|
+
}
|
|
31040
|
+
if (msAbs >= s) {
|
|
31041
|
+
return plural(ms, msAbs, s, "second");
|
|
31042
|
+
}
|
|
31043
|
+
return ms + " ms";
|
|
31044
|
+
}
|
|
31045
|
+
function plural(ms, msAbs, n, name) {
|
|
31046
|
+
var isPlural = msAbs >= n * 1.5;
|
|
31047
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
31048
|
+
}
|
|
31049
|
+
}
|
|
31050
|
+
});
|
|
31051
|
+
var require_common3 = __commonJS2({
|
|
31052
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports2, module2) {
|
|
31053
|
+
function setup(env2) {
|
|
31054
|
+
createDebug2.debug = createDebug2;
|
|
31055
|
+
createDebug2.default = createDebug2;
|
|
31056
|
+
createDebug2.coerce = coerce;
|
|
31057
|
+
createDebug2.disable = disable;
|
|
31058
|
+
createDebug2.enable = enable;
|
|
31059
|
+
createDebug2.enabled = enabled;
|
|
31060
|
+
createDebug2.humanize = require_ms2();
|
|
31061
|
+
createDebug2.destroy = destroy;
|
|
31062
|
+
Object.keys(env2).forEach((key) => {
|
|
31063
|
+
createDebug2[key] = env2[key];
|
|
31064
|
+
});
|
|
31065
|
+
createDebug2.names = [];
|
|
31066
|
+
createDebug2.skips = [];
|
|
31067
|
+
createDebug2.formatters = {};
|
|
31068
|
+
function selectColor(namespace) {
|
|
31069
|
+
let hash = 0;
|
|
31070
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
31071
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
31072
|
+
hash |= 0;
|
|
31073
|
+
}
|
|
31074
|
+
return createDebug2.colors[Math.abs(hash) % createDebug2.colors.length];
|
|
31075
|
+
}
|
|
31076
|
+
createDebug2.selectColor = selectColor;
|
|
31077
|
+
function createDebug2(namespace) {
|
|
31078
|
+
let prevTime;
|
|
31079
|
+
let enableOverride = null;
|
|
31080
|
+
let namespacesCache;
|
|
31081
|
+
let enabledCache;
|
|
31082
|
+
function debug2(...args) {
|
|
31083
|
+
if (!debug2.enabled) {
|
|
31084
|
+
return;
|
|
31085
|
+
}
|
|
31086
|
+
const self2 = debug2;
|
|
31087
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
31088
|
+
const ms = curr - (prevTime || curr);
|
|
31089
|
+
self2.diff = ms;
|
|
31090
|
+
self2.prev = prevTime;
|
|
31091
|
+
self2.curr = curr;
|
|
31092
|
+
prevTime = curr;
|
|
31093
|
+
args[0] = createDebug2.coerce(args[0]);
|
|
31094
|
+
if (typeof args[0] !== "string") {
|
|
31095
|
+
args.unshift("%O");
|
|
31096
|
+
}
|
|
31097
|
+
let index = 0;
|
|
31098
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
31099
|
+
if (match === "%%") {
|
|
31100
|
+
return "%";
|
|
31101
|
+
}
|
|
31102
|
+
index++;
|
|
31103
|
+
const formatter = createDebug2.formatters[format];
|
|
31104
|
+
if (typeof formatter === "function") {
|
|
31105
|
+
const val = args[index];
|
|
31106
|
+
match = formatter.call(self2, val);
|
|
31107
|
+
args.splice(index, 1);
|
|
31108
|
+
index--;
|
|
31109
|
+
}
|
|
31110
|
+
return match;
|
|
31111
|
+
});
|
|
31112
|
+
createDebug2.formatArgs.call(self2, args);
|
|
31113
|
+
const logFn = self2.log || createDebug2.log;
|
|
31114
|
+
logFn.apply(self2, args);
|
|
31115
|
+
}
|
|
31116
|
+
debug2.namespace = namespace;
|
|
31117
|
+
debug2.useColors = createDebug2.useColors();
|
|
31118
|
+
debug2.color = createDebug2.selectColor(namespace);
|
|
31119
|
+
debug2.extend = extend;
|
|
31120
|
+
debug2.destroy = createDebug2.destroy;
|
|
31121
|
+
Object.defineProperty(debug2, "enabled", {
|
|
31122
|
+
enumerable: true,
|
|
31123
|
+
configurable: false,
|
|
31124
|
+
get: () => {
|
|
31125
|
+
if (enableOverride !== null) {
|
|
31126
|
+
return enableOverride;
|
|
31127
|
+
}
|
|
31128
|
+
if (namespacesCache !== createDebug2.namespaces) {
|
|
31129
|
+
namespacesCache = createDebug2.namespaces;
|
|
31130
|
+
enabledCache = createDebug2.enabled(namespace);
|
|
31131
|
+
}
|
|
31132
|
+
return enabledCache;
|
|
31133
|
+
},
|
|
31134
|
+
set: (v) => {
|
|
31135
|
+
enableOverride = v;
|
|
31136
|
+
}
|
|
31137
|
+
});
|
|
31138
|
+
if (typeof createDebug2.init === "function") {
|
|
31139
|
+
createDebug2.init(debug2);
|
|
31140
|
+
}
|
|
31141
|
+
return debug2;
|
|
31142
|
+
}
|
|
31143
|
+
function extend(namespace, delimiter) {
|
|
31144
|
+
const newDebug = createDebug2(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
31145
|
+
newDebug.log = this.log;
|
|
31146
|
+
return newDebug;
|
|
31147
|
+
}
|
|
31148
|
+
function enable(namespaces) {
|
|
31149
|
+
createDebug2.save(namespaces);
|
|
31150
|
+
createDebug2.namespaces = namespaces;
|
|
31151
|
+
createDebug2.names = [];
|
|
31152
|
+
createDebug2.skips = [];
|
|
31153
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
31154
|
+
for (const ns of split) {
|
|
31155
|
+
if (ns[0] === "-") {
|
|
31156
|
+
createDebug2.skips.push(ns.slice(1));
|
|
31157
|
+
} else {
|
|
31158
|
+
createDebug2.names.push(ns);
|
|
31159
|
+
}
|
|
31160
|
+
}
|
|
31161
|
+
}
|
|
31162
|
+
function matchesTemplate(search, template) {
|
|
31163
|
+
let searchIndex = 0;
|
|
31164
|
+
let templateIndex = 0;
|
|
31165
|
+
let starIndex = -1;
|
|
31166
|
+
let matchIndex = 0;
|
|
31167
|
+
while (searchIndex < search.length) {
|
|
31168
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
31169
|
+
if (template[templateIndex] === "*") {
|
|
31170
|
+
starIndex = templateIndex;
|
|
31171
|
+
matchIndex = searchIndex;
|
|
31172
|
+
templateIndex++;
|
|
31173
|
+
} else {
|
|
31174
|
+
searchIndex++;
|
|
31175
|
+
templateIndex++;
|
|
31176
|
+
}
|
|
31177
|
+
} else if (starIndex !== -1) {
|
|
31178
|
+
templateIndex = starIndex + 1;
|
|
31179
|
+
matchIndex++;
|
|
31180
|
+
searchIndex = matchIndex;
|
|
31181
|
+
} else {
|
|
31182
|
+
return false;
|
|
31183
|
+
}
|
|
31184
|
+
}
|
|
31185
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
31186
|
+
templateIndex++;
|
|
31187
|
+
}
|
|
31188
|
+
return templateIndex === template.length;
|
|
31189
|
+
}
|
|
31190
|
+
function disable() {
|
|
31191
|
+
const namespaces = [
|
|
31192
|
+
...createDebug2.names,
|
|
31193
|
+
...createDebug2.skips.map((namespace) => "-" + namespace)
|
|
31194
|
+
].join(",");
|
|
31195
|
+
createDebug2.enable("");
|
|
31196
|
+
return namespaces;
|
|
31197
|
+
}
|
|
31198
|
+
function enabled(name) {
|
|
31199
|
+
for (const skip of createDebug2.skips) {
|
|
31200
|
+
if (matchesTemplate(name, skip)) {
|
|
31201
|
+
return false;
|
|
31202
|
+
}
|
|
31203
|
+
}
|
|
31204
|
+
for (const ns of createDebug2.names) {
|
|
31205
|
+
if (matchesTemplate(name, ns)) {
|
|
31206
|
+
return true;
|
|
31207
|
+
}
|
|
31208
|
+
}
|
|
31209
|
+
return false;
|
|
31210
|
+
}
|
|
31211
|
+
function coerce(val) {
|
|
31212
|
+
if (val instanceof Error) {
|
|
31213
|
+
return val.stack || val.message;
|
|
31214
|
+
}
|
|
31215
|
+
return val;
|
|
31216
|
+
}
|
|
31217
|
+
function destroy() {
|
|
31218
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
31219
|
+
}
|
|
31220
|
+
createDebug2.enable(createDebug2.load());
|
|
31221
|
+
return createDebug2;
|
|
31222
|
+
}
|
|
31223
|
+
module2.exports = setup;
|
|
31224
|
+
}
|
|
31225
|
+
});
|
|
31226
|
+
var require_browser3 = __commonJS2({
|
|
31227
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports2, module2) {
|
|
31228
|
+
exports2.formatArgs = formatArgs;
|
|
31229
|
+
exports2.save = save;
|
|
31230
|
+
exports2.load = load;
|
|
31231
|
+
exports2.useColors = useColors;
|
|
31232
|
+
exports2.storage = localstorage();
|
|
31233
|
+
exports2.destroy = /* @__PURE__ */ (() => {
|
|
31234
|
+
let warned = false;
|
|
31235
|
+
return () => {
|
|
31236
|
+
if (!warned) {
|
|
31237
|
+
warned = true;
|
|
31238
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
31239
|
+
}
|
|
31240
|
+
};
|
|
31241
|
+
})();
|
|
31242
|
+
exports2.colors = [
|
|
31243
|
+
"#0000CC",
|
|
31244
|
+
"#0000FF",
|
|
31245
|
+
"#0033CC",
|
|
31246
|
+
"#0033FF",
|
|
31247
|
+
"#0066CC",
|
|
31248
|
+
"#0066FF",
|
|
31249
|
+
"#0099CC",
|
|
31250
|
+
"#0099FF",
|
|
31251
|
+
"#00CC00",
|
|
31252
|
+
"#00CC33",
|
|
31253
|
+
"#00CC66",
|
|
31254
|
+
"#00CC99",
|
|
31255
|
+
"#00CCCC",
|
|
31256
|
+
"#00CCFF",
|
|
31257
|
+
"#3300CC",
|
|
31258
|
+
"#3300FF",
|
|
31259
|
+
"#3333CC",
|
|
31260
|
+
"#3333FF",
|
|
31261
|
+
"#3366CC",
|
|
31262
|
+
"#3366FF",
|
|
31263
|
+
"#3399CC",
|
|
31264
|
+
"#3399FF",
|
|
31265
|
+
"#33CC00",
|
|
31266
|
+
"#33CC33",
|
|
31267
|
+
"#33CC66",
|
|
31268
|
+
"#33CC99",
|
|
31269
|
+
"#33CCCC",
|
|
31270
|
+
"#33CCFF",
|
|
31271
|
+
"#6600CC",
|
|
31272
|
+
"#6600FF",
|
|
31273
|
+
"#6633CC",
|
|
31274
|
+
"#6633FF",
|
|
31275
|
+
"#66CC00",
|
|
31276
|
+
"#66CC33",
|
|
31277
|
+
"#9900CC",
|
|
31278
|
+
"#9900FF",
|
|
31279
|
+
"#9933CC",
|
|
31280
|
+
"#9933FF",
|
|
31281
|
+
"#99CC00",
|
|
31282
|
+
"#99CC33",
|
|
31283
|
+
"#CC0000",
|
|
31284
|
+
"#CC0033",
|
|
31285
|
+
"#CC0066",
|
|
31286
|
+
"#CC0099",
|
|
31287
|
+
"#CC00CC",
|
|
31288
|
+
"#CC00FF",
|
|
31289
|
+
"#CC3300",
|
|
31290
|
+
"#CC3333",
|
|
31291
|
+
"#CC3366",
|
|
31292
|
+
"#CC3399",
|
|
31293
|
+
"#CC33CC",
|
|
31294
|
+
"#CC33FF",
|
|
31295
|
+
"#CC6600",
|
|
31296
|
+
"#CC6633",
|
|
31297
|
+
"#CC9900",
|
|
31298
|
+
"#CC9933",
|
|
31299
|
+
"#CCCC00",
|
|
31300
|
+
"#CCCC33",
|
|
31301
|
+
"#FF0000",
|
|
31302
|
+
"#FF0033",
|
|
31303
|
+
"#FF0066",
|
|
31304
|
+
"#FF0099",
|
|
31305
|
+
"#FF00CC",
|
|
31306
|
+
"#FF00FF",
|
|
31307
|
+
"#FF3300",
|
|
31308
|
+
"#FF3333",
|
|
31309
|
+
"#FF3366",
|
|
31310
|
+
"#FF3399",
|
|
31311
|
+
"#FF33CC",
|
|
31312
|
+
"#FF33FF",
|
|
31313
|
+
"#FF6600",
|
|
31314
|
+
"#FF6633",
|
|
31315
|
+
"#FF9900",
|
|
31316
|
+
"#FF9933",
|
|
31317
|
+
"#FFCC00",
|
|
31318
|
+
"#FFCC33"
|
|
31319
|
+
];
|
|
31320
|
+
function useColors() {
|
|
31321
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
31322
|
+
return true;
|
|
31323
|
+
}
|
|
31324
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
31325
|
+
return false;
|
|
31326
|
+
}
|
|
31327
|
+
let m;
|
|
31328
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
31329
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
31330
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
31331
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
31332
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
31333
|
+
}
|
|
31334
|
+
function formatArgs(args) {
|
|
31335
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
31336
|
+
if (!this.useColors) {
|
|
31337
|
+
return;
|
|
31338
|
+
}
|
|
31339
|
+
const c = "color: " + this.color;
|
|
31340
|
+
args.splice(1, 0, c, "color: inherit");
|
|
31341
|
+
let index = 0;
|
|
31342
|
+
let lastC = 0;
|
|
31343
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
31344
|
+
if (match === "%%") {
|
|
31345
|
+
return;
|
|
31346
|
+
}
|
|
31347
|
+
index++;
|
|
31348
|
+
if (match === "%c") {
|
|
31349
|
+
lastC = index;
|
|
31350
|
+
}
|
|
31351
|
+
});
|
|
31352
|
+
args.splice(lastC, 0, c);
|
|
31353
|
+
}
|
|
31354
|
+
exports2.log = console.debug || console.log || (() => {
|
|
31355
|
+
});
|
|
31356
|
+
function save(namespaces) {
|
|
31357
|
+
try {
|
|
31358
|
+
if (namespaces) {
|
|
31359
|
+
exports2.storage.setItem("debug", namespaces);
|
|
31360
|
+
} else {
|
|
31361
|
+
exports2.storage.removeItem("debug");
|
|
31362
|
+
}
|
|
31363
|
+
} catch (error) {
|
|
31364
|
+
}
|
|
31365
|
+
}
|
|
31366
|
+
function load() {
|
|
31367
|
+
let r;
|
|
31368
|
+
try {
|
|
31369
|
+
r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
|
|
31370
|
+
} catch (error) {
|
|
31371
|
+
}
|
|
31372
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
31373
|
+
r = process.env.DEBUG;
|
|
31374
|
+
}
|
|
31375
|
+
return r;
|
|
31376
|
+
}
|
|
31377
|
+
function localstorage() {
|
|
31378
|
+
try {
|
|
31379
|
+
return localStorage;
|
|
31380
|
+
} catch (error) {
|
|
31381
|
+
}
|
|
31382
|
+
}
|
|
31383
|
+
module2.exports = require_common3()(exports2);
|
|
31384
|
+
var { formatters } = module2.exports;
|
|
31385
|
+
formatters.j = function(v) {
|
|
31386
|
+
try {
|
|
31387
|
+
return JSON.stringify(v);
|
|
31388
|
+
} catch (error) {
|
|
31389
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
31390
|
+
}
|
|
31391
|
+
};
|
|
31392
|
+
}
|
|
31393
|
+
});
|
|
31394
|
+
var require_has_flag2 = __commonJS2({
|
|
31395
|
+
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports2, module2) {
|
|
31396
|
+
"use strict";
|
|
31397
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
31398
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
31399
|
+
const position = argv.indexOf(prefix + flag);
|
|
31400
|
+
const terminatorPosition = argv.indexOf("--");
|
|
31401
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
31402
|
+
};
|
|
31403
|
+
}
|
|
31404
|
+
});
|
|
31405
|
+
var require_supports_color2 = __commonJS2({
|
|
31406
|
+
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
31407
|
+
"use strict";
|
|
31408
|
+
var os2 = __require("os");
|
|
31409
|
+
var tty = __require("tty");
|
|
31410
|
+
var hasFlag = require_has_flag2();
|
|
31411
|
+
var { env: env2 } = process;
|
|
31412
|
+
var forceColor;
|
|
31413
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
31414
|
+
forceColor = 0;
|
|
31415
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
31416
|
+
forceColor = 1;
|
|
31417
|
+
}
|
|
31418
|
+
if ("FORCE_COLOR" in env2) {
|
|
31419
|
+
if (env2.FORCE_COLOR === "true") {
|
|
31420
|
+
forceColor = 1;
|
|
31421
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
31422
|
+
forceColor = 0;
|
|
31423
|
+
} else {
|
|
31424
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
31425
|
+
}
|
|
31426
|
+
}
|
|
31427
|
+
function translateLevel(level) {
|
|
31428
|
+
if (level === 0) {
|
|
31429
|
+
return false;
|
|
31430
|
+
}
|
|
31431
|
+
return {
|
|
31432
|
+
level,
|
|
31433
|
+
hasBasic: true,
|
|
31434
|
+
has256: level >= 2,
|
|
31435
|
+
has16m: level >= 3
|
|
31436
|
+
};
|
|
31437
|
+
}
|
|
31438
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
31439
|
+
if (forceColor === 0) {
|
|
31440
|
+
return 0;
|
|
31441
|
+
}
|
|
31442
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
31443
|
+
return 3;
|
|
31444
|
+
}
|
|
31445
|
+
if (hasFlag("color=256")) {
|
|
31446
|
+
return 2;
|
|
31447
|
+
}
|
|
31448
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
31449
|
+
return 0;
|
|
31450
|
+
}
|
|
31451
|
+
const min = forceColor || 0;
|
|
31452
|
+
if (env2.TERM === "dumb") {
|
|
31453
|
+
return min;
|
|
31454
|
+
}
|
|
31455
|
+
if (process.platform === "win32") {
|
|
31456
|
+
const osRelease = os2.release().split(".");
|
|
31457
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
31458
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
31459
|
+
}
|
|
31460
|
+
return 1;
|
|
31461
|
+
}
|
|
31462
|
+
if ("CI" in env2) {
|
|
31463
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
31464
|
+
return 1;
|
|
31465
|
+
}
|
|
31466
|
+
return min;
|
|
31467
|
+
}
|
|
31468
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
31469
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
31470
|
+
}
|
|
31471
|
+
if (env2.COLORTERM === "truecolor") {
|
|
31472
|
+
return 3;
|
|
31473
|
+
}
|
|
31474
|
+
if ("TERM_PROGRAM" in env2) {
|
|
31475
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
31476
|
+
switch (env2.TERM_PROGRAM) {
|
|
31477
|
+
case "iTerm.app":
|
|
31478
|
+
return version >= 3 ? 3 : 2;
|
|
31479
|
+
case "Apple_Terminal":
|
|
31480
|
+
return 2;
|
|
31481
|
+
}
|
|
31482
|
+
}
|
|
31483
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
31484
|
+
return 2;
|
|
31485
|
+
}
|
|
31486
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
31487
|
+
return 1;
|
|
31488
|
+
}
|
|
31489
|
+
if ("COLORTERM" in env2) {
|
|
31490
|
+
return 1;
|
|
31491
|
+
}
|
|
31492
|
+
return min;
|
|
31493
|
+
}
|
|
31494
|
+
function getSupportLevel(stream) {
|
|
31495
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
31496
|
+
return translateLevel(level);
|
|
31497
|
+
}
|
|
31498
|
+
module2.exports = {
|
|
31499
|
+
supportsColor: getSupportLevel,
|
|
31500
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
31501
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
31502
|
+
};
|
|
31503
|
+
}
|
|
31504
|
+
});
|
|
31505
|
+
var require_node3 = __commonJS2({
|
|
31506
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports2, module2) {
|
|
31507
|
+
var tty = __require("tty");
|
|
31508
|
+
var util = __require("util");
|
|
31509
|
+
exports2.init = init;
|
|
31510
|
+
exports2.log = log;
|
|
31511
|
+
exports2.formatArgs = formatArgs;
|
|
31512
|
+
exports2.save = save;
|
|
31513
|
+
exports2.load = load;
|
|
31514
|
+
exports2.useColors = useColors;
|
|
31515
|
+
exports2.destroy = util.deprecate(
|
|
31516
|
+
() => {
|
|
31517
|
+
},
|
|
31518
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
31519
|
+
);
|
|
31520
|
+
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
31521
|
+
try {
|
|
31522
|
+
const supportsColor = require_supports_color2();
|
|
31523
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
31524
|
+
exports2.colors = [
|
|
31525
|
+
20,
|
|
31526
|
+
21,
|
|
31527
|
+
26,
|
|
31528
|
+
27,
|
|
31529
|
+
32,
|
|
31530
|
+
33,
|
|
31531
|
+
38,
|
|
31532
|
+
39,
|
|
31533
|
+
40,
|
|
31534
|
+
41,
|
|
31535
|
+
42,
|
|
31536
|
+
43,
|
|
31537
|
+
44,
|
|
31538
|
+
45,
|
|
31539
|
+
56,
|
|
31540
|
+
57,
|
|
31541
|
+
62,
|
|
31542
|
+
63,
|
|
31543
|
+
68,
|
|
31544
|
+
69,
|
|
31545
|
+
74,
|
|
31546
|
+
75,
|
|
31547
|
+
76,
|
|
31548
|
+
77,
|
|
31549
|
+
78,
|
|
31550
|
+
79,
|
|
31551
|
+
80,
|
|
31552
|
+
81,
|
|
31553
|
+
92,
|
|
31554
|
+
93,
|
|
31555
|
+
98,
|
|
31556
|
+
99,
|
|
31557
|
+
112,
|
|
31558
|
+
113,
|
|
31559
|
+
128,
|
|
31560
|
+
129,
|
|
31561
|
+
134,
|
|
31562
|
+
135,
|
|
31563
|
+
148,
|
|
31564
|
+
149,
|
|
31565
|
+
160,
|
|
31566
|
+
161,
|
|
31567
|
+
162,
|
|
31568
|
+
163,
|
|
31569
|
+
164,
|
|
31570
|
+
165,
|
|
31571
|
+
166,
|
|
31572
|
+
167,
|
|
31573
|
+
168,
|
|
31574
|
+
169,
|
|
31575
|
+
170,
|
|
31576
|
+
171,
|
|
31577
|
+
172,
|
|
31578
|
+
173,
|
|
31579
|
+
178,
|
|
31580
|
+
179,
|
|
31581
|
+
184,
|
|
31582
|
+
185,
|
|
31583
|
+
196,
|
|
31584
|
+
197,
|
|
31585
|
+
198,
|
|
31586
|
+
199,
|
|
31587
|
+
200,
|
|
31588
|
+
201,
|
|
31589
|
+
202,
|
|
31590
|
+
203,
|
|
31591
|
+
204,
|
|
31592
|
+
205,
|
|
31593
|
+
206,
|
|
31594
|
+
207,
|
|
31595
|
+
208,
|
|
31596
|
+
209,
|
|
31597
|
+
214,
|
|
31598
|
+
215,
|
|
31599
|
+
220,
|
|
31600
|
+
221
|
|
31601
|
+
];
|
|
31602
|
+
}
|
|
31603
|
+
} catch (error) {
|
|
31604
|
+
}
|
|
31605
|
+
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
31606
|
+
return /^debug_/i.test(key);
|
|
31607
|
+
}).reduce((obj2, key) => {
|
|
31608
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
31609
|
+
return k.toUpperCase();
|
|
31610
|
+
});
|
|
31611
|
+
let val = process.env[key];
|
|
31612
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
31613
|
+
val = true;
|
|
31614
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
31615
|
+
val = false;
|
|
31616
|
+
} else if (val === "null") {
|
|
31617
|
+
val = null;
|
|
31618
|
+
} else {
|
|
31619
|
+
val = Number(val);
|
|
31620
|
+
}
|
|
31621
|
+
obj2[prop] = val;
|
|
31622
|
+
return obj2;
|
|
31623
|
+
}, {});
|
|
31624
|
+
function useColors() {
|
|
31625
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
31626
|
+
}
|
|
31627
|
+
function formatArgs(args) {
|
|
31628
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
31629
|
+
if (useColors2) {
|
|
31630
|
+
const c = this.color;
|
|
31631
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
31632
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
31633
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
31634
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
31635
|
+
} else {
|
|
31636
|
+
args[0] = getDate() + name + " " + args[0];
|
|
31637
|
+
}
|
|
31638
|
+
}
|
|
31639
|
+
function getDate() {
|
|
31640
|
+
if (exports2.inspectOpts.hideDate) {
|
|
31641
|
+
return "";
|
|
31642
|
+
}
|
|
31643
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
31644
|
+
}
|
|
31645
|
+
function log(...args) {
|
|
31646
|
+
return process.stderr.write(util.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
31647
|
+
}
|
|
31648
|
+
function save(namespaces) {
|
|
31649
|
+
if (namespaces) {
|
|
31650
|
+
process.env.DEBUG = namespaces;
|
|
31651
|
+
} else {
|
|
31652
|
+
delete process.env.DEBUG;
|
|
31653
|
+
}
|
|
31654
|
+
}
|
|
31655
|
+
function load() {
|
|
31656
|
+
return process.env.DEBUG;
|
|
31657
|
+
}
|
|
31658
|
+
function init(debug2) {
|
|
31659
|
+
debug2.inspectOpts = {};
|
|
31660
|
+
const keys = Object.keys(exports2.inspectOpts);
|
|
31661
|
+
for (let i = 0; i < keys.length; i++) {
|
|
31662
|
+
debug2.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
31663
|
+
}
|
|
31664
|
+
}
|
|
31665
|
+
module2.exports = require_common3()(exports2);
|
|
31666
|
+
var { formatters } = module2.exports;
|
|
31667
|
+
formatters.o = function(v) {
|
|
31668
|
+
this.inspectOpts.colors = this.useColors;
|
|
31669
|
+
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
31670
|
+
};
|
|
31671
|
+
formatters.O = function(v) {
|
|
31672
|
+
this.inspectOpts.colors = this.useColors;
|
|
31673
|
+
return util.inspect(v, this.inspectOpts);
|
|
31674
|
+
};
|
|
31675
|
+
}
|
|
31676
|
+
});
|
|
31677
|
+
var require_src3 = __commonJS2({
|
|
31678
|
+
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports2, module2) {
|
|
31679
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
31680
|
+
module2.exports = require_browser3();
|
|
31681
|
+
} else {
|
|
31682
|
+
module2.exports = require_node3();
|
|
31683
|
+
}
|
|
31684
|
+
}
|
|
31685
|
+
});
|
|
31686
|
+
var import_debug2 = __toESM2(require_src3());
|
|
31687
|
+
var logInfo2 = (0, import_debug2.default)("info");
|
|
31688
|
+
var logTask2 = (0, import_debug2.default)("task");
|
|
31689
|
+
var logError2 = (0, import_debug2.default)("error");
|
|
31690
|
+
var logDetail = (0, import_debug2.default)("detail");
|
|
31691
|
+
function logNamespace(namespace) {
|
|
31692
|
+
logInfo2.namespace = `INFO:${namespace}`;
|
|
31693
|
+
logTask2.namespace = `TASK:${namespace}`;
|
|
31694
|
+
logError2.namespace = `ERROR:${namespace}`;
|
|
31695
|
+
logDetail.namespace = `DETAIL:${namespace}`;
|
|
31696
|
+
logInfo2.color = "45";
|
|
31697
|
+
logTask2.color = "40";
|
|
31698
|
+
logError2.color = "160";
|
|
31699
|
+
logDetail.color = "240";
|
|
31700
|
+
}
|
|
31701
|
+
|
|
30905
31702
|
// src/logic/adbDeviceKit.ts
|
|
30906
31703
|
function ensureAdbPathFromResources() {
|
|
30907
31704
|
const adbPath = getAdbBinaryPath();
|
|
@@ -30973,16 +31770,10 @@ var AdbDeviceKit = class {
|
|
|
30973
31770
|
}
|
|
30974
31771
|
}
|
|
30975
31772
|
async getAllDeviceProperties() {
|
|
30976
|
-
if (!await this.hasUsbDebugging()) {
|
|
30977
|
-
this.waitForUsbDebugging(1e4);
|
|
30978
|
-
}
|
|
30979
31773
|
return this.device.getProperties();
|
|
30980
31774
|
}
|
|
30981
31775
|
async getDeviceProperties(properties) {
|
|
30982
31776
|
logTask(`Getting properties ${properties.join(", ")} for device ${this.deviceId}`);
|
|
30983
|
-
if (!await this.hasUsbDebugging()) {
|
|
30984
|
-
this.waitForUsbDebugging(1e4);
|
|
30985
|
-
}
|
|
30986
31777
|
const propertiesValues = await Promise.all(
|
|
30987
31778
|
properties.map((property) => this.getProperty(this.device, property))
|
|
30988
31779
|
);
|
|
@@ -30990,23 +31781,14 @@ var AdbDeviceKit = class {
|
|
|
30990
31781
|
}
|
|
30991
31782
|
async installApp(appPath) {
|
|
30992
31783
|
logTask(`Installing app ${appPath} on device ${this.deviceId}`);
|
|
30993
|
-
if (!await this.hasUsbDebugging()) {
|
|
30994
|
-
this.waitForUsbDebugging(1e4);
|
|
30995
|
-
}
|
|
30996
31784
|
await this.device.install(appPath);
|
|
30997
31785
|
}
|
|
30998
31786
|
async uninstallApp(packageName) {
|
|
30999
31787
|
logTask(`Uninstalling app ${packageName} on device ${this.deviceId}`);
|
|
31000
|
-
if (!await this.hasUsbDebugging()) {
|
|
31001
|
-
this.waitForUsbDebugging(1e4);
|
|
31002
|
-
}
|
|
31003
31788
|
await this.device.uninstall(packageName);
|
|
31004
31789
|
}
|
|
31005
31790
|
async isAppInstalled(packageName) {
|
|
31006
31791
|
logTask(`Checking if app ${packageName} is installed on device ${this.deviceId}`);
|
|
31007
|
-
if (!await this.hasUsbDebugging()) {
|
|
31008
|
-
this.waitForUsbDebugging(1e4);
|
|
31009
|
-
}
|
|
31010
31792
|
return await this.device.isInstalled(packageName);
|
|
31011
31793
|
}
|
|
31012
31794
|
/**
|
|
@@ -31014,7 +31796,6 @@ var AdbDeviceKit = class {
|
|
|
31014
31796
|
* @returns The adb client
|
|
31015
31797
|
*/
|
|
31016
31798
|
async getClient() {
|
|
31017
|
-
await this.waitForUsbDebugging(1e4);
|
|
31018
31799
|
return this.client;
|
|
31019
31800
|
}
|
|
31020
31801
|
async hasUsbDebugging() {
|
|
@@ -31023,19 +31804,23 @@ var AdbDeviceKit = class {
|
|
|
31023
31804
|
}
|
|
31024
31805
|
async waitForUsbDebugging(timeout2 = 12e4, numberOfAllowedAttempts = 5) {
|
|
31025
31806
|
if (await this.hasUsbDebugging()) {
|
|
31807
|
+
logDetail("USB debugging is already enabled");
|
|
31026
31808
|
return true;
|
|
31027
31809
|
}
|
|
31028
31810
|
let count = numberOfAllowedAttempts;
|
|
31029
31811
|
const tracker = await this.client.trackDevices();
|
|
31030
31812
|
return new Promise((resolve, reject) => {
|
|
31031
31813
|
const timeoutId = setTimeout(() => {
|
|
31814
|
+
logError("Timeout waiting for USB debugging");
|
|
31032
31815
|
reject(new Error("Timeout waiting for USB debugging"));
|
|
31033
31816
|
}, timeout2);
|
|
31034
31817
|
tracker.on("remove", (_) => {
|
|
31035
31818
|
clearTimeout(timeoutId);
|
|
31819
|
+
logError("Device removed from tracker");
|
|
31036
31820
|
});
|
|
31037
31821
|
tracker.on("add", (device) => {
|
|
31038
31822
|
if (device.type === "device") {
|
|
31823
|
+
logDetail("Device added to tracker");
|
|
31039
31824
|
clearTimeout(timeoutId);
|
|
31040
31825
|
resolve(true);
|
|
31041
31826
|
}
|
|
@@ -31044,8 +31829,10 @@ var AdbDeviceKit = class {
|
|
|
31044
31829
|
count--;
|
|
31045
31830
|
if (device.type === "device" && count > 0) {
|
|
31046
31831
|
clearTimeout(timeoutId);
|
|
31832
|
+
logDetail("Device changed in tracker");
|
|
31047
31833
|
resolve(true);
|
|
31048
31834
|
} else if (count === 0) {
|
|
31835
|
+
logDetail("No device found in tracker");
|
|
31049
31836
|
this.client.kill();
|
|
31050
31837
|
resolve(false);
|
|
31051
31838
|
}
|
|
@@ -31069,10 +31856,12 @@ var AdbDeviceKit = class {
|
|
|
31069
31856
|
return this.port;
|
|
31070
31857
|
}
|
|
31071
31858
|
async getDeviceClient() {
|
|
31072
|
-
await this.waitForUsbDebugging(1e4);
|
|
31073
31859
|
return this.device;
|
|
31074
31860
|
}
|
|
31075
31861
|
};
|
|
31862
|
+
|
|
31863
|
+
// src/index.ts
|
|
31864
|
+
logNamespace("adb-kit");
|
|
31076
31865
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31077
31866
|
0 && (module.exports = {
|
|
31078
31867
|
AdbDeviceKit
|