@deslop/auth 0.1.1261 → 0.1.1266
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/dist/server.js +25 -17
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -63108,7 +63108,7 @@ const fromDuplex = (open, options) => withFiber((fiber) => {
|
|
|
63108
63108
|
writer
|
|
63109
63109
|
}));
|
|
63110
63110
|
});
|
|
63111
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
63111
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/constants.js
|
|
63112
63112
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63113
63113
|
const BINARY_TYPES = [
|
|
63114
63114
|
"nodebuffer",
|
|
@@ -63130,7 +63130,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
63130
63130
|
NOOP: () => {}
|
|
63131
63131
|
};
|
|
63132
63132
|
}));
|
|
63133
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
63133
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/buffer-util.js
|
|
63134
63134
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63135
63135
|
const { websocketMask, websocketUnmask } = __require("http");
|
|
63136
63136
|
const { EMPTY_BUFFER } = require_constants();
|
|
@@ -63238,7 +63238,7 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
63238
63238
|
};
|
|
63239
63239
|
} catch (e) {}
|
|
63240
63240
|
}));
|
|
63241
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
63241
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/limiter.js
|
|
63242
63242
|
var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63243
63243
|
const kDone = Symbol("kDone");
|
|
63244
63244
|
const kRun = Symbol("kRun");
|
|
@@ -63288,7 +63288,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
63288
63288
|
};
|
|
63289
63289
|
module.exports = Limiter;
|
|
63290
63290
|
}));
|
|
63291
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
63291
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/permessage-deflate.js
|
|
63292
63292
|
var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63293
63293
|
const zlib = __require("zlib");
|
|
63294
63294
|
const bufferUtil = require_buffer_util();
|
|
@@ -63623,7 +63623,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
63623
63623
|
this[kCallback](err);
|
|
63624
63624
|
}
|
|
63625
63625
|
}));
|
|
63626
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
63626
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/validation.js
|
|
63627
63627
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63628
63628
|
const { isUtf8 } = __require("buffer");
|
|
63629
63629
|
const { hasBlob } = require_constants();
|
|
@@ -63818,7 +63818,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
63818
63818
|
};
|
|
63819
63819
|
} catch (e) {}
|
|
63820
63820
|
}));
|
|
63821
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
63821
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/receiver.js
|
|
63822
63822
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
63823
63823
|
const { Writable } = __require("stream");
|
|
63824
63824
|
const PerMessageDeflate = require_permessage_deflate();
|
|
@@ -64118,6 +64118,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
64118
64118
|
data = this.consume(this._payloadLength);
|
|
64119
64119
|
if (this._masked && (this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3]) !== 0) unmask(data, this._mask);
|
|
64120
64120
|
}
|
|
64121
|
+
this._mask = void 0;
|
|
64121
64122
|
if (this._opcode > 7) {
|
|
64122
64123
|
this.controlMessage(data, cb);
|
|
64123
64124
|
return;
|
|
@@ -64280,7 +64281,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
64280
64281
|
};
|
|
64281
64282
|
module.exports = Receiver;
|
|
64282
64283
|
}));
|
|
64283
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
64284
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/sender.js
|
|
64284
64285
|
var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
64285
64286
|
const { Duplex } = __require("stream");
|
|
64286
64287
|
const { randomFillSync } = __require("crypto");
|
|
@@ -64778,7 +64779,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
64778
64779
|
sender.onerror(err);
|
|
64779
64780
|
}
|
|
64780
64781
|
}));
|
|
64781
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
64782
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/event-target.js
|
|
64782
64783
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
64783
64784
|
const { kForOnEventAttribute, kListener } = require_constants();
|
|
64784
64785
|
const kCode = Symbol("kCode");
|
|
@@ -65008,7 +65009,7 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
65008
65009
|
else listener.call(thisArg, event);
|
|
65009
65010
|
}
|
|
65010
65011
|
}));
|
|
65011
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
65012
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/extension.js
|
|
65012
65013
|
var require_extension$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
65013
65014
|
const { tokenChars } = require_validation();
|
|
65014
65015
|
/**
|
|
@@ -65153,12 +65154,13 @@ var require_extension$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
65153
65154
|
parse
|
|
65154
65155
|
};
|
|
65155
65156
|
}));
|
|
65156
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
65157
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/websocket.js
|
|
65157
65158
|
var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
65158
65159
|
const EventEmitter = __require("events");
|
|
65159
65160
|
const https = __require("https");
|
|
65160
65161
|
const http = __require("http");
|
|
65161
65162
|
const net = __require("net");
|
|
65163
|
+
const querystring = __require("querystring");
|
|
65162
65164
|
const tls = __require("tls");
|
|
65163
65165
|
const { randomBytes, createHash } = __require("crypto");
|
|
65164
65166
|
const { Duplex, Readable } = __require("stream");
|
|
@@ -65717,8 +65719,10 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
65717
65719
|
} catch {
|
|
65718
65720
|
throw new SyntaxError(`Invalid URL: ${address}`);
|
|
65719
65721
|
}
|
|
65720
|
-
if (parsedUrl.protocol === "http:"
|
|
65721
|
-
|
|
65722
|
+
if (parsedUrl.protocol === "http:" || parsedUrl.protocol === "https:") {
|
|
65723
|
+
parsedUrl = new URL(parsedUrl);
|
|
65724
|
+
parsedUrl.protocol = parsedUrl.protocol === "http:" ? "ws:" : "wss:";
|
|
65725
|
+
}
|
|
65722
65726
|
websocket._url = parsedUrl.href;
|
|
65723
65727
|
const isSecure = parsedUrl.protocol === "wss:";
|
|
65724
65728
|
const isIpcUrl = parsedUrl.protocol === "ws+unix:";
|
|
@@ -65771,7 +65775,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
65771
65775
|
if (opts.protocolVersion < 13) opts.headers["Sec-WebSocket-Origin"] = opts.origin;
|
|
65772
65776
|
else opts.headers.Origin = opts.origin;
|
|
65773
65777
|
}
|
|
65774
|
-
if (parsedUrl.username || parsedUrl.password) opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
|
|
65778
|
+
if (parsedUrl.username || parsedUrl.password) opts.auth = `${querystring.unescape(parsedUrl.username)}:${querystring.unescape(parsedUrl.password)}`;
|
|
65775
65779
|
if (isIpcUrl) {
|
|
65776
65780
|
const i = opts.path.indexOf(":");
|
|
65777
65781
|
if (i === -1) {
|
|
@@ -65987,8 +65991,12 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
65987
65991
|
function receiverOnConclude(code, reason) {
|
|
65988
65992
|
const websocket = this[kWebSocket];
|
|
65989
65993
|
websocket._closeFrameReceived = true;
|
|
65990
|
-
websocket._closeMessage = reason;
|
|
65991
65994
|
websocket._closeCode = code;
|
|
65995
|
+
if (reason.length === 0) websocket._closeMessage = EMPTY_BUFFER;
|
|
65996
|
+
else {
|
|
65997
|
+
websocket._closeMessage = Buffer.allocUnsafeSlow(reason.length);
|
|
65998
|
+
websocket._closeMessage.set(reason);
|
|
65999
|
+
}
|
|
65992
66000
|
if (websocket._socket[kWebSocket] === void 0) return;
|
|
65993
66001
|
websocket._socket.removeListener("data", socketOnData);
|
|
65994
66002
|
process.nextTick(resume, websocket._socket);
|
|
@@ -66156,7 +66164,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
66156
66164
|
}
|
|
66157
66165
|
}
|
|
66158
66166
|
}));
|
|
66159
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
66167
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/stream.js
|
|
66160
66168
|
var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66161
66169
|
require_websocket();
|
|
66162
66170
|
const { Duplex } = __require("stream");
|
|
@@ -66271,7 +66279,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
66271
66279
|
}
|
|
66272
66280
|
module.exports = createWebSocketStream;
|
|
66273
66281
|
}));
|
|
66274
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
66282
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/subprotocol.js
|
|
66275
66283
|
var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66276
66284
|
const { tokenChars } = require_validation();
|
|
66277
66285
|
/**
|
|
@@ -66309,7 +66317,7 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
66309
66317
|
}
|
|
66310
66318
|
module.exports = { parse };
|
|
66311
66319
|
}));
|
|
66312
|
-
// ../../node_modules/.pnpm/ws@8.22.
|
|
66320
|
+
// ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/websocket-server.js
|
|
66313
66321
|
var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66314
66322
|
const EventEmitter = __require("events");
|
|
66315
66323
|
const http = __require("http");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1266",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=26"
|
|
35
35
|
},
|
|
36
|
-
"fingerprint": "
|
|
36
|
+
"fingerprint": "36e6f55927c609d9190934860b52c67f49853811d4c6aaf8061a918e5e449323"
|
|
37
37
|
}
|