Skip to content

Commit

Permalink
chore: update glob dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Feb 4, 2025
1 parent eda0ccf commit 955d96e
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 13 deletions.
2 changes: 1 addition & 1 deletion meteor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"fast-clone": "^1.5.13",
"glob": "^8.1.0",
"glob": "^11.0.1",
"i18next-conv": "^10.2.0",
"i18next-scanner": "^4.6.0",
"jest": "^29.7.0",
Expand Down
7 changes: 2 additions & 5 deletions meteor/scripts/extract-i18next-pot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
* SOFTWARE.
*/

import { promisify } from 'util'
import fs from 'fs'
import yargs from 'yargs'
import { Parser } from 'i18next-scanner'
import converter from 'i18next-conv'
import glob from 'glob'
import { glob } from 'glob'

const args = yargs(process.argv)
.option('files', {
Expand Down Expand Up @@ -66,8 +65,6 @@ const args = yargs(process.argv)
.help()
.alias('help', 'h').argv

const pGlob = promisify(glob)

const parserOptions = {
// Include react helpers into parsing
attr: {
Expand Down Expand Up @@ -101,7 +98,7 @@ console.log('Extracting translatable strings...')
console.log('This process may print out some error messages, but the translation template should work fine.')
console.log('──────\n')

const files = await pGlob(fileGlob)
const files = await glob(fileGlob)

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

Expand Down
7 changes: 2 additions & 5 deletions meteor/scripts/i18n-compile-json.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { promisify } from 'util'
import glob from 'glob'
import { glob } from 'glob'
import { spawn } from 'child_process'

const pGlob = promisify(glob)

/*************************************************
This script goes through all of the languages (.po files)
Expand All @@ -14,7 +11,7 @@ and compiles the json-files (used in production).
const errors = []
const failedLanguages = []
// List all po-files:
const poFiles = await pGlob('./i18n/*.po')
const poFiles = await glob('./i18n/*.po')

const languages = []
for (const poFile of poFiles) {
Expand Down
69 changes: 67 additions & 2 deletions meteor/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,7 @@ __metadata:
eslint-plugin-node: "npm:^11.1.0"
eslint-plugin-prettier: "npm:^4.2.1"
fast-clone: "npm:^1.5.13"
glob: "npm:^8.1.0"
glob: "npm:^11.0.1"
i18next: "npm:^21.10.0"
i18next-conv: "npm:^10.2.0"
i18next-scanner: "npm:^4.6.0"
Expand Down Expand Up @@ -5098,6 +5098,22 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^11.0.1":
version: 11.0.1
resolution: "glob@npm:11.0.1"
dependencies:
foreground-child: "npm:^3.1.0"
jackspeak: "npm:^4.0.1"
minimatch: "npm:^10.0.0"
minipass: "npm:^7.1.2"
package-json-from-dist: "npm:^1.0.0"
path-scurry: "npm:^2.0.0"
bin:
glob: dist/esm/bin.mjs
checksum: 10/57b12a05cc25f1c38f3b24cf6ea7a8bacef11e782c4b9a8c5b0bef3e6c5bcb8c4548cb31eb4115592e0490a024c1bde7359c470565608dd061d3b21179740457
languageName: node
linkType: hard

"glob@npm:^7.0.0, glob@npm:^7.1.1, glob@npm:^7.1.3, glob@npm:^7.1.4":
version: 7.2.3
resolution: "glob@npm:7.2.3"
Expand All @@ -5112,7 +5128,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^8.0.1, glob@npm:^8.1.0":
"glob@npm:^8.0.1":
version: 8.1.0
resolution: "glob@npm:8.1.0"
dependencies:
Expand Down Expand Up @@ -6174,6 +6190,15 @@ __metadata:
languageName: node
linkType: hard

"jackspeak@npm:^4.0.1":
version: 4.0.2
resolution: "jackspeak@npm:4.0.2"
dependencies:
"@isaacs/cliui": "npm:^8.0.2"
checksum: 10/d9722f0e55f6c322c57aedf094c405f4201b834204629817187953988075521cfddb23df83e2a7b845723ca7eb0555068c5ce1556732e9c275d32a531881efa8
languageName: node
linkType: hard

"jake@npm:^10.8.5":
version: 10.9.2
resolution: "jake@npm:10.9.2"
Expand Down Expand Up @@ -7093,6 +7118,13 @@ __metadata:
languageName: node
linkType: hard

"lru-cache@npm:^11.0.0":
version: 11.0.2
resolution: "lru-cache@npm:11.0.2"
checksum: 10/25fcb66e9d91eaf17227c6abfe526a7bed5903de74f93bfde380eb8a13410c5e8d3f14fe447293f3f322a7493adf6f9f015c6f1df7a235ff24ec30f366e1c058
languageName: node
linkType: hard

"lru-cache@npm:^5.1.1":
version: 5.1.1
resolution: "lru-cache@npm:5.1.1"
Expand Down Expand Up @@ -7462,6 +7494,15 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^10.0.0":
version: 10.0.1
resolution: "minimatch@npm:10.0.1"
dependencies:
brace-expansion: "npm:^2.0.1"
checksum: 10/082e7ccbc090d5f8c4e4e029255d5a1d1e3af37bda837da2b8b0085b1503a1210c91ac90d9ebfe741d8a5f286ece820a1abb4f61dc1f82ce602a055d461d93f3
languageName: node
linkType: hard

"minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2":
version: 3.1.2
resolution: "minimatch@npm:3.1.2"
Expand Down Expand Up @@ -7596,6 +7637,13 @@ __metadata:
languageName: node
linkType: hard

"minipass@npm:^7.1.2":
version: 7.1.2
resolution: "minipass@npm:7.1.2"
checksum: 10/c25f0ee8196d8e6036661104bacd743785b2599a21de5c516b32b3fa2b83113ac89a2358465bc04956baab37ffb956ae43be679b2262bf7be15fce467ccd7950
languageName: node
linkType: hard

"minizlib@npm:^2.1.1, minizlib@npm:^2.1.2":
version: 2.1.2
resolution: "minizlib@npm:2.1.2"
Expand Down Expand Up @@ -8355,6 +8403,13 @@ __metadata:
languageName: node
linkType: hard

"package-json-from-dist@npm:^1.0.0":
version: 1.0.1
resolution: "package-json-from-dist@npm:1.0.1"
checksum: 10/58ee9538f2f762988433da00e26acc788036914d57c71c246bf0be1b60cdbd77dd60b6a3e1a30465f0b248aeb80079e0b34cb6050b1dfa18c06953bb1cbc7602
languageName: node
linkType: hard

"pako@npm:~1.0.5":
version: 1.0.11
resolution: "pako@npm:1.0.11"
Expand Down Expand Up @@ -8487,6 +8542,16 @@ __metadata:
languageName: node
linkType: hard

"path-scurry@npm:^2.0.0":
version: 2.0.0
resolution: "path-scurry@npm:2.0.0"
dependencies:
lru-cache: "npm:^11.0.0"
minipass: "npm:^7.1.2"
checksum: 10/285ae0c2d6c34ae91dc1d5378ede21981c9a2f6de1ea9ca5a88b5a270ce9763b83dbadc7a324d512211d8d36b0c540427d3d0817030849d97a60fa840a2c59ec
languageName: node
linkType: hard

"path-to-regexp@npm:^6.3.0":
version: 6.3.0
resolution: "path-to-regexp@npm:6.3.0"
Expand Down

0 comments on commit 955d96e

Please sign in to comment.