node-simctl 7.4.5 → 7.5.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [7.5.0](https://github.com/appium/node-simctl/compare/v7.4.5...v7.5.0) (2024-06-07)
2
+
3
+ ### Features
4
+
5
+ * Replace the deprecated npmlog with @appium/logger fork ([#246](https://github.com/appium/node-simctl/issues/246)) ([059afe8](https://github.com/appium/node-simctl/commit/059afe8e3e2e97ec61c1bd0b28e4b159d3d31004))
6
+
1
7
  ## [7.4.5](https://github.com/appium/node-simctl/compare/v7.4.4...v7.4.5) (2024-06-04)
2
8
 
3
9
  ### Miscellaneous Chores
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../lib/logger.js"],"names":[],"mappings":";AAGA,kCAA4B;AAU5B,uBAAwB"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../lib/logger.js"],"names":[],"mappings":";AAEA,kCAA4B;AAU5B,uBAAwB"}
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.LOG_PREFIX = void 0;
7
- const npmlog_1 = __importDefault(require("npmlog"));
7
+ const logger_1 = __importDefault(require("@appium/logger"));
8
8
  const LOG_PREFIX = 'simctl';
9
9
  exports.LOG_PREFIX = LOG_PREFIX;
10
10
  function getLogger() {
11
- const logger = global._global_npmlog || npmlog_1.default;
11
+ const logger = global._global_npmlog || logger_1.default;
12
12
  if (!logger.debug) {
13
13
  logger.addLevel('debug', 1000, { fg: 'blue', bg: 'black' }, 'dbug');
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../lib/logger.js"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAG5B,MAAM,UAAU,GAAG,QAAQ,CAAC;AAYnB,gCAAU;AAVnB,SAAS,SAAS;IAChB,MAAM,MAAM,GAAG,MAAM,CAAC,cAAc,IAAI,gBAAM,CAAC;IAC/C,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAClB,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,GAAG,GAAG,SAAS,EAAE,CAAC;AAGxB,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../lib/logger.js"],"names":[],"mappings":";;;;;;AAAA,4DAA0C;AAE1C,MAAM,UAAU,GAAG,QAAQ,CAAC;AAYnB,gCAAU;AAVnB,SAAS,SAAS;IAChB,MAAM,MAAM,GAAG,MAAM,CAAC,cAAc,IAAI,gBAAY,CAAC;IACrD,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAClB,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,GAAG,GAAG,SAAS,EAAE,CAAC;AAGxB,kBAAe,GAAG,CAAC"}
package/lib/logger.js CHANGED
@@ -1,10 +1,9 @@
1
- import npmlog from 'npmlog';
2
-
1
+ import appiumLogger from '@appium/logger';
3
2
 
4
3
  const LOG_PREFIX = 'simctl';
5
4
 
6
5
  function getLogger () {
7
- const logger = global._global_npmlog || npmlog;
6
+ const logger = global._global_npmlog || appiumLogger;
8
7
  if (!logger.debug) {
9
8
  logger.addLevel('debug', 1000, { fg: 'blue', bg: 'black' }, 'dbug');
10
9
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "ios",
7
7
  "simctl"
8
8
  ],
9
- "version": "7.4.5",
9
+ "version": "7.5.0",
10
10
  "author": "Appium Contributors",
11
11
  "license": "Apache-2.0",
12
12
  "repository": {
@@ -33,10 +33,10 @@
33
33
  "CHANGELOG.md"
34
34
  ],
35
35
  "dependencies": {
36
+ "@appium/logger": "^1.3.0",
36
37
  "asyncbox": "^3.0.0",
37
38
  "bluebird": "^3.5.1",
38
39
  "lodash": "^4.2.1",
39
- "npmlog": "^7.0.1",
40
40
  "rimraf": "^5.0.0",
41
41
  "semver": "^7.0.0",
42
42
  "source-map-support": "^0.x",