eshala dorost she

This commit is contained in:
2025-07-24 21:13:13 +03:30
parent 07e878c288
commit 47b95757c3
744 changed files with 7529 additions and 7507 deletions
+16
View File
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebSocket = void 0;
const WebSocket_ = require("ws");
const utils_js_1 = require("./utils.js");
exports.WebSocket = (() => {
try {
return (0, utils_js_1.getNativeWebSocket)();
}
catch {
if (WebSocket_.WebSocket)
return WebSocket_.WebSocket;
return WebSocket_;
}
})();
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"type":"commonjs"}
+16
View File
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNativeWebSocket = void 0;
function getNativeWebSocket() {
if (typeof WebSocket !== "undefined")
return WebSocket;
if (typeof global.WebSocket !== "undefined")
return global.WebSocket;
if (typeof window.WebSocket !== "undefined")
return window.WebSocket;
if (typeof self.WebSocket !== "undefined")
return self.WebSocket;
throw new Error("`WebSocket` is not supported in this environment");
}
exports.getNativeWebSocket = getNativeWebSocket;
//# sourceMappingURL=utils.js.map