whistle.pastekitlab 1.7.4 → 1.7.6

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -124,7 +124,7 @@ function broadcast(type, data) {
124
124
  if (!clients.size) return;
125
125
 
126
126
  const msg = JSON.stringify({
127
- msgType: type,
127
+ type: type,
128
128
  ...data,
129
129
  timestamp: Date.now()
130
130
  });
@@ -210,7 +210,7 @@ module.exports = (server, options) => {
210
210
  eventId: generateId(),
211
211
  url,
212
212
  method: req.method,
213
- headers: {...req.headers},
213
+ requestHeaders: {...req.headers},
214
214
  body: bufferToString(Buffer.from(reqBody)),
215
215
  bodyBase64: Buffer.from(reqBody).toString('base64'),
216
216
  timestamp: Date.now()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whistle.pastekitlab",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "Whistle plugin for PasteKit Lab - Intercepts requests and sends them to requestlistviewer via WebSocket",
5
5
  "main": "index.js",
6
6
  "scripts": {