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.
- package/index.js +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
|
-
|
|
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
|
-
|
|
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