Skip to content

Commit f302335

Browse files
committed
security(deps): harden all remaining examples — exact pins, lockfiles, audit clean
Node.js (17 examples): pnpm-lock.yaml generated, all ^ and ~ ranges replaced with exact versions, packageManager@10.30.3 pinned, .npmrc save-exact=true added. Vulnerabilities found and fixed: - 090-expo: 7 HIGH CVEs (tar <7.5.11, @xmldom/xmldom <0.8.12 via expo-cli) Fixed via pnpm.overrides: tar@7.5.13, @xmldom/xmldom@0.9.9 - 110-cloudflare: 2 HIGH CVEs (undici <6.24.0 via wrangler) Fixed by upgrading wrangler 3.x -> 4.80.0 - 230-n8n: 1 HIGH CVE (lodash code injection via n8n-workflow) Fixed via pnpm.overrides: lodash@4.18.1 Python (11 examples): all >= and ~= ranges replaced with exact == pins resolved from fresh Python 3.11 venv installs. All pip-audit clean. Instructions: - engineer.md: add hard rule — partner integrations must route audio through the partner's interface, not bypass it with a raw DeepgramClient(). No raw ws/fetch for audio. Tests must exercise the partner interface. - lead-review.md: add bypass check and raw protocol check to Step 4 integration genuineness check. Update Node test commands to use pnpm/bun/deno.
1 parent 133b66d commit f302335

64 files changed

Lines changed: 18077 additions & 106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

examples/010-getting-started-node/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"version": "1.0.0",
44
"description": "Transcribe audio from a URL using the Deepgram JavaScript SDK",
55
"main": "src/index.js",
6+
"packageManager": "pnpm@10.30.3",
67
"scripts": {
78
"start": "node src/index.js",
89
"test": "node tests/test.js"
910
},
1011
"dependencies": {
11-
"@deepgram/sdk": "^5.0.0",
12-
"dotenv": "^16.4.0"
12+
"@deepgram/sdk": "5.0.0",
13+
"dotenv": "16.6.1"
1314
},
1415
"engines": {
1516
"node": ">=18"

examples/010-getting-started-node/pnpm-lock.yaml

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

examples/020-twilio-media-streams-node/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
"version": "1.0.0",
44
"description": "Transcribe Twilio phone calls in real-time using Deepgram live STT",
55
"main": "src/index.js",
6+
"packageManager": "pnpm@10.30.3",
67
"scripts": {
78
"start": "node src/index.js",
89
"test": "node tests/test.js"
910
},
1011
"dependencies": {
11-
"@deepgram/sdk": "^5.0.0",
12-
"dotenv": "^16.4.0",
13-
"express": "^4.21.0",
14-
"express-ws": "^5.0.2",
15-
"twilio": "^5.4.0",
16-
"ws": "^8.18.0"
12+
"@deepgram/sdk": "5.0.0",
13+
"dotenv": "16.6.1",
14+
"express": "4.22.1",
15+
"express-ws": "5.0.2",
16+
"twilio": "5.13.1",
17+
"ws": "8.20.0"
1718
},
1819
"engines": {
1920
"node": ">=18"

0 commit comments

Comments
 (0)