Skip to content

Commit d181b81

Browse files
committed
chore(deps): update @socketsecurity/lib to v3.0.1
Fixed fast-glob import in scripts/test.mjs: - Changed from lazy dynamic import to static import - Maintains consistency with clean.mjs pattern - Resolves "glob is not a function" error All 868 tests pass with 100% code coverage maintained.
1 parent f813751 commit d181b81

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@dotenvx/dotenvx": "1.49.0",
5252
"@eslint/compat": "1.3.2",
5353
"@eslint/js": "9.35.0",
54-
"@socketsecurity/lib": "3.0.0",
54+
"@socketsecurity/lib": "3.0.1",
5555
"@socketsecurity/registry": "1.5.3",
5656
"@types/node": "24.9.2",
5757
"@typescript/native-preview": "7.0.0-dev.20250926.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { existsSync } from 'node:fs'
88
import path from 'node:path'
99
import { fileURLToPath } from 'node:url'
1010

11+
import glob from 'fast-glob'
12+
1113
import { parseArgs } from '@socketsecurity/lib/argv/parse'
1214
import { getDefaultLogger } from '@socketsecurity/lib/logger'
1315
import { onExit } from '@socketsecurity/lib/signal-exit'
@@ -317,8 +319,6 @@ async function runTests(options, positionals = []) {
317319

318320
async function runIsolatedTests() {
319321
// Check if there are any isolated tests
320-
const { glob } = await import('fast-glob')
321-
322322
const isolatedTests = await glob('test/**/*.isolated.test.mts', {
323323
cwd: rootPath,
324324
})

0 commit comments

Comments
 (0)