fixparser-plugin-messagestore-kdb 9.4.13 → 9.5.0-158b22ee
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.
|
@@ -62,6 +62,7 @@ var require_constants = __commonJS({
|
|
|
62
62
|
var require_buffer_util = __commonJS({
|
|
63
63
|
"../../node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
64
64
|
"use strict";
|
|
65
|
+
var { websocketMask, websocketUnmask } = __require("http");
|
|
65
66
|
var { EMPTY_BUFFER } = require_constants();
|
|
66
67
|
var FastBuffer = Buffer[Symbol.species];
|
|
67
68
|
function concat(list, totalLength) {
|
|
@@ -116,7 +117,16 @@ var require_buffer_util = __commonJS({
|
|
|
116
117
|
toBuffer,
|
|
117
118
|
unmask: _unmask
|
|
118
119
|
};
|
|
119
|
-
if (
|
|
120
|
+
if (websocketMask) {
|
|
121
|
+
module.exports.mask = function(source, mask, output, offset, length) {
|
|
122
|
+
if (length < 24) _mask(source, mask, output, offset, length);
|
|
123
|
+
else websocketMask(source, mask, output, offset, length);
|
|
124
|
+
};
|
|
125
|
+
module.exports.unmask = function(buffer, mask) {
|
|
126
|
+
if (buffer.length < 24) _unmask(buffer, mask);
|
|
127
|
+
else websocketUnmask(buffer, mask);
|
|
128
|
+
};
|
|
129
|
+
} else if (!process.env.WS_NO_BUFFER_UTIL) {
|
|
120
130
|
try {
|
|
121
131
|
const bufferUtil = __require("bufferutil");
|
|
122
132
|
module.exports.mask = function(source, mask, output, offset, length) {
|
|
@@ -1511,12 +1521,15 @@ var require_sender = __commonJS({
|
|
|
1511
1521
|
target[2] = target[3] = 0;
|
|
1512
1522
|
target.writeUIntBE(dataLength, 4, 6);
|
|
1513
1523
|
}
|
|
1514
|
-
if (!options.mask)
|
|
1524
|
+
if (!options.mask) {
|
|
1525
|
+
return dataLength ? [target, data] : [target];
|
|
1526
|
+
}
|
|
1515
1527
|
target[1] |= 128;
|
|
1516
1528
|
target[offset - 4] = mask[0];
|
|
1517
1529
|
target[offset - 3] = mask[1];
|
|
1518
1530
|
target[offset - 2] = mask[2];
|
|
1519
1531
|
target[offset - 1] = mask[3];
|
|
1532
|
+
if (!dataLength) return [target];
|
|
1520
1533
|
if (skipMasking) return [target, data];
|
|
1521
1534
|
if (merge) {
|
|
1522
1535
|
applyMask(data, mask, target, offset, dataLength);
|
|
@@ -2874,9 +2887,14 @@ var require_websocket = __commonJS({
|
|
|
2874
2887
|
opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
|
|
2875
2888
|
}
|
|
2876
2889
|
if (isIpcUrl) {
|
|
2877
|
-
const
|
|
2878
|
-
|
|
2879
|
-
|
|
2890
|
+
const i = opts.path.indexOf(":");
|
|
2891
|
+
if (i === -1) {
|
|
2892
|
+
opts.socketPath = opts.path;
|
|
2893
|
+
opts.path = "";
|
|
2894
|
+
} else {
|
|
2895
|
+
opts.socketPath = opts.path.slice(0, i);
|
|
2896
|
+
opts.path = opts.path.slice(i + 1);
|
|
2897
|
+
}
|
|
2880
2898
|
}
|
|
2881
2899
|
let req;
|
|
2882
2900
|
if (opts.followRedirects) {
|