Skip to content

Commit 955d96e

Browse files
committed
chore: update glob dependency
1 parent eda0ccf commit 955d96e

File tree

4 files changed

+72
-13
lines changed

4 files changed

+72
-13
lines changed

meteor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"eslint-plugin-node": "^11.1.0",
104104
"eslint-plugin-prettier": "^4.2.1",
105105
"fast-clone": "^1.5.13",
106-
"glob": "^8.1.0",
106+
"glob": "^11.0.1",
107107
"i18next-conv": "^10.2.0",
108108
"i18next-scanner": "^4.6.0",
109109
"jest": "^29.7.0",

meteor/scripts/extract-i18next-pot.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@
2727
* SOFTWARE.
2828
*/
2929

30-
import { promisify } from 'util'
3130
import fs from 'fs'
3231
import yargs from 'yargs'
3332
import { Parser } from 'i18next-scanner'
3433
import converter from 'i18next-conv'
35-
import glob from 'glob'
34+
import { glob } from 'glob'
3635

3736
const args = yargs(process.argv)
3837
.option('files', {
@@ -66,8 +65,6 @@ const args = yargs(process.argv)
6665
.help()
6766
.alias('help', 'h').argv
6867

69-
const pGlob = promisify(glob)
70-
7168
const parserOptions = {
7269
// Include react helpers into parsing
7370
attr: {
@@ -101,7 +98,7 @@ console.log('Extracting translatable strings...')
10198
console.log('This process may print out some error messages, but the translation template should work fine.')
10299
console.log('──────\n')
103100

104-
const files = await pGlob(fileGlob)
101+
const files = await glob(fileGlob)
105102

106103
// console.debug('Loading content of ' + files.length + ' files')
107104

meteor/scripts/i18n-compile-json.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import { promisify } from 'util'
2-
import glob from 'glob'
1+
import { glob } from 'glob'
32
import { spawn } from 'child_process'
43

5-
const pGlob = promisify(glob)
6-
74
/*************************************************
85
96
This script goes through all of the languages (.po files)
@@ -14,7 +11,7 @@ and compiles the json-files (used in production).
1411
const errors = []
1512
const failedLanguages = []
1613
// List all po-files:
17-
const poFiles = await pGlob('./i18n/*.po')
14+
const poFiles = await glob('./i18n/*.po')
1815

1916
const languages = []
2017
for (const poFile of poFiles) {

meteor/yarn.lock

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,7 +2259,7 @@ __metadata:
22592259
eslint-plugin-node: "npm:^11.1.0"
22602260
eslint-plugin-prettier: "npm:^4.2.1"
22612261
fast-clone: "npm:^1.5.13"
2262-
glob: "npm:^8.1.0"
2262+
glob: "npm:^11.0.1"
22632263
i18next: "npm:^21.10.0"
22642264
i18next-conv: "npm:^10.2.0"
22652265
i18next-scanner: "npm:^4.6.0"
@@ -5098,6 +5098,22 @@ __metadata:
50985098
languageName: node
50995099
linkType: hard
51005100

5101+
"glob@npm:^11.0.1":
5102+
version: 11.0.1
5103+
resolution: "glob@npm:11.0.1"
5104+
dependencies:
5105+
foreground-child: "npm:^3.1.0"
5106+
jackspeak: "npm:^4.0.1"
5107+
minimatch: "npm:^10.0.0"
5108+
minipass: "npm:^7.1.2"
5109+
package-json-from-dist: "npm:^1.0.0"
5110+
path-scurry: "npm:^2.0.0"
5111+
bin:
5112+
glob: dist/esm/bin.mjs
5113+
checksum: 10/57b12a05cc25f1c38f3b24cf6ea7a8bacef11e782c4b9a8c5b0bef3e6c5bcb8c4548cb31eb4115592e0490a024c1bde7359c470565608dd061d3b21179740457
5114+
languageName: node
5115+
linkType: hard
5116+
51015117
"glob@npm:^7.0.0, glob@npm:^7.1.1, glob@npm:^7.1.3, glob@npm:^7.1.4":
51025118
version: 7.2.3
51035119
resolution: "glob@npm:7.2.3"
@@ -5112,7 +5128,7 @@ __metadata:
51125128
languageName: node
51135129
linkType: hard
51145130

5115-
"glob@npm:^8.0.1, glob@npm:^8.1.0":
5131+
"glob@npm:^8.0.1":
51165132
version: 8.1.0
51175133
resolution: "glob@npm:8.1.0"
51185134
dependencies:
@@ -6174,6 +6190,15 @@ __metadata:
61746190
languageName: node
61756191
linkType: hard
61766192

6193+
"jackspeak@npm:^4.0.1":
6194+
version: 4.0.2
6195+
resolution: "jackspeak@npm:4.0.2"
6196+
dependencies:
6197+
"@isaacs/cliui": "npm:^8.0.2"
6198+
checksum: 10/d9722f0e55f6c322c57aedf094c405f4201b834204629817187953988075521cfddb23df83e2a7b845723ca7eb0555068c5ce1556732e9c275d32a531881efa8
6199+
languageName: node
6200+
linkType: hard
6201+
61776202
"jake@npm:^10.8.5":
61786203
version: 10.9.2
61796204
resolution: "jake@npm:10.9.2"
@@ -7093,6 +7118,13 @@ __metadata:
70937118
languageName: node
70947119
linkType: hard
70957120

7121+
"lru-cache@npm:^11.0.0":
7122+
version: 11.0.2
7123+
resolution: "lru-cache@npm:11.0.2"
7124+
checksum: 10/25fcb66e9d91eaf17227c6abfe526a7bed5903de74f93bfde380eb8a13410c5e8d3f14fe447293f3f322a7493adf6f9f015c6f1df7a235ff24ec30f366e1c058
7125+
languageName: node
7126+
linkType: hard
7127+
70967128
"lru-cache@npm:^5.1.1":
70977129
version: 5.1.1
70987130
resolution: "lru-cache@npm:5.1.1"
@@ -7462,6 +7494,15 @@ __metadata:
74627494
languageName: node
74637495
linkType: hard
74647496

7497+
"minimatch@npm:^10.0.0":
7498+
version: 10.0.1
7499+
resolution: "minimatch@npm:10.0.1"
7500+
dependencies:
7501+
brace-expansion: "npm:^2.0.1"
7502+
checksum: 10/082e7ccbc090d5f8c4e4e029255d5a1d1e3af37bda837da2b8b0085b1503a1210c91ac90d9ebfe741d8a5f286ece820a1abb4f61dc1f82ce602a055d461d93f3
7503+
languageName: node
7504+
linkType: hard
7505+
74657506
"minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2":
74667507
version: 3.1.2
74677508
resolution: "minimatch@npm:3.1.2"
@@ -7596,6 +7637,13 @@ __metadata:
75967637
languageName: node
75977638
linkType: hard
75987639

7640+
"minipass@npm:^7.1.2":
7641+
version: 7.1.2
7642+
resolution: "minipass@npm:7.1.2"
7643+
checksum: 10/c25f0ee8196d8e6036661104bacd743785b2599a21de5c516b32b3fa2b83113ac89a2358465bc04956baab37ffb956ae43be679b2262bf7be15fce467ccd7950
7644+
languageName: node
7645+
linkType: hard
7646+
75997647
"minizlib@npm:^2.1.1, minizlib@npm:^2.1.2":
76007648
version: 2.1.2
76017649
resolution: "minizlib@npm:2.1.2"
@@ -8355,6 +8403,13 @@ __metadata:
83558403
languageName: node
83568404
linkType: hard
83578405

8406+
"package-json-from-dist@npm:^1.0.0":
8407+
version: 1.0.1
8408+
resolution: "package-json-from-dist@npm:1.0.1"
8409+
checksum: 10/58ee9538f2f762988433da00e26acc788036914d57c71c246bf0be1b60cdbd77dd60b6a3e1a30465f0b248aeb80079e0b34cb6050b1dfa18c06953bb1cbc7602
8410+
languageName: node
8411+
linkType: hard
8412+
83588413
"pako@npm:~1.0.5":
83598414
version: 1.0.11
83608415
resolution: "pako@npm:1.0.11"
@@ -8487,6 +8542,16 @@ __metadata:
84878542
languageName: node
84888543
linkType: hard
84898544

8545+
"path-scurry@npm:^2.0.0":
8546+
version: 2.0.0
8547+
resolution: "path-scurry@npm:2.0.0"
8548+
dependencies:
8549+
lru-cache: "npm:^11.0.0"
8550+
minipass: "npm:^7.1.2"
8551+
checksum: 10/285ae0c2d6c34ae91dc1d5378ede21981c9a2f6de1ea9ca5a88b5a270ce9763b83dbadc7a324d512211d8d36b0c540427d3d0817030849d97a60fa840a2c59ec
8552+
languageName: node
8553+
linkType: hard
8554+
84908555
"path-to-regexp@npm:^6.3.0":
84918556
version: 6.3.0
84928557
resolution: "path-to-regexp@npm:6.3.0"

0 commit comments

Comments
 (0)