Swap x-ws to use ws (#1749)

* Swap x-ws to use ws

* Revert swc usage

* Remove unneeded --env to test
This commit is contained in:
Jaco
2023-03-04 15:02:04 +02:00
committed by GitHub
parent 7cd5204fb7
commit 3d43aba4a1
5 changed files with 24 additions and 139 deletions
+2 -2
View File
@@ -24,7 +24,7 @@
"dependencies": {
"@babel/runtime": "^7.21.0",
"@polkadot/x-global": "10.4.3-9-x",
"@types/websocket": "^1.0.5",
"websocket": "^1.0.34"
"@types/ws": "^8.5.4",
"ws": "^8.12.1"
}
}
+2 -2
View File
@@ -1,10 +1,10 @@
// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
import ws from 'websocket';
import ws from 'ws';
import { extractGlobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo';
export const WebSocket = /*#__PURE__*/ extractGlobal('WebSocket', ws.w3cwebsocket);
export const WebSocket = /*#__PURE__*/ extractGlobal('WebSocket', ws);