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 +1 -1
- package/package.json +1 -1
- package/server/routes/postman.js +5 -0
- package/ui/dist/assets/index-DTG40vpG.js +547 -0
- package/ui/dist/assets/index-s1rF0d3X.css +1 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/sw.js +2 -2
- package/plugins/example/plugin.json +0 -5
- package/plugins/example/view.html +0 -5
- package/ui/dist/assets/index-Biojo7uc.js +0 -547
- package/ui/dist/assets/index-DOhZFVAd.css +0 -1
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.
|
|
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
package/server/routes/postman.js
CHANGED
|
@@ -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
|