@badisi/latest-version 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 (3) hide show
  1. package/cli.js +2 -2
  2. package/index.d.ts +0 -2
  3. package/package.json +4 -4
package/cli.js CHANGED
@@ -29,7 +29,6 @@ var import_path = require("path");
29
29
  var import_index = __toESM(require("./index"));
30
30
  var import_major = __toESM(require("semver/functions/major"));
31
31
  var import_diff = __toESM(require("semver/functions/diff"));
32
- var import_ora = __toESM(require("ora"));
33
32
  var colorizeDiff = (from, to) => {
34
33
  const toParts = to.split(".");
35
34
  const diffIndex = from.split(".").findIndex((part, i) => part !== toParts[i]);
@@ -192,7 +191,8 @@ var displayTable = (updates) => {
192
191
  }
193
192
  };
194
193
  var checkVersions = async (packages, skipMissing, options = { useCache: true }) => {
195
- const spinner = (0, import_ora.default)({ text: (0, import_safe.cyan)("Checking versions...") });
194
+ const ora = (await import("ora")).default;
195
+ const spinner = ora({ text: (0, import_safe.cyan)("Checking versions...") });
196
196
  spinner.start();
197
197
  let latestVersionPackages = await (0, import_index.default)(packages, options);
198
198
  if (skipMissing) {
package/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import type { Agent } from 'http';
4
2
  interface RegistryVersions {
5
3
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@badisi/latest-version",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "description": "Get latest versions of packages",
5
5
  "homepage": "https://github.com/badisi/latest-version",
6
6
  "license": "MIT",
@@ -12,9 +12,9 @@
12
12
  "typings": "index.d.ts",
13
13
  "exports": {
14
14
  ".": {
15
+ "require": "./index.js",
15
16
  "types": "./index.d.ts",
16
- "default": "./index.js",
17
- "require": "./index.js"
17
+ "default": "./index.js"
18
18
  },
19
19
  "./package.json": "./package.json"
20
20
  },
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@colors/colors": "^1.6.0",
48
48
  "global-dirs": "^3.0.1",
49
- "ora": "5.4.1",
49
+ "ora": "^8.0.1",
50
50
  "registry-auth-token": "^5.0.2",
51
51
  "semver": "^7.6.2"
52
52
  }