@appium/types 0.18.0 → 0.19.1

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.
@@ -1,4 +1,4 @@
1
- import type { Logger } from 'npmlog';
1
+ import type { Logger } from '@appium/logger';
2
2
  /**
3
3
  * A log prefix for {@linkcode AppiumLogger}
4
4
  *
@@ -7,18 +7,15 @@ import type { Logger } from 'npmlog';
7
7
  export type AppiumLoggerPrefix = string | (() => string);
8
8
  /**
9
9
  * Possible "log levels" for {@linkcode AppiumLogger}.
10
- *
11
- * Extracted from `npmlog`.
12
10
  */
13
11
  export type AppiumLoggerLevel = 'silly' | 'verbose' | 'debug' | 'info' | 'http' | 'warn' | 'error';
14
12
  /**
15
- * Describes the `npmlog`-based internal logger.
16
- *
17
- * @see https://npm.im/npmlog
13
+ * Describes the internal logger.
18
14
  */
19
15
  export interface AppiumLogger {
20
16
  /**
21
- * Returns the underlying `npmlog` {@link Logger}.
17
+ * Returns the underlying `logger` {@link Logger}.
18
+ * ! This method is designed for private usage.
22
19
  */
23
20
  unwrap(): Logger;
24
21
  level: AppiumLoggerLevel;
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../lib/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAEnC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;AAEzD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnG;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,IAAI,MAAM,CAAC;IACjB,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B;;OAE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,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IACrC,kBAAkB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;CAC3C"}
package/lib/logger.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type {Logger} from 'npmlog';
1
+ import type {Logger} from '@appium/logger';
2
2
 
3
3
  /**
4
4
  * A log prefix for {@linkcode AppiumLogger}
@@ -9,19 +9,16 @@ export type AppiumLoggerPrefix = string | (() => string);
9
9
 
10
10
  /**
11
11
  * Possible "log levels" for {@linkcode AppiumLogger}.
12
- *
13
- * Extracted from `npmlog`.
14
12
  */
15
13
  export type AppiumLoggerLevel = 'silly' | 'verbose' | 'debug' | 'info' | 'http' | 'warn' | 'error';
16
14
 
17
15
  /**
18
- * Describes the `npmlog`-based internal logger.
19
- *
20
- * @see https://npm.im/npmlog
16
+ * Describes the internal logger.
21
17
  */
22
18
  export interface AppiumLogger {
23
19
  /**
24
- * Returns the underlying `npmlog` {@link Logger}.
20
+ * Returns the underlying `logger` {@link Logger}.
21
+ * ! This method is designed for private usage.
25
22
  */
26
23
  unwrap(): Logger;
27
24
  level: AppiumLoggerLevel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appium/types",
3
- "version": "0.18.0",
3
+ "version": "0.19.1",
4
4
  "description": "Various type declarations used across Appium",
5
5
  "keywords": [
6
6
  "automation",
@@ -38,12 +38,12 @@
38
38
  "test:types": "tsd"
39
39
  },
40
40
  "dependencies": {
41
+ "@appium/logger": "^1.2.0",
41
42
  "@appium/schema": "^0.5.0",
42
43
  "@appium/tsconfig": "^0.3.3",
43
44
  "@types/express": "4.17.21",
44
- "@types/npmlog": "7.0.0",
45
45
  "@types/ws": "8.5.10",
46
- "type-fest": "4.18.3"
46
+ "type-fest": "4.19.0"
47
47
  },
48
48
  "engines": {
49
49
  "node": "^14.17.0 || ^16.13.0 || >=18.0.0",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "a4138c6ec9524594519f29938008500b7cdcc0b8"
55
+ "gitHead": "5b043cc1ab85079be3e187bfed0bbd219426bae5"
56
56
  }