@pezkuwi/x-ws 14.0.1
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/README.md +12 -0
- package/package.json +30 -0
- package/src/browser.ts +8 -0
- package/src/mod.ts +4 -0
- package/src/node.ts +10 -0
- package/src/packageInfo.ts +6 -0
- package/src/react-native.ts +4 -0
- package/src/shim.ts +7 -0
- package/tsconfig.build.json +14 -0
package/README.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
3
|
+
"bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
|
|
4
|
+
"description": "A cross-environment WebSocket replacement",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=18"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/pezkuwichain/pezkuwi-common/tree/master/packages/x-ws#readme",
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"name": "@pezkuwi/x-ws",
|
|
11
|
+
"repository": {
|
|
12
|
+
"directory": "packages/x-ws",
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/pezkuwichain/pezkuwi-common.git"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"version": "14.0.1",
|
|
19
|
+
"browser": "browser.js",
|
|
20
|
+
"main": "node.js",
|
|
21
|
+
"react-native": "react-native.js",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@pezkuwi/x-global": "14.0.1",
|
|
24
|
+
"tslib": "^2.8.0",
|
|
25
|
+
"ws": "^8.18.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/ws": "^8.5.12"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/browser.ts
ADDED
package/src/mod.ts
ADDED
package/src/node.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright 2017-2025 @polkadot/x-ws authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import ws from 'ws';
|
|
5
|
+
|
|
6
|
+
import { extractGlobal } from '@pezkuwi/x-global';
|
|
7
|
+
|
|
8
|
+
export { packageInfo } from './packageInfo.js';
|
|
9
|
+
|
|
10
|
+
export const WebSocket = /*#__PURE__*/ extractGlobal('WebSocket', ws);
|
package/src/shim.ts
ADDED