ssrf-agent-guard 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,8 +48,9 @@ jobs:
48
48
 
49
49
  - name: Upload coverage reports
50
50
  if: matrix.node-version == '20'
51
- uses: codecov/codecov-action@v4
51
+ uses: codecov/codecov-action@v5
52
52
  with:
53
+ token: ${{ secrets.CODECOV_TOKEN }}
53
54
  file: ./coverage/lcov.info
54
55
  fail_ci_if_error: false
55
56
 
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # ssrf-agent-guard
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/ssrf-agent-guard.svg)](https://www.npmjs.com/package/ssrf-agent-guard)
4
+ [![npm downloads](https://img.shields.io/npm/dm/ssrf-agent-guard.svg)](https://www.npmjs.com/package/ssrf-agent-guard)
5
+ [![codecov](https://codecov.io/gh/swapniluneva/ssrf-agent-guard/branch/main/graph/badge.svg)](https://codecov.io/gh/swapniluneva/ssrf-agent-guard)
6
+
3
7
  #### `ssrf-agent-guard` is a Node.js module for protecting your HTTP/HTTPS requests against SSRF (Server-Side Request Forgery) attacks. It wraps http.Agent and https.Agent to enforce pre and post DNS host/IP checks, block access to cloud metadata endpoints, private IPs, and unsafe domains.
4
8
  ---
5
9
 
package/dist/index.cjs.js CHANGED
@@ -307,6 +307,7 @@ function ssrfAgentGuard(url, options) {
307
307
  return finalAgent;
308
308
  }
309
309
  module.exports = ssrfAgentGuard;
310
+ module.exports.default = ssrfAgentGuard;
310
311
 
311
312
  exports.default = ssrfAgentGuard;
312
313
  exports.getTLD = getTLD;
package/dist/index.esm.js CHANGED
@@ -303,5 +303,6 @@ function ssrfAgentGuard(url, options) {
303
303
  return finalAgent;
304
304
  }
305
305
  module.exports = ssrfAgentGuard;
306
+ module.exports.default = ssrfAgentGuard;
306
307
 
307
308
  export { ssrfAgentGuard as default, getTLD, isCloudMetadata, matchesDomain, validateHost, validatePolicy };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssrf-agent-guard",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "A TypeScript SSRF protection library for Node.js (express/axios) with advanced policies, DNS rebinding detection and cloud metadata protection.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",