@juit/check-updates 2.0.4 → 2.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/check-updates.js +2 -2
- package/package.json +8 -8
- package/src/updater.ts +2 -2
package/check-updates.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as yargs from "yargs";
|
|
|
5
5
|
|
|
6
6
|
// dist/updater.mjs
|
|
7
7
|
import { readFile as readFile2, writeFile } from "node:fs/promises";
|
|
8
|
-
import glob from "glob";
|
|
8
|
+
import * as glob from "glob";
|
|
9
9
|
import semver from "semver";
|
|
10
10
|
import fetch from "npm-registry-fetch";
|
|
11
11
|
|
|
@@ -166,7 +166,7 @@ async function processPackages(patterns, options) {
|
|
|
166
166
|
return changes2.length;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
const files2 = await glob(patterns);
|
|
169
|
+
const files2 = await glob.glob(patterns);
|
|
170
170
|
let changes = 0;
|
|
171
171
|
let newline = false;
|
|
172
172
|
for (const file of files2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juit/check-updates",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Small and fast utility to update package dependencies",
|
|
6
6
|
"author": "Team Juit <developers@juit.com>",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"transpile": "plug transpile"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"glob": "^
|
|
21
|
-
"ini": "^4.
|
|
22
|
-
"npm-registry-fetch": "^14.0.
|
|
23
|
-
"semver": "^7.
|
|
24
|
-
"yargs": "^17.7.
|
|
20
|
+
"glob": "^10.2.7",
|
|
21
|
+
"ini": "^4.1.1",
|
|
22
|
+
"npm-registry-fetch": "^14.0.5",
|
|
23
|
+
"semver": "^7.5.1",
|
|
24
|
+
"yargs": "^17.7.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@plugjs/build": "^0.
|
|
27
|
+
"@plugjs/build": "^0.4.11",
|
|
28
28
|
"@types/glob": "^8.1.0",
|
|
29
29
|
"@types/ini": "^1.3.31",
|
|
30
30
|
"@types/npm-registry-fetch": "^8.0.4",
|
|
31
|
-
"@types/semver": "^7.
|
|
31
|
+
"@types/semver": "^7.5.0",
|
|
32
32
|
"@types/yargs": "^17.0.24"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
package/src/updater.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFile, writeFile } from 'node:fs/promises'
|
|
2
2
|
|
|
3
|
-
import glob from 'glob'
|
|
3
|
+
import * as glob from 'glob'
|
|
4
4
|
import semver from 'semver'
|
|
5
5
|
import fetch from 'npm-registry-fetch'
|
|
6
6
|
|
|
@@ -197,7 +197,7 @@ export async function processPackages(
|
|
|
197
197
|
/* ------------------------------------------------------------------------ *
|
|
198
198
|
* Process a number of package files one by one *
|
|
199
199
|
* ------------------------------------------------------------------------ */
|
|
200
|
-
const files = await glob(patterns)
|
|
200
|
+
const files = await glob.glob(patterns)
|
|
201
201
|
let changes = 0
|
|
202
202
|
|
|
203
203
|
let newline = false
|