Compare commits

..

No commits in common. "v0.1.0-develop.5" and "v0.1.0-develop.4" have entirely different histories.

4 changed files with 11 additions and 22 deletions

View File

@ -1,10 +1,3 @@
# [0.1.0-develop.5](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-08-31)
### Bug Fixes
* change approach to make socket optional ([d22c757](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/commit/d22c757c520e38f71ef0a303a3e116013555d01b))
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-08-31) # [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-08-31)

12
package-lock.json generated
View File

@ -1,14 +1,14 @@
{ {
"name": "@lumeweb/libs5-transport-hyper", "name": "@lumeweb/libs5-transport-hyper",
"version": "0.1.0-develop.4", "version": "0.1.0-develop.2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libs5-transport-hyper", "name": "@lumeweb/libs5-transport-hyper",
"version": "0.1.0-develop.4", "version": "0.1.0-develop.2",
"dependencies": { "dependencies": {
"@lumeweb/libs5": "^0.1.0-develop.13", "@lumeweb/libs5": "^0.1.0-develop.11",
"streamx": "^2.15.1" "streamx": "^2.15.1"
}, },
"devDependencies": { "devDependencies": {
@ -1828,9 +1828,9 @@
} }
}, },
"node_modules/@lumeweb/libs5": { "node_modules/@lumeweb/libs5": {
"version": "0.1.0-develop.13", "version": "0.1.0-develop.11",
"resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.13.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.11.tgz",
"integrity": "sha512-iZfXlTF6MtHqgBoUOGj1d90LlMBXjiGzXjqlueKvhusMxKzMwgvhOZLQmp1klNx/BGbG02eYRswCsYXhcQDp7w==", "integrity": "sha512-xcajSNdXx19IYFzArXdGb9yQBexlzuXw0r2SGpdTUivkPRQN8xzaJ3IhqJifpjYMKWmIMKRocbrjIP7F/OGd+Q==",
"dependencies": { "dependencies": {
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/libs5-transport-hyper", "name": "@lumeweb/libs5-transport-hyper",
"version": "0.1.0-develop.5", "version": "0.1.0-develop.4",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {
@ -24,7 +24,7 @@
"lib" "lib"
], ],
"dependencies": { "dependencies": {
"@lumeweb/libs5": "^0.1.0-develop.13", "@lumeweb/libs5": "^0.1.0-develop.11",
"streamx": "^2.15.1" "streamx": "^2.15.1"
} }
} }

View File

@ -3,8 +3,6 @@ import { URL } from "url";
import { Buffer } from "buffer"; import { Buffer } from "buffer";
import { Readable } from "streamx"; import { Readable } from "streamx";
type OmitSocket<T> = Omit<T, "socket">;
export default class HyperTransportPeer extends BasePeer { export default class HyperTransportPeer extends BasePeer {
private _peer: any; private _peer: any;
private _muxer: any; private _muxer: any;
@ -13,16 +11,14 @@ export default class HyperTransportPeer extends BasePeer {
private _pipe?: any; private _pipe?: any;
constructor( constructor(
options: OmitSocket<PeerConstructorOptions> & { options: PeerConstructorOptions & {
peer: any; peer: any;
muxer: any; muxer: any;
protocol: string; protocol: string;
socket?: any;
}, },
) { ) {
super({ super(options);
...options,
socket: undefined,
});
const { peer, muxer, protocol } = options; const { peer, muxer, protocol } = options;
this._peer = peer; this._peer = peer;
this._muxer = muxer; this._muxer = muxer;