buddy-workbench 0.1.44 → 0.1.46

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/README.md CHANGED
@@ -70,7 +70,7 @@ Create a manifest at `plugins/<plugin-name>/plugin.json` to add an item to the s
70
70
  { "name": "My feature", "icon": "✦", "view": "view.html" }
71
71
  ```
72
72
 
73
- Plugins are discovered automatically. `view` points to an HTML fragment in the plugin directory. See `plugins/example`; place your HTML, scripts, and styles in an isolated plugin folder. Add API routes as needed for server-side capabilities.
73
+ Plugins are discovered automatically. `view` points to an HTML fragment in the plugin directory. Place your HTML, scripts, and styles in an isolated plugin folder. Add API routes as needed for server-side capabilities.
74
74
 
75
75
  ## Scripts and logs
76
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buddy-workbench",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
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