[object Object]

← back to Web Viewer 3877

wire 'npm test' to the SSRF test suite

0a1b7519244396edb1ffbd165f9f2207633d879f · 2026-05-19 22:14:38 -0700 · Steve

Makes the guard tests discoverable via the standard npm-script path so
future audits / CI can run them without spelunking for the file.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 0a1b7519244396edb1ffbd165f9f2207633d879f
Author: Steve <steve@designerwallcoverings.com>
Date:   Tue May 19 22:14:38 2026 -0700

    wire 'npm test' to the SSRF test suite
    
    Makes the guard tests discoverable via the standard npm-script path so
    future audits / CI can run them without spelunking for the file.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
 package.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package.json b/package.json
index d0651dd..8a510e1 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,8 @@
   "main": "server.js",
   "scripts": {
     "start": "node server.js",
-    "dev": "nodemon server.js"
+    "dev": "nodemon server.js",
+    "test": "node test/ssrf.test.js"
   },
   "dependencies": {
     "axios": "^1.6.0",

← 5c4df7c add test/ssrf.test.js — 25 SSRF guard cases, zero deps  ·  back to Web Viewer 3877  ·  add LEDGER NOTE flagging permissive CORS for follow-up 7a4c7ef →