@appium/support 7.0.4 → 7.0.6

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.
Files changed (113) hide show
  1. package/build/lib/console.d.ts +42 -88
  2. package/build/lib/console.d.ts.map +1 -1
  3. package/build/lib/console.js +25 -85
  4. package/build/lib/console.js.map +1 -1
  5. package/build/lib/doctor.d.ts +6 -18
  6. package/build/lib/doctor.d.ts.map +1 -1
  7. package/build/lib/doctor.js +0 -15
  8. package/build/lib/doctor.js.map +1 -1
  9. package/build/lib/env.d.ts +14 -20
  10. package/build/lib/env.d.ts.map +1 -1
  11. package/build/lib/env.js +24 -61
  12. package/build/lib/env.js.map +1 -1
  13. package/build/lib/fs.d.ts +109 -148
  14. package/build/lib/fs.d.ts.map +1 -1
  15. package/build/lib/fs.js +130 -230
  16. package/build/lib/fs.js.map +1 -1
  17. package/build/lib/image-util.d.ts +7 -6
  18. package/build/lib/image-util.d.ts.map +1 -1
  19. package/build/lib/image-util.js +9 -6
  20. package/build/lib/image-util.js.map +1 -1
  21. package/build/lib/index.d.ts +19 -17
  22. package/build/lib/index.d.ts.map +1 -1
  23. package/build/lib/logger.d.ts +1 -1
  24. package/build/lib/logger.d.ts.map +1 -1
  25. package/build/lib/logger.js +1 -1
  26. package/build/lib/logger.js.map +1 -1
  27. package/build/lib/logging.d.ts +7 -15
  28. package/build/lib/logging.d.ts.map +1 -1
  29. package/build/lib/logging.js +36 -62
  30. package/build/lib/logging.js.map +1 -1
  31. package/build/lib/mjpeg.d.ts +19 -56
  32. package/build/lib/mjpeg.d.ts.map +1 -1
  33. package/build/lib/mjpeg.js +55 -78
  34. package/build/lib/mjpeg.js.map +1 -1
  35. package/build/lib/mkdirp.d.ts +4 -1
  36. package/build/lib/mkdirp.d.ts.map +1 -1
  37. package/build/lib/mkdirp.js +1 -2
  38. package/build/lib/mkdirp.js.map +1 -1
  39. package/build/lib/net.d.ts +52 -90
  40. package/build/lib/net.d.ts.map +1 -1
  41. package/build/lib/net.js +104 -193
  42. package/build/lib/net.js.map +1 -1
  43. package/build/lib/node.d.ts +16 -17
  44. package/build/lib/node.d.ts.map +1 -1
  45. package/build/lib/node.js +115 -120
  46. package/build/lib/node.js.map +1 -1
  47. package/build/lib/npm.d.ts +65 -86
  48. package/build/lib/npm.d.ts.map +1 -1
  49. package/build/lib/npm.js +64 -122
  50. package/build/lib/npm.js.map +1 -1
  51. package/build/lib/plist.d.ts +36 -29
  52. package/build/lib/plist.d.ts.map +1 -1
  53. package/build/lib/plist.js +62 -59
  54. package/build/lib/plist.js.map +1 -1
  55. package/build/lib/process.d.ts +19 -2
  56. package/build/lib/process.d.ts.map +1 -1
  57. package/build/lib/process.js +24 -7
  58. package/build/lib/process.js.map +1 -1
  59. package/build/lib/system.d.ts +41 -6
  60. package/build/lib/system.d.ts.map +1 -1
  61. package/build/lib/system.js +49 -14
  62. package/build/lib/system.js.map +1 -1
  63. package/build/lib/tempdir.d.ts +26 -49
  64. package/build/lib/tempdir.d.ts.map +1 -1
  65. package/build/lib/tempdir.js +46 -78
  66. package/build/lib/tempdir.js.map +1 -1
  67. package/build/lib/timing.d.ts +28 -22
  68. package/build/lib/timing.d.ts.map +1 -1
  69. package/build/lib/timing.js +16 -17
  70. package/build/lib/timing.js.map +1 -1
  71. package/build/lib/util.d.ts +164 -181
  72. package/build/lib/util.d.ts.map +1 -1
  73. package/build/lib/util.js +198 -253
  74. package/build/lib/util.js.map +1 -1
  75. package/build/lib/zip.d.ts +81 -139
  76. package/build/lib/zip.d.ts.map +1 -1
  77. package/build/lib/zip.js +235 -283
  78. package/build/lib/zip.js.map +1 -1
  79. package/lib/console.ts +139 -0
  80. package/lib/{doctor.js → doctor.ts} +6 -20
  81. package/lib/{env.js → env.ts} +34 -62
  82. package/lib/fs.ts +453 -0
  83. package/lib/image-util.ts +40 -0
  84. package/lib/index.ts +1 -0
  85. package/lib/{logger.js → logger.ts} +1 -1
  86. package/lib/logging.ts +157 -0
  87. package/lib/mjpeg.ts +186 -0
  88. package/lib/{mkdirp.js → mkdirp.ts} +2 -2
  89. package/lib/net.ts +305 -0
  90. package/lib/{node.js → node.ts} +136 -135
  91. package/lib/npm.ts +291 -0
  92. package/lib/plist.ts +187 -0
  93. package/lib/process.ts +62 -0
  94. package/lib/system.ts +95 -0
  95. package/lib/tempdir.ts +115 -0
  96. package/lib/{timing.js → timing.ts} +28 -33
  97. package/lib/util.ts +561 -0
  98. package/lib/{zip.js → zip.ts} +344 -299
  99. package/package.json +24 -26
  100. package/tsconfig.json +3 -5
  101. package/index.js +0 -1
  102. package/lib/console.js +0 -173
  103. package/lib/fs.js +0 -496
  104. package/lib/image-util.js +0 -32
  105. package/lib/logging.js +0 -145
  106. package/lib/mjpeg.js +0 -207
  107. package/lib/net.js +0 -336
  108. package/lib/npm.js +0 -310
  109. package/lib/plist.js +0 -182
  110. package/lib/process.js +0 -46
  111. package/lib/system.js +0 -48
  112. package/lib/tempdir.js +0 -131
  113. package/lib/util.js +0 -585
@@ -1,109 +1,63 @@
1
+ import type { Color } from '@colors/colors';
2
+ import '@colors/colors';
3
+ import symbols from 'log-symbols';
4
+ import type { InspectOptions } from 'node:util';
5
+ import type { JsonValue } from 'type-fest';
6
+ /** Symbol keys from log-symbols used for decoration */
7
+ type SymbolKey = keyof typeof symbols;
8
+ /**
9
+ * Options for {@linkcode CliConsole}.
10
+ *
11
+ * @see https://npm.im/supports-color
12
+ */
13
+ export interface ConsoleOpts {
14
+ /** If _truthy_, suppress all output except JSON (use {@linkcode CliConsole#json}), which writes to `STDOUT`. */
15
+ jsonMode?: boolean;
16
+ /** If _falsy_, do not use fancy symbols. */
17
+ useSymbols?: boolean;
18
+ /** If _falsy_, do not use color output. If _truthy_, forces color output. By default, checks terminal/TTY for support via pkg `supports-color`. Ignored if `useSymbols` is `false`. */
19
+ useColor?: boolean;
20
+ }
1
21
  /**
2
22
  * A particular console/logging class for Appium's CLI.
3
23
  *
4
24
  * - By default, uses some fancy symbols
5
25
  * - Writes to `STDERR`, generally.
6
- * - In "JSON mode", `STDERR` is squelched. Use {@linkcode Console.json} to write the JSON.
26
+ * - In "JSON mode", `STDERR` is squelched. Use {@linkcode CliConsole.json} to write the JSON.
7
27
  *
8
28
  * DO NOT extend this to do anything other than what it already does. Download a library or something.
9
29
  */
10
- export class CliConsole {
11
- /**
12
- * @type {Record<keyof typeof symbols,keyof Extract<import('@colors/colors').Color, 'string'>>}
13
- */
14
- static symbolToColor: Record<keyof typeof symbols, keyof Extract<import("@colors/colors").Color, "string">>;
15
- /**
16
- *
17
- * @param {ConsoleOpts} opts
18
- */
19
- constructor({ jsonMode, useSymbols, useColor }?: ConsoleOpts);
30
+ export declare class CliConsole {
31
+ #private;
32
+ static readonly symbolToColor: Record<SymbolKey, keyof Color>;
33
+ constructor(opts?: ConsoleOpts);
20
34
  /**
21
35
  * Wraps a message string in breathtaking fanciness
22
36
  *
23
37
  * Returns `undefined` if `msg` is `undefined`.
24
- * @param {string} [msg] - Message to decorate, if anything
25
- * @param {keyof typeof CliConsole['symbolToColor']} [symbol] - Symbol to use
26
- * @returns {string|undefined}
27
38
  */
28
- decorate(msg?: string, symbol?: keyof (typeof CliConsole)["symbolToColor"]): string | undefined;
39
+ decorate(msg: string | undefined, symbol?: SymbolKey): string | undefined;
29
40
  /**
30
41
  * Writes to `STDOUT`. Must be stringifyable.
31
42
  *
32
43
  * You probably don't want to call this more than once before exiting (since that will output invalid JSON).
33
- * @param {import('type-fest').JsonValue} value
34
- */
35
- json(value: import("type-fest").JsonValue): void;
36
- /**
37
- * General logging function.
38
- * @param {string} [message]
39
- * @param {...any} args
40
- */
41
- log(message?: string, ...args: any[]): void;
42
- /**
43
- * A "success" message
44
- * @param {string} [message]
45
- * @param {...any} args
46
44
  */
47
- ok(message?: string, ...args: any[]): void;
48
- /**
49
- * Alias for {@linkcode Console.log}
50
- * @param {string} [message]
51
- * @param {...any} args
52
- */
53
- debug(message?: string, ...args: any[]): void;
54
- /**
55
- * Wraps {@link console.dir}
56
- * @param {any} item
57
- * @param {import('util').InspectOptions} [opts]
58
- */
59
- dump(item: any, opts?: import("util").InspectOptions): void;
60
- /**
61
- * An "info" message
62
- * @param {string} [message]
63
- * @param {...any} args
64
- */
65
- info(message?: string, ...args: any[]): void;
66
- /**
67
- * A "warning" message
68
- * @param {string} [message]
69
- * @param {...any} args
70
- */
71
- warn(message?: string, ...args: any[]): void;
72
- /**
73
- * An "error" message
74
- * @param {string} [message]
75
- * @param {...any} args
76
- */
77
- error(message?: string, ...args: any[]): void;
78
- #private;
45
+ json(value: JsonValue): void;
46
+ /** General logging function. */
47
+ log(message?: string, ...args: unknown[]): void;
48
+ /** A "success" message */
49
+ ok(message?: string, ...args: unknown[]): void;
50
+ /** Alias for {@linkcode CliConsole.log} */
51
+ debug(message?: string, ...args: unknown[]): void;
52
+ /** Wraps {@link console.dir} */
53
+ dump(item: unknown, opts?: InspectOptions): void;
54
+ /** An "info" message */
55
+ info(message?: string, ...args: unknown[]): void;
56
+ /** A "warning" message */
57
+ warn(message?: string, ...args: unknown[]): void;
58
+ /** An "error" message */
59
+ error(message?: string, ...args: unknown[]): void;
79
60
  }
80
- /**
81
- * Options for {@linkcode CliConsole}.
82
- *
83
- * @typedef ConsoleOpts
84
- * @property {boolean} [jsonMode] - If _truthy_, suppress all output except JSON (use {@linkcode CliConsole#json}), which writes to `STDOUT`.
85
- * @property {boolean} [useSymbols] - If _falsy_, do not use fancy symbols.
86
- * @property {boolean} [useColor] - If _falsy_, do not use color output. If _truthy_, forces color output. By default, checks terminal/TTY for support via pkg `supports-color`. Ignored if `useSymbols` is `false`.
87
- * @see https://npm.im/supports-color
88
- */
89
- export const console: CliConsole;
61
+ export declare const console: CliConsole;
90
62
  export { symbols };
91
- /**
92
- * Options for {@linkcode CliConsole}.
93
- */
94
- export type ConsoleOpts = {
95
- /**
96
- * - If _truthy_, suppress all output except JSON (use {@linkcode CliConsole#json}), which writes to `STDOUT`.
97
- */
98
- jsonMode?: boolean | undefined;
99
- /**
100
- * - If _falsy_, do not use fancy symbols.
101
- */
102
- useSymbols?: boolean | undefined;
103
- /**
104
- * - If _falsy_, do not use color output. If _truthy_, forces color output. By default, checks terminal/TTY for support via pkg `supports-color`. Ignored if `useSymbols` is `false`.
105
- */
106
- useColor?: boolean | undefined;
107
- };
108
- import symbols from 'log-symbols';
109
63
  //# sourceMappingURL=console.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../lib/console.js"],"names":[],"mappings":"AAiBA;;;;;;;;GAQG;AACH;IAmBE;;OAEG;IACH,sBAFU,MAAM,CAAC,MAAM,OAAO,OAAO,EAAC,MAAM,OAAO,CAAC,OAAO,gBAAgB,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAO5F;IAEF;;;OAGG;IACH,iDAFW,WAAW,EAMrB;IAED;;;;;;;OAOG;IACH,eAJW,MAAM,WACN,MAAM,CAAA,OAAO,UAAU,EAAC,eAAe,CAAC,GACtC,MAAM,GAAC,SAAS,CAc5B;IAED;;;;;OAKG;IACH,YAFW,OAAO,WAAW,EAAE,SAAS,QAIvC;IAED;;;;OAIG;IACH,cAHW,MAAM,WACH,GAAG,EAAA,QAIhB;IAED;;;;OAIG;IACH,aAHW,MAAM,WACH,GAAG,EAAA,QAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,WACH,GAAG,EAAA,QAIhB;IAED;;;;OAIG;IACH,WAHW,GAAG,SACH,OAAO,MAAM,EAAE,cAAc,QAIvC;IAED;;;;OAIG;IACH,eAHW,MAAM,WACH,GAAG,EAAA,QAIhB;IAED;;;;OAIG;IACH,eAHW,MAAM,WACH,GAAG,EAAA,QAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,WACH,GAAG,EAAA,QAIhB;;CACF;AAED;;;;;;;;GAQG;AAEH,iCAAwC;;;;;;;;;;;;;;;;;;;oBAvKpB,aAAa"}
1
+ {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../lib/console.ts"],"names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,CAAC,EAAE,cAAc,GAAG,IAAI;IAIhD,wBAAwB;IACxB,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,0BAA0B;IAC1B,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,yBAAyB;IACzB,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;CAGlD;AAED,eAAO,MAAM,OAAO,YAAmB,CAAC;AACxC,OAAO,EAAC,OAAO,EAAC,CAAC"}
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.symbols = exports.console = exports.CliConsole = void 0;
7
7
  const lodash_1 = __importDefault(require("lodash"));
8
8
  const supports_color_1 = require("supports-color");
9
- const console_1 = require("console");
9
+ const node_console_1 = require("node:console");
10
10
  require("@colors/colors");
11
11
  const log_symbols_1 = __importDefault(require("log-symbols"));
12
12
  exports.symbols = log_symbols_1.default;
13
- const stream_1 = require("stream");
13
+ const node_stream_1 = require("node:stream");
14
14
  /**
15
15
  * Stream to nowhere. Used when we want to disable any output other than JSON output.
16
16
  */
17
- class NullWritable extends stream_1.Writable {
18
- // eslint-disable-next-line promise/prefer-await-to-callbacks
17
+ class NullWritable extends node_stream_1.Writable {
18
+ /* eslint-disable promise/prefer-await-to-callbacks -- Node stream callback API */
19
19
  _write(chunk, encoding, callback) {
20
20
  setImmediate(callback);
21
21
  }
@@ -25,140 +25,80 @@ class NullWritable extends stream_1.Writable {
25
25
  *
26
26
  * - By default, uses some fancy symbols
27
27
  * - Writes to `STDERR`, generally.
28
- * - In "JSON mode", `STDERR` is squelched. Use {@linkcode Console.json} to write the JSON.
28
+ * - In "JSON mode", `STDERR` is squelched. Use {@linkcode CliConsole.json} to write the JSON.
29
29
  *
30
30
  * DO NOT extend this to do anything other than what it already does. Download a library or something.
31
31
  */
32
32
  class CliConsole {
33
- /**
34
- * Internal console
35
- * @type {globalThis.Console}
36
- */
37
33
  #console;
38
- /**
39
- * Whether or not to use fancy symbols when logging.
40
- * @type {boolean}
41
- *
42
- */
43
34
  #useSymbols;
44
- /**
45
- * Whether or not to use color.
46
- */
47
35
  #useColor;
48
- /**
49
- * @type {Record<keyof typeof symbols,keyof Extract<import('@colors/colors').Color, 'string'>>}
50
- */
51
36
  static symbolToColor = {
52
37
  success: 'green',
53
38
  info: 'cyan',
54
39
  warning: 'yellow',
55
40
  error: 'red',
56
41
  };
57
- /**
58
- *
59
- * @param {ConsoleOpts} opts
60
- */
61
- constructor({ jsonMode = false, useSymbols = true, useColor } = {}) {
62
- this.#console = new console_1.Console(process.stdout, jsonMode ? new NullWritable() : process.stderr);
42
+ constructor(opts = {}) {
43
+ const { jsonMode = false, useSymbols = true, useColor } = opts;
44
+ this.#console = new node_console_1.Console(process.stdout, jsonMode ? new NullWritable() : process.stderr);
63
45
  this.#useSymbols = Boolean(useSymbols);
64
- this.#useColor = Boolean(useColor ?? (0, supports_color_1.supportsColor)(process.stderr));
46
+ this.#useColor = Boolean(useColor ?? (0, supports_color_1.createSupportsColor)(process.stderr));
65
47
  }
66
48
  /**
67
49
  * Wraps a message string in breathtaking fanciness
68
50
  *
69
51
  * Returns `undefined` if `msg` is `undefined`.
70
- * @param {string} [msg] - Message to decorate, if anything
71
- * @param {keyof typeof CliConsole['symbolToColor']} [symbol] - Symbol to use
72
- * @returns {string|undefined}
73
52
  */
74
53
  decorate(msg, symbol) {
75
- if (lodash_1.default.isString(msg)) {
76
- let newMsg = /** @type {string} */ (msg);
77
- if (lodash_1.default.isString(symbol) && this.#useSymbols) {
78
- newMsg = `${log_symbols_1.default[symbol]} ${newMsg}`;
79
- if (this.#useColor) {
80
- newMsg = newMsg[CliConsole.symbolToColor[symbol]];
81
- }
82
- }
83
- return newMsg;
54
+ if (!lodash_1.default.isString(msg) || !lodash_1.default.isString(symbol) || !this.#useSymbols) {
55
+ return msg;
84
56
  }
85
- return msg;
57
+ let newMsg = `${log_symbols_1.default[symbol]} ${msg}`;
58
+ if (this.#useColor) {
59
+ const color = CliConsole.symbolToColor[symbol];
60
+ // @colors/colors extends String with color getters (e.g. .green, .red)
61
+ newMsg = newMsg[color] ?? newMsg;
62
+ }
63
+ return newMsg;
86
64
  }
87
65
  /**
88
66
  * Writes to `STDOUT`. Must be stringifyable.
89
67
  *
90
68
  * You probably don't want to call this more than once before exiting (since that will output invalid JSON).
91
- * @param {import('type-fest').JsonValue} value
92
69
  */
93
70
  json(value) {
94
71
  this.#console.log(JSON.stringify(value));
95
72
  }
96
- /**
97
- * General logging function.
98
- * @param {string} [message]
99
- * @param {...any} args
100
- */
73
+ /** General logging function. */
101
74
  log(message, ...args) {
102
75
  this.#console.error(message, ...args);
103
76
  }
104
- /**
105
- * A "success" message
106
- * @param {string} [message]
107
- * @param {...any} args
108
- */
77
+ /** A "success" message */
109
78
  ok(message, ...args) {
110
79
  this.#console.error(this.decorate(message, 'success'), ...args);
111
80
  }
112
- /**
113
- * Alias for {@linkcode Console.log}
114
- * @param {string} [message]
115
- * @param {...any} args
116
- */
81
+ /** Alias for {@linkcode CliConsole.log} */
117
82
  debug(message, ...args) {
118
83
  this.log(message, ...args);
119
84
  }
120
- /**
121
- * Wraps {@link console.dir}
122
- * @param {any} item
123
- * @param {import('util').InspectOptions} [opts]
124
- */
85
+ /** Wraps {@link console.dir} */
125
86
  dump(item, opts) {
126
87
  this.#console.dir(item, opts);
127
88
  }
128
- /**
129
- * An "info" message
130
- * @param {string} [message]
131
- * @param {...any} args
132
- */
89
+ /** An "info" message */
133
90
  info(message, ...args) {
134
91
  this.log(this.decorate(message, 'info'), ...args);
135
92
  }
136
- /**
137
- * A "warning" message
138
- * @param {string} [message]
139
- * @param {...any} args
140
- */
93
+ /** A "warning" message */
141
94
  warn(message, ...args) {
142
95
  this.log(this.decorate(message, 'warning'), ...args);
143
96
  }
144
- /**
145
- * An "error" message
146
- * @param {string} [message]
147
- * @param {...any} args
148
- */
97
+ /** An "error" message */
149
98
  error(message, ...args) {
150
99
  this.log(this.decorate(message, 'error'), ...args);
151
100
  }
152
101
  }
153
102
  exports.CliConsole = CliConsole;
154
- /**
155
- * Options for {@linkcode CliConsole}.
156
- *
157
- * @typedef ConsoleOpts
158
- * @property {boolean} [jsonMode] - If _truthy_, suppress all output except JSON (use {@linkcode CliConsole#json}), which writes to `STDOUT`.
159
- * @property {boolean} [useSymbols] - If _falsy_, do not use fancy symbols.
160
- * @property {boolean} [useColor] - If _falsy_, do not use color output. If _truthy_, forces color output. By default, checks terminal/TTY for support via pkg `supports-color`. Ignored if `useSymbols` is `false`.
161
- * @see https://npm.im/supports-color
162
- */
163
103
  exports.console = new CliConsole();
164
104
  //# sourceMappingURL=console.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"console.js","sourceRoot":"","sources":["../../lib/console.js"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,mDAA6C;AAC7C,qCAA+C;AAC/C,0BAAwB;AACxB,8DAAkC;AAwK1B,kBAxKD,qBAAO,CAwKC;AAvKf,mCAAgC;AAEhC;;GAEG;AACH,MAAM,YAAa,SAAQ,iBAAQ;IACjC,6DAA6D;IAC7D,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ;QAC9B,YAAY,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAa,UAAU;IACrB;;;OAGG;IACH,QAAQ,CAAC;IAET;;;;OAIG;IACH,WAAW,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC;IAEV;;OAEG;IACH,MAAM,CAAC,aAAa,GAAG;QACrB,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;QACjB,KAAK,EAAE,KAAK;KACb,CAAC;IAEF;;;OAGG;IACH,YAAY,EAAC,QAAQ,GAAG,KAAK,EAAE,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vC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;IACvD,CAAC;IAED,yBAAyB;IACzB,KAAK,CAAC,OAAgB,EAAE,GAAG,IAAe;QACxC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;IACrD,CAAC;;AAnFH,gCAoFC;AAEY,QAAA,OAAO,GAAG,IAAI,UAAU,EAAE,CAAC"}
@@ -1,36 +1,24 @@
1
+ import type { DoctorCheckResult } from '@appium/types';
1
2
  /**
2
3
  * A shortcut for a successful required doctor check
3
- *
4
- * @param {string} message
5
- * @returns {DoctorCheckResult}
6
4
  */
7
- export function ok(message: string): DoctorCheckResult;
5
+ export declare function ok(message: string): DoctorCheckResult;
8
6
  /**
9
7
  * A shortcut for an unsuccessful required doctor check
10
- *
11
- * @param {string} message
12
- * @returns {DoctorCheckResult}
13
8
  */
14
- export function nok(message: string): DoctorCheckResult;
9
+ export declare function nok(message: string): DoctorCheckResult;
15
10
  /**
16
11
  * A shortcut for a successful optional doctor check
17
- *
18
- * @param {string} message
19
- * @returns {DoctorCheckResult}
20
12
  */
21
- export function okOptional(message: string): DoctorCheckResult;
13
+ export declare function okOptional(message: string): DoctorCheckResult;
22
14
  /**
23
15
  * A shortcut for an unsuccessful optional doctor check
24
- *
25
- * @param {string} message
26
- * @returns {DoctorCheckResult}
27
16
  */
28
- export function nokOptional(message: string): DoctorCheckResult;
17
+ export declare function nokOptional(message: string): DoctorCheckResult;
29
18
  /**
30
19
  * Throw this exception in the fix() method
31
20
  * of your doctor check to skip the actual fix if hasAutofix() is true
32
21
  */
33
- export class FixSkippedError extends Error {
22
+ export declare class FixSkippedError extends Error {
34
23
  }
35
- export type DoctorCheckResult = import("@appium/types").DoctorCheckResult;
36
24
  //# sourceMappingURL=doctor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../lib/doctor.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,4BAHW,MAAM,GACJ,iBAAiB,CAI7B;AAED;;;;;GAKG;AACH,6BAHW,MAAM,GACJ,iBAAiB,CAI7B;AAED;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,iBAAiB,CAI7B;AAED;;;;;GAKG;AACH,qCAHW,MAAM,GACJ,iBAAiB,CAI7B;AAED;;;GAGG;AACH;CAA6C;gCAGhC,OAAO,eAAe,EAAE,iBAAiB"}
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../lib/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAErD;;GAEG;AACH,wBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAErD;AAED;;GAEG;AACH,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAEtD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAE7D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAE9D;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,KAAK;CAAG"}
@@ -7,36 +7,24 @@ exports.okOptional = okOptional;
7
7
  exports.nokOptional = nokOptional;
8
8
  /**
9
9
  * A shortcut for a successful required doctor check
10
- *
11
- * @param {string} message
12
- * @returns {DoctorCheckResult}
13
10
  */
14
11
  function ok(message) {
15
12
  return { ok: true, optional: false, message };
16
13
  }
17
14
  /**
18
15
  * A shortcut for an unsuccessful required doctor check
19
- *
20
- * @param {string} message
21
- * @returns {DoctorCheckResult}
22
16
  */
23
17
  function nok(message) {
24
18
  return { ok: false, optional: false, message };
25
19
  }
26
20
  /**
27
21
  * A shortcut for a successful optional doctor check
28
- *
29
- * @param {string} message
30
- * @returns {DoctorCheckResult}
31
22
  */
32
23
  function okOptional(message) {
33
24
  return { ok: true, optional: true, message };
34
25
  }
35
26
  /**
36
27
  * A shortcut for an unsuccessful optional doctor check
37
- *
38
- * @param {string} message
39
- * @returns {DoctorCheckResult}
40
28
  */
41
29
  function nokOptional(message) {
42
30
  return { ok: false, optional: true, message };
@@ -48,7 +36,4 @@ function nokOptional(message) {
48
36
  class FixSkippedError extends Error {
49
37
  }
50
38
  exports.FixSkippedError = FixSkippedError;
51
- /**
52
- * @typedef {import('@appium/types').DoctorCheckResult} DoctorCheckResult
53
- */
54
39
  //# sourceMappingURL=doctor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../lib/doctor.js"],"names":[],"mappings":";;;AAMA,gBAEC;AAQD,kBAEC;AAQD,gCAEC;AAQD,kCAEC;AAtCD;;;;;GAKG;AACH,SAAgB,EAAE,CAAC,OAAO;IACxB,OAAO,EAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAC,CAAC;AAC9C,CAAC;AAED;;;;;GAKG;AACH,SAAgB,GAAG,CAAC,OAAO;IACzB,OAAO,EAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAC,CAAC;AAC/C,CAAC;AAED;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,OAAO;IAChC,OAAO,EAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAC,CAAC;AAC7C,CAAC;AAED;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,OAAO;IACjC,OAAO,EAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAC,CAAC;AAC9C,CAAC;AAED;;;GAGG;AACH,MAAa,eAAgB,SAAQ,KAAK;CAAG;AAA7C,0CAA6C;AAE7C;;GAEG"}
1
+ {"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../lib/doctor.ts"],"names":[],"mappings":";;;AAKA,gBAEC;AAKD,kBAEC;AAKD,gCAEC;AAKD,kCAEC;AA1BD;;GAEG;AACH,SAAgB,EAAE,CAAC,OAAe;IAChC,OAAO,EAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAC,CAAC;AAC9C,CAAC;AAED;;GAEG;AACH,SAAgB,GAAG,CAAC,OAAe;IACjC,OAAO,EAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAC,CAAC;AAC/C,CAAC;AAED;;GAEG;AACH,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,EAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAC,CAAC;AAC7C,CAAC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,OAAe;IACzC,OAAO,EAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAC,CAAC;AAC9C,CAAC;AAED;;;GAGG;AACH,MAAa,eAAgB,SAAQ,KAAK;CAAG;AAA7C,0CAA6C"}
@@ -1,35 +1,32 @@
1
- /**
2
- * Resolves `true` if an `appium` dependency can be found somewhere in the given `cwd`.
3
- *
4
- * @param {string} cwd
5
- * @returns {Promise<boolean>}
6
- */
7
- export function hasAppiumDependency(cwd: string): Promise<boolean>;
1
+ import _ from 'lodash';
2
+ import { type NormalizedPackageJson } from 'read-pkg';
3
+ import * as semver from 'semver';
8
4
  /**
9
5
  * Path to the default `APPIUM_HOME` dir (`~/.appium`).
10
- * @type {string}
11
6
  */
12
- export const DEFAULT_APPIUM_HOME: string;
7
+ export declare const DEFAULT_APPIUM_HOME: string;
13
8
  /**
14
9
  * Basename of extension manifest file.
15
- * @type {string}
16
10
  */
17
- export const MANIFEST_BASENAME: string;
11
+ export declare const MANIFEST_BASENAME = "extensions.yaml";
18
12
  /**
19
13
  * Relative path to extension manifest file from `APPIUM_HOME`.
20
- * @type {string}
21
14
  */
22
- export const MANIFEST_RELATIVE_PATH: string;
15
+ export declare const MANIFEST_RELATIVE_PATH: string;
16
+ /**
17
+ * Resolves `true` if an `appium` dependency can be found somewhere in the given `cwd`.
18
+ */
19
+ export declare function hasAppiumDependency(cwd: string): Promise<boolean>;
23
20
  /**
24
21
  * Given `cwd`, use `npm` to find the closest package _or workspace root_, and return the path if the root depends upon `appium`.
25
22
  *
26
23
  * Looks at `dependencies` and `devDependencies` for `appium`.
27
24
  */
28
- export const findAppiumDependencyPackage: ((cwd?: string, acceptableVersionRange?: string | semver.Range) => Promise<string | undefined>) & _.MemoizedFunction;
25
+ export declare const findAppiumDependencyPackage: ((cwd?: string, acceptableVersionRange?: string | semver.Range) => Promise<string | undefined>) & _.MemoizedFunction;
29
26
  /**
30
27
  * Read a `package.json` in dir `cwd`. If none found, return `undefined`.
31
28
  */
32
- export const readPackageInDir: ((cwd: string) => Promise<import("read-pkg").NormalizedPackageJson | undefined>) & _.MemoizedFunction;
29
+ export declare const readPackageInDir: ((cwd: string) => Promise<NormalizedPackageJson>) & _.MemoizedFunction;
33
30
  /**
34
31
  * Determines location of Appium's "home" dir
35
32
  *
@@ -38,15 +35,12 @@ export const readPackageInDir: ((cwd: string) => Promise<import("read-pkg").Norm
38
35
  *
39
36
  * All returned paths will be absolute.
40
37
  */
41
- export const resolveAppiumHome: ((cwd?: string) => Promise<string>) & _.MemoizedFunction;
38
+ export declare const resolveAppiumHome: ((cwd?: string) => Promise<string>) & _.MemoizedFunction;
42
39
  /**
43
40
  * Figure out manifest path based on `appiumHome`.
44
41
  *
45
42
  * The assumption is that, if `appiumHome` has been provided, it was resolved via {@link resolveAppiumHome `resolveAppiumHome()`}! If unsure,
46
43
  * don't pass a parameter and let `resolveAppiumHome()` handle it.
47
44
  */
48
- export const resolveManifestPath: ((appiumHome?: string) => Promise<string>) & _.MemoizedFunction;
49
- export type NormalizedPackageJson = import("read-pkg").NormalizedPackageJson;
50
- import * as semver from 'semver';
51
- import _ from 'lodash';
45
+ export declare const resolveManifestPath: ((appiumHome?: string) => Promise<string>) & _.MemoizedFunction;
52
46
  //# sourceMappingURL=env.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../lib/env.js"],"names":[],"mappings":"AA8BA;;;;;GAKG;AACH,yCAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAI5B;AA/BD;;;GAGG;AACH,kCAFU,MAAM,CAEsD;AAEtE;;;GAGG;AACH,gCAFU,MAAM,CAEmC;AAEnD;;;GAGG;AACH,qCAFU,MAAM,CAOd;AAYF;;;;GAIG;AACH,kDAEa,MAAM,2BACN,MAAM,GAAC,MAAM,CAAC,KAAK,KAGjB,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,uBAmCtC;AAEF;;GAEG;AACH,sCAGa,MAAM,KACJ,OAAO,CAAC,OAAO,UAAU,EAAE,qBAAqB,GAAC,SAAS,CAAC,uBAKxE;AAEF;;;;;;;GAOG;AACH,wCAEa,MAAM,KACJ,OAAO,CAAC,MAAM,CAAC,uBAa5B;AAEF;;;;;GAKG;AACH,iDAEa,MAAM,KACJ,OAAO,CAAC,MAAM,CAAC,uBAO5B;oCAGW,OAAO,UAAU,EAAE,qBAAqB;wBA9I7B,QAAQ;cAJlB,QAAQ"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../lib/env.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,OAAO,EAAc,KAAK,qBAAqB,EAAC,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2C,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAKlC,CAAC;AAEF;;GAEG;A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