Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/x-ws

Package Overview
Dependencies
Maintainers
2
Versions
741
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 10.4.2 to 11.0.1

5

browser.js

@@ -1,6 +0,3 @@

// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { xglobal } from '@polkadot/x-global';
export { packageInfo } from "./packageInfo.js";
export { packageInfo } from './packageInfo.js';
export const WebSocket = xglobal.WebSocket;

24

cjs/browser.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WebSocket = void 0;
Object.defineProperty(exports, "packageInfo", {
enumerable: true,
get: function () {
return _packageInfo.packageInfo;
}
});
var _xGlobal = require("@polkadot/x-global");
var _packageInfo = require("./packageInfo");
// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
const WebSocket = _xGlobal.xglobal.WebSocket;
exports.WebSocket = WebSocket;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebSocket = exports.packageInfo = void 0;
const x_global_1 = require("@polkadot/x-global");
var packageInfo_1 = require("./packageInfo");
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_1.packageInfo; } });
exports.WebSocket = x_global_1.xglobal.WebSocket;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WebSocket = void 0;
Object.defineProperty(exports, "packageInfo", {
enumerable: true,
get: function () {
return _packageInfo.packageInfo;
}
});
var _websocket = _interopRequireDefault(require("websocket"));
var _xGlobal = require("@polkadot/x-global");
var _packageInfo = require("./packageInfo");
// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
const WebSocket = (0, _xGlobal.extractGlobal)('WebSocket', _websocket.default.w3cwebsocket);
exports.WebSocket = WebSocket;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebSocket = exports.packageInfo = void 0;
const tslib_1 = require("tslib");
const ws_1 = tslib_1.__importDefault(require("ws"));
const x_global_1 = require("@polkadot/x-global");
var packageInfo_1 = require("./packageInfo");
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_1.packageInfo; } });
exports.WebSocket = (0, x_global_1.extractGlobal)('WebSocket', ws_1.default);
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "__esModule", { value: true });
exports.packageInfo = void 0;
// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
const packageInfo = {
name: '@polkadot/x-ws',
path: typeof __dirname === 'string' ? __dirname : 'auto',
type: 'cjs',
version: '10.4.2'
};
exports.packageInfo = packageInfo;
exports.packageInfo = { name: '@polkadot/x-ws', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.0.1' };
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "WebSocket", {
enumerable: true,
get: function () {
return _browser.WebSocket;
}
});
Object.defineProperty(exports, "packageInfo", {
enumerable: true,
get: function () {
return _browser.packageInfo;
}
});
var _browser = require("./browser");
Object.defineProperty(exports, "__esModule", { value: true });
exports.packageInfo = exports.WebSocket = void 0;
var browser_1 = require("./browser");
Object.defineProperty(exports, "WebSocket", { enumerable: true, get: function () { return browser_1.WebSocket; } });
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return browser_1.packageInfo; } });
"use strict";
var _xGlobal = require("@polkadot/x-global");
var _xWs = require("@polkadot/x-ws");
// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
(0, _xGlobal.exposeGlobal)('WebSocket', _xWs.WebSocket);
Object.defineProperty(exports, "__esModule", { value: true });
const x_global_1 = require("@polkadot/x-global");
const x_ws_1 = require("@polkadot/x-ws");
(0, x_global_1.exposeGlobal)('WebSocket', x_ws_1.WebSocket);

@@ -1,7 +0,4 @@

// 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.js";
export const WebSocket = extractGlobal('WebSocket', ws.w3cwebsocket);
export { packageInfo } from './packageInfo.js';
export const WebSocket = /*#__PURE__*/ extractGlobal('WebSocket', ws);

@@ -20,3 +20,3 @@ {

"type": "module",
"version": "10.4.2",
"version": "11.0.1",
"main": "./cjs/node.js",

@@ -55,3 +55,6 @@ "module": "./node.js",

},
"./package.json": "./package.json",
"./package.json": {
"require": "./cjs/package.json",
"default": "./package.json"
},
"./packageInfo.js": {

@@ -84,7 +87,6 @@ "types": "./packageInfo.d.ts",

"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/x-global": "10.4.2",
"@types/websocket": "^1.0.5",
"websocket": "^1.0.34"
"@polkadot/x-global": "11.0.1",
"tslib": "^2.5.0",
"ws": "^8.12.1"
}
}

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

// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
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: '10.4.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.0.1' };

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

// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { WebSocket, packageInfo } from "./browser.js";
export { WebSocket, packageInfo } from './browser.js';

@@ -1,6 +0,3 @@

// Copyright 2017-2023 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { exposeGlobal } from '@polkadot/x-global';
import { WebSocket } from '@polkadot/x-ws';
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