New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/x-ws

Package Overview
Dependencies
Maintainers
2
Versions
744
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/x-ws - npm Package Compare versions

Comparing version 11.0.2 to 11.1.1

8

browser.d.ts

@@ -5,6 +5,6 @@ export { packageInfo } from './packageInfo.js';

prototype: WebSocket;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
import { xglobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo.js';
export const WebSocket = xglobal.WebSocket;
export const WebSocket = xglobal.WebSocket;

@@ -7,2 +7,2 @@ "use strict";

Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
exports.WebSocket = x_global_1.xglobal.WebSocket;
exports.WebSocket = x_global_1.xglobal.WebSocket;

@@ -9,2 +9,2 @@ "use strict";

Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
exports.WebSocket = (0, x_global_1.extractGlobal)('WebSocket', ws_1.default);
exports.WebSocket = (0, x_global_1.extractGlobal)('WebSocket', ws_1.default);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.packageInfo = void 0;
exports.packageInfo = { name: '@polkadot/x-ws', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.0.2' };
exports.packageInfo = { name: '@polkadot/x-ws', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.1.1' };

@@ -6,2 +6,2 @@ "use strict";

Object.defineProperty(exports, "WebSocket", { enumerable: true, get: function () { return browser_js_1.WebSocket; } });
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return browser_js_1.packageInfo; } });
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return browser_js_1.packageInfo; } });

@@ -5,2 +5,2 @@ "use strict";

const x_ws_1 = require("@polkadot/x-ws");
(0, x_global_1.exposeGlobal)('WebSocket', x_ws_1.WebSocket);
(0, x_global_1.exposeGlobal)('WebSocket', x_ws_1.WebSocket);

@@ -5,6 +5,6 @@ export { packageInfo } from './packageInfo.js';

prototype: WebSocket;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
import ws from 'ws';
import { extractGlobal } from '@polkadot/x-global';
export { packageInfo } from './packageInfo.js';
export const WebSocket = /*#__PURE__*/ extractGlobal('WebSocket', ws);
export const WebSocket = /*#__PURE__*/ extractGlobal('WebSocket', ws);
{
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/polkadot-js/common/issues",
"contributors": [],
"description": "A cross-environment WebSocket replacement",
"engines": {
"node": ">=14.0.0"
"node": ">=14"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-ws#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/x-ws",

@@ -20,3 +18,3 @@ "repository": {

"type": "module",
"version": "11.0.2",
"version": "11.1.1",
"main": "./cjs/node.js",

@@ -86,3 +84,3 @@ "module": "./node.js",

"dependencies": {
"@polkadot/x-global": "11.0.2",
"@polkadot/x-global": "11.1.1",
"tslib": "^2.5.0",

@@ -89,0 +87,0 @@ "ws": "^8.13.0"

@@ -1,1 +0,1 @@

export const packageInfo = { name: '@polkadot/x-ws', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.0.2' };
export const packageInfo = { name: '@polkadot/x-ws', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.1.1' };

@@ -1,1 +0,1 @@

export { WebSocket, packageInfo } from './browser.js';
export { WebSocket, packageInfo } from './browser.js';
import { exposeGlobal } from '@polkadot/x-global';
import { WebSocket } from '@polkadot/x-ws';
exposeGlobal('WebSocket', WebSocket);
exposeGlobal('WebSocket', WebSocket);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc