@badisi/latest-version 7.0.4 → 7.0.5
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/cli.js +2 -2
- package/index.d.ts +0 -2
- package/package.json +2 -2
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@badisi/latest-version",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.5",
|
|
4
4
|
"description": "Get latest versions of packages",
|
|
5
5
|
"homepage": "https://github.com/badisi/latest-version",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@colors/colors": "^1.6.0",
|
|
48
48
|
"global-dirs": "^3.0.1",
|
|
49
|
-
"ora": "
|
|
49
|
+
"ora": "^8.0.1",
|
|
50
50
|
"registry-auth-token": "^5.0.2",
|
|
51
51
|
"semver": "^7.6.2"
|
|
52
52
|
}
|