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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user