main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

45
node_modules/isows/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,45 @@
# isows
## 1.0.7
### Patch Changes
- [#21](https://github.com/wevm/isows/pull/21) [`8d6f65858afc0cb131d40c6f415542347b0c909c`](https://github.com/wevm/isows/commit/8d6f65858afc0cb131d40c6f415542347b0c909c) Thanks [@lucasloisp](https://github.com/lucasloisp)! - Fixed `react-native` export in `package.json#exports`.
## 1.0.6
### Patch Changes
- [#15](https://github.com/wevm/isows/pull/15) [`a8d943b5c2a47ada792d9070379aacabb8d01ceb`](https://github.com/wevm/isows/commit/a8d943b5c2a47ada792d9070379aacabb8d01ceb) Thanks [@lkwr](https://github.com/lkwr)! - Renamed conditional export `worked` to `workerd` in `package.json#exports`.
## 1.0.5
### Patch Changes
- [`fc36fcbbea8a91411263dbd053e44623eac385b5`](https://github.com/wevm/isows/commit/fc36fcbbea8a91411263dbd053e44623eac385b5) Thanks [@jxom](https://github.com/jxom)! - Added `worked` export to `package.json#exports`.
## 1.0.4
### Patch Changes
- [#9](https://github.com/wevm/isows/pull/9) [`1d0e496db949a59ec6d3e635522f42b69daa52b7`](https://github.com/wevm/isows/commit/1d0e496db949a59ec6d3e635522f42b69daa52b7) Thanks [@iketw](https://github.com/iketw)! - Added `react-native` export to `package.json#exports`.
## 1.0.3
### Patch Changes
- [`8d37b99`](https://github.com/wagmi-dev/isows/commit/8d37b99ad08c286c20a50864d98c8119d7dae0db) Thanks [@jxom](https://github.com/jxom)! - Fixed CommonJS builds.
## 1.0.2
### Patch Changes
- [`c0c0e87`](https://github.com/wagmi-dev/isows/commit/c0c0e8724407a989da70bfff29cf444ccbf31b84) Thanks [@jxom](https://github.com/jxom)! - Removed `"module"` from `package.json`.
- [`59ccdf9`](https://github.com/wagmi-dev/isows/commit/59ccdf9a45900a5854b010f58bf4a6f11169c23f) Thanks [@jxom](https://github.com/jxom)! - Added `"deno"` conditional export.
## 1.0.0
### Major Changes
- [`bd4f010`](https://github.com/wagmi-dev/isows/commit/bd4f010d8267a0c48ecc9c09d3a5e8ff8aa1b05d) Thanks [@jxom](https://github.com/jxom)! - Initial release.

21
node_modules/isows/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023-present weth, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

33
node_modules/isows/README.md generated vendored Normal file
View File

@@ -0,0 +1,33 @@
# isows
Isomorphic WebSocket implementation for Node.js, Bun, Deno, and modern browsers.
## Install
```bash
npm i isows
```
```bash
pnpm i isows
```
```bash
bun i isows
```
## Usage
```ts
import { WebSocket } from 'isows'
const ws = new WebSocket('ws://localhost:8080')
```
## Authors
- [@jxom](https://github.com/jxom) (jxom.eth, [Twitter](https://twitter.com/_jxom))
## License
[MIT](/LICENSE) License

16
node_modules/isows/_cjs/index.js generated vendored Normal file
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
node_modules/isows/_cjs/index.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,yCAAgD;AAEnC,QAAA,SAAS,GAAG,CAAC,GAAG,EAAE;IAC7B,IAAI,CAAC;QACH,OAAO,IAAA,6BAAkB,GAAE,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,UAAU,CAAC,SAAS;YAAE,OAAO,UAAU,CAAC,SAAS,CAAC;QACtD,OAAO,UAAU,CAAC;IACpB,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"}

6
node_modules/isows/_cjs/native.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebSocket = void 0;
const utils_js_1 = require("./utils.js");
exports.WebSocket = (0, utils_js_1.getNativeWebSocket)();
//# sourceMappingURL=native.js.map

1
node_modules/isows/_cjs/native.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"native.js","sourceRoot":"","sources":["../native.ts"],"names":[],"mappings":";;;AAAA,yCAAgD;AAEnC,QAAA,SAAS,GAAG,IAAA,6BAAkB,GAAE,CAAC"}

1
node_modules/isows/_cjs/package.json generated vendored Normal file
View File

@@ -0,0 +1 @@
{"type":"commonjs"}

16
node_modules/isows/_cjs/utils.js generated vendored Normal file
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

1
node_modules/isows/_cjs/utils.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB;IAChC,IAAI,OAAO,SAAS,KAAK,WAAW;QAAE,OAAO,SAAS,CAAC;IACvD,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC;IACrE,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC;IACrE,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,WAAW;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC;IACjE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;AACtE,CAAC;AAND,gDAMC"}

13
node_modules/isows/_esm/index.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
import * as WebSocket_ from "ws";
import { getNativeWebSocket } from "./utils.js";
export const WebSocket = (() => {
try {
return getNativeWebSocket();
}
catch {
if (WebSocket_.WebSocket)
return WebSocket_.WebSocket;
return WebSocket_;
}
})();
//# sourceMappingURL=index.js.map

1
node_modules/isows/_esm/index.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE;IAC7B,IAAI,CAAC;QACH,OAAO,kBAAkB,EAAE,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,UAAU,CAAC,SAAS;YAAE,OAAO,UAAU,CAAC,SAAS,CAAC;QACtD,OAAO,UAAU,CAAC;IACpB,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"}

3
node_modules/isows/_esm/native.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import { getNativeWebSocket } from "./utils.js";
export const WebSocket = getNativeWebSocket();
//# sourceMappingURL=native.js.map

1
node_modules/isows/_esm/native.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"native.js","sourceRoot":"","sources":["../native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,EAAE,CAAC"}

1
node_modules/isows/_esm/package.json generated vendored Normal file
View File

@@ -0,0 +1 @@
{"type": "module","sideEffects":false}

12
node_modules/isows/_esm/utils.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
export 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");
}
//# sourceMappingURL=utils.js.map

1
node_modules/isows/_esm/utils.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB;IAChC,IAAI,OAAO,SAAS,KAAK,WAAW;QAAE,OAAO,SAAS,CAAC;IACvD,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC;IACrE,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC;IACrE,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,WAAW;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC;IACjE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;AACtE,CAAC"}

10
node_modules/isows/_types/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import * as WebSocket_ from "ws";
export declare const WebSocket: {
new (url: string | URL, protocols?: string | string[] | undefined): WebSocket;
prototype: WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
} | typeof WebSocket_;
//# sourceMappingURL=index.d.ts.map

1
node_modules/isows/_types/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,IAAI,CAAC;AAGjC,eAAO,MAAM,SAAS;;;;;;;qBAOlB,CAAC"}

11
node_modules/isows/_types/native.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
export declare const WebSocket: {
new (url: string | URL, protocols?: string | string[] | undefined): WebSocket;
prototype: WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
type MessageEvent_ = MessageEvent;
export type { MessageEvent_ as MessageEvent };
//# sourceMappingURL=native.d.ts.map

1
node_modules/isows/_types/native.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../native.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;CAAuB,CAAC;AAE9C,KAAK,aAAa,GAAG,YAAY,CAAC;AAClC,YAAY,EAAE,aAAa,IAAI,YAAY,EAAE,CAAC"}

9
node_modules/isows/_types/utils.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
export declare function getNativeWebSocket(): {
new (url: string | URL, protocols?: string | string[] | undefined): WebSocket;
prototype: WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
//# sourceMappingURL=utils.d.ts.map

1
node_modules/isows/_types/utils.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB;;;;;;;EAMjC"}

11
node_modules/isows/index.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import * as WebSocket_ from "ws";
import { getNativeWebSocket } from "./utils.js";
export const WebSocket = (() => {
try {
return getNativeWebSocket();
} catch {
if (WebSocket_.WebSocket) return WebSocket_.WebSocket;
return WebSocket_;
}
})();

6
node_modules/isows/native.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import { getNativeWebSocket } from "./utils.js";
export const WebSocket = getNativeWebSocket();
type MessageEvent_ = MessageEvent;
export type { MessageEvent_ as MessageEvent };

54
node_modules/isows/package.json generated vendored Normal file
View File

@@ -0,0 +1,54 @@
{
"name": "isows",
"description": "Isomorphic WebSocket",
"version": "1.0.7",
"browser": "./_esm/native.js",
"main": "./_cjs/index.js",
"module": "./_esm/index.js",
"types": "./_types/native.d.ts",
"typings": "./_types/native.d.ts",
"sideEffects": false,
"files": [
"*",
"!**/*.tsbuildinfo",
"!**/*.test.ts",
"!**/*.test.ts.snap",
"!**/*.test-d.ts",
"!**/*.bench.ts",
"!tsconfig.build.json"
],
"exports": {
".": {
"types": "./_types/native.d.ts",
"bun": "./_esm/native.js",
"browser": "./_esm/native.js",
"deno": "./_esm/native.js",
"workerd": "./_esm/native.js",
"react-native": "./_esm/native.js",
"import": "./_esm/index.js",
"default": "./_cjs/index.js"
},
"./package.json": "./package.json"
},
"peerDependencies": {
"ws": "*"
},
"license": "MIT",
"repository": "wevm/isows",
"authors": [
"jxom.eth"
],
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/wevm"
}
],
"keywords": [
"isomorphic",
"websocket",
"ws",
"node",
"browser"
]
}

7
node_modules/isows/utils.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
export 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");
}