buddy-workbench 0.1.44 → 0.1.45

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buddy-workbench",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,4 +1,5 @@
1
1
  import { Router } from 'express';
2
+ import https from 'node:https';
2
3
  import axios from 'axios';
3
4
  import { getPostmanData, savePostmanData } from '../repositories/postman.js';
4
5
  import { parsePostmanCollection } from '../services/postman-parser.js';
@@ -150,6 +151,7 @@ router.post('/send', async (req, res) => {
150
151
  headers = [],
151
152
  body = {},
152
153
  auth = {},
154
+ allowSelfSigned = false,
153
155
  environmentVariables = [],
154
156
  collectionVariables = []
155
157
  } = req.body;
@@ -242,6 +244,9 @@ router.post('/send', async (req, res) => {
242
244
  params: Object.keys(queryObj).length > 0 ? queryObj : undefined,
243
245
  headers: reqHeaders,
244
246
  data: reqData,
247
+ httpsAgent: allowSelfSigned && resolvedUrl.startsWith('https://')
248
+ ? new https.Agent({ rejectUnauthorized: false })
249
+ : undefined,
245
250
  validateStatus: () => true, // Don't throw on non-2xx status codes
246
251
  timeout: 30000,
247
252
  maxContentLength: 10 * 1024 * 1024 // 10MB limit