Skip to content

Commit 19f16f9

Browse files
committed
chore(deps): update @socketsecurity/lib to v4.0.0
Update import paths to match v4.0.0 exports: - @socketsecurity/lib/path → @socketsecurity/lib/paths/normalize - @socketsecurity/lib/constants/paths → @socketsecurity/lib/paths/dirnames
1 parent 2005cba commit 19f16f9

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.config/esbuild.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { fileURLToPath } from 'node:url'
1010
import { parse } from '@babel/parser'
1111
import MagicString from 'magic-string'
1212

13-
import { NODE_MODULES } from '@socketsecurity/lib/constants/paths'
13+
import { NODE_MODULES } from '@socketsecurity/lib/paths/dirnames'
1414
import { envAsBoolean } from '@socketsecurity/lib/env/helpers'
1515
import { getDefaultLogger } from '@socketsecurity/lib/logger'
1616

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"update": "node scripts/update.mjs"
5656
},
5757
"dependencies": {
58-
"@socketsecurity/lib": "3.5.0"
58+
"@socketsecurity/lib": "4.0.0"
5959
},
6060
"devDependencies": {
6161
"@babel/generator": "7.28.5",

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/utils/changed-test-mapper.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
getChangedFilesSync,
1111
getStagedFilesSync,
1212
} from '@socketsecurity/lib/git'
13-
import { normalizePath } from '@socketsecurity/lib/path'
13+
import { normalizePath } from '@socketsecurity/lib/paths/normalize'
1414

1515
const rootPath = path.resolve(process.cwd())
1616

src/file-upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { createReadStream } from 'node:fs'
44
import path from 'node:path'
55
import { Readable } from 'node:stream'
66

7-
import { normalizePath } from '@socketsecurity/lib/path'
7+
import { normalizePath } from '@socketsecurity/lib/paths/normalize'
88

99
import { getHttpModule, getResponse } from './http-client'
1010

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import path from 'node:path'
66

77
import { memoize } from '@socketsecurity/lib/memoization'
8-
import { normalizePath } from '@socketsecurity/lib/path'
8+
import { normalizePath } from '@socketsecurity/lib/paths/normalize'
99

1010
import type { QueryParams } from './types'
1111

test/unit/utils.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import path from 'node:path'
1414

1515
import { describe, expect, it } from 'vitest'
1616

17-
import { normalizePath } from '@socketsecurity/lib/path'
17+
import { normalizePath } from '@socketsecurity/lib/paths/normalize'
1818

1919
import {
2020
calculateWordSetSimilarity,

0 commit comments

Comments
 (0)