Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import { promises as fs } from 'node:fs'
import Module from 'node:module'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { parse } from '@babel/parser'
Expand Down
1 change: 1 addition & 0 deletions .config/vitest.config.isolated.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
import { readFileSync } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { defineConfig } from 'vitest/config'
Expand Down
2 changes: 2 additions & 0 deletions .config/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* @fileoverview Vitest configuration for Socket SDK test suite.
* Configures test environment, coverage, and module resolution.
*/
import process from 'node:process'

import { defineConfig } from 'vitest/config'

import {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
jobs:
ci:
name: Run CI Pipeline
uses: SocketDev/socket-registry/.github/workflows/ci.yml@7fa48b6cd525f57f98d92dbd35794cc9b20f2d14 # main
uses: SocketDev/socket-registry/.github/workflows/ci.yml@dd7ea0c4fe523792f75c4002b20e2e5c2e14c066 # main
with:
fail-fast: false
lint-script: 'pnpm run lint --all'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
persist-credentials: false
token: ${{ secrets.GITHUB_TOKEN }}

- uses: SocketDev/socket-registry/.github/actions/setup-and-install@7fa48b6cd525f57f98d92dbd35794cc9b20f2d14 # main
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@dd7ea0c4fe523792f75c4002b20e2e5c2e14c066 # main

- name: Generate SDK
# Fetches OpenAPI, generates types/api.d.ts and src/types-strict.ts
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
persist-credentials: false
ref: automated/open-api

- uses: SocketDev/socket-registry/.github/actions/setup-and-install@7fa48b6cd525f57f98d92dbd35794cc9b20f2d14 # main
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@dd7ea0c4fe523792f75c4002b20e2e5c2e14c066 # main

- name: Build SDK
run: pnpm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/provenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
permissions:
contents: write # To create GitHub releases
id-token: write # For npm trusted publishing via OIDC
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@7fa48b6cd525f57f98d92dbd35794cc9b20f2d14 # main
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@dd7ea0c4fe523792f75c4002b20e2e5c2e14c066 # main
with:
debug: ${{ inputs.debug }}
dist-tag: ${{ inputs.dist-tag }}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
},
"dependencies": {
"@socketregistry/packageurl-js": "1.3.5",
"@socketsecurity/lib": "5.10.0",
"@socketsecurity/lib": "5.11.1",
"form-data": "4.0.5"
},
"devDependencies": {
Expand Down Expand Up @@ -112,7 +112,7 @@
"node": ">=18",
"pnpm": ">=10.25.0"
},
"packageManager": "pnpm@10.32.1",
"packageManager": "pnpm@10.33.0",
"pnpm": {
"ignoredBuiltDependencies": [
"esbuild",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { existsSync } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { build, context } from 'esbuild'
Expand Down
1 change: 1 addition & 0 deletions scripts/bump.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { spawn } from 'node:child_process'
import { existsSync, promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import readline from 'node:readline'
import { fileURLToPath } from 'node:url'

Expand Down
2 changes: 2 additions & 0 deletions scripts/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* --staged Run on staged files only
*/

import process from 'node:process'

import { getDefaultLogger } from '@socketsecurity/lib/logger'
import { printFooter, printHeader } from '@socketsecurity/lib/stdio/header'

Expand Down
1 change: 1 addition & 0 deletions scripts/ci-validate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { getDefaultLogger } from '@socketsecurity/lib/logger'
Expand Down
1 change: 1 addition & 0 deletions scripts/clean.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { deleteAsync } from 'del'
Expand Down
1 change: 1 addition & 0 deletions scripts/cover.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { parseArgs } from '@socketsecurity/lib/argv/parse'
Expand Down
1 change: 1 addition & 0 deletions scripts/generate-sdk.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import { promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'

import { parse } from '@babel/parser'
import { default as traverse } from '@babel/traverse'
Expand Down
1 change: 1 addition & 0 deletions scripts/generate-strict-types.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { spawnSync } from 'node:child_process'
import { promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'

import { tsPlugin } from '@sveltejs/acorn-typescript'
import { Parser } from 'acorn'
Expand Down
1 change: 1 addition & 0 deletions scripts/generate-types.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
import { promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'

import openapiTS from 'openapi-typescript'

Expand Down
1 change: 1 addition & 0 deletions scripts/lint.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import { existsSync, readFileSync } from 'node:fs'
import path from 'node:path'
import process from 'node:process'

import { isQuiet } from '@socketsecurity/lib/argv/flags'
import { parseArgs } from '@socketsecurity/lib/argv/parse'
Expand Down
1 change: 1 addition & 0 deletions scripts/publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { spawn } from 'node:child_process'
import { existsSync, promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { parseArgs } from '@socketsecurity/lib/argv/parse'
Expand Down
1 change: 1 addition & 0 deletions scripts/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { spawn } from 'node:child_process'
import { existsSync } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { parseArgs } from '@socketsecurity/lib/argv/parse'
Expand Down
2 changes: 2 additions & 0 deletions scripts/update.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* --verbose Show detailed output
*/

import process from 'node:process'

import { isQuiet, isVerbose } from '@socketsecurity/lib/argv/flags'
import { WIN32 } from '@socketsecurity/lib/constants/platform'
import { getDefaultLogger } from '@socketsecurity/lib/logger'
Expand Down
1 change: 1 addition & 0 deletions scripts/utils/changed-test-mapper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import { existsSync } from 'node:fs'
import path from 'node:path'
import process from 'node:process'

import {
getChangedFilesSync,
Expand Down
2 changes: 2 additions & 0 deletions scripts/utils/interactive-runner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Standardized across all socket-* repositories.
*/

import process from 'node:process'

import { runWithMask } from '@socketsecurity/lib/stdio/mask'

/**
Expand Down
2 changes: 2 additions & 0 deletions scripts/utils/run-command.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** @fileoverview Utility for running shell commands with proper error handling. */

import process from 'node:process'

import { getDefaultLogger } from '@socketsecurity/lib/logger'
import { spawn, spawnSync } from '@socketsecurity/lib/spawn'

Expand Down
1 change: 1 addition & 0 deletions scripts/validate-bundle-deps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import { promises as fs } from 'node:fs'
import { builtinModules } from 'node:module'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { getDefaultLogger } from '@socketsecurity/lib/logger'
Expand Down
1 change: 1 addition & 0 deletions scripts/validate-esbuild-minify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { getDefaultLogger } from '@socketsecurity/lib/logger'
Expand Down
1 change: 1 addition & 0 deletions scripts/validate-file-count.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import { exec } from 'node:child_process'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'
import { promisify } from 'node:util'

Expand Down
1 change: 1 addition & 0 deletions scripts/validate-file-size.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import { promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { getDefaultLogger } from '@socketsecurity/lib/logger'
Expand Down
1 change: 1 addition & 0 deletions scripts/validate-markdown-filenames.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { getDefaultLogger } from '@socketsecurity/lib/logger'
Expand Down
1 change: 1 addition & 0 deletions scripts/validate-no-cdn-refs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import { promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import loggerPkg from '@socketsecurity/lib/logger'
Expand Down
1 change: 1 addition & 0 deletions scripts/validate-no-link-deps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import { promises as fs } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

import { getDefaultLogger } from '@socketsecurity/lib/logger'
Expand Down
1 change: 1 addition & 0 deletions src/socket-sdk-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import events from 'node:events'
import { createWriteStream } from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import readline from 'node:readline'

import { createTtlCache } from '@socketsecurity/lib/cache-with-ttl'
Expand Down
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Provides URL normalization, query parameter handling, and path resolution utilities.
*/
import path from 'node:path'
import process from 'node:process'

import { memoize } from '@socketsecurity/lib/memoization'
import { normalizePath } from '@socketsecurity/lib/paths/normalize'
Expand Down
2 changes: 2 additions & 0 deletions test/utils/environment.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @fileoverview Test environment setup and cleanup utilities. */
import process from 'node:process'

import nock from 'nock'
import { afterEach, beforeEach } from 'vitest'

Expand Down
2 changes: 2 additions & 0 deletions test/utils/setup.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** @fileoverview Vitest setup file for test utilities. */

import process from 'node:process'

import nock from 'nock'

import { getAbortSignal } from '@socketsecurity/lib/constants/process'
Expand Down
Loading