@polkadot/x-ws
Advanced tools
Comparing version 10.4.2 to 11.0.1
@@ -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; |
"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); |
3
16593
59
+ Addedtslib@^2.5.0
+ Addedws@^8.12.1
+ Added@polkadot/x-global@11.0.1(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedws@8.18.0(transitive)
- Removed@babel/runtime@^7.20.13
- Removed@types/websocket@^1.0.5
- Removedwebsocket@^1.0.34
- Removed@babel/runtime@7.26.0(transitive)
- Removed@polkadot/x-global@10.4.2(transitive)
- Removed@types/node@22.10.7(transitive)
- Removed@types/websocket@1.0.10(transitive)
- Removedbufferutil@4.0.9(transitive)
- Removedd@1.0.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedes5-ext@0.10.64(transitive)
- Removedes6-iterator@2.0.3(transitive)
- Removedes6-symbol@3.1.4(transitive)
- Removedesniff@2.0.1(transitive)
- Removedevent-emitter@0.3.5(transitive)
- Removedext@1.7.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedms@2.0.0(transitive)
- Removednext-tick@1.1.0(transitive)
- Removednode-gyp-build@4.8.4(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedtype@2.7.3(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedutf-8-validate@5.0.10(transitive)
- Removedwebsocket@1.0.35(transitive)
- Removedyaeti@0.0.6(transitive)
Updated@polkadot/x-global@11.0.1