Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 660afabef7 chore(release): 0.1.0-develop.2 [skip ci]
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-08-31)

### Bug Fixes

* set constructor typing ([331e5ad](331e5adbf7))
2023-08-31 22:31:31 +00:00
Derrick Hammer a74d7b48ec
Merge remote-tracking branch 'origin/develop' into develop 2023-08-31 18:30:45 -04:00
Derrick Hammer 331e5adbf7
fix: set constructor typing 2023-08-31 18:30:41 -04:00
3 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-08-31)
### Bug Fixes
* set constructor typing ([331e5ad](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/commit/331e5adbf7b91ca01d44b3647442ad056a50957e))
# [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/compare/v0.0.1...v0.1.0-develop.1) (2023-08-31) # [0.1.0-develop.1](https://git.lumeweb.com/LumeWeb/libs5-transport-hyper/compare/v0.0.1...v0.1.0-develop.1) (2023-08-31)

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/libs5-transport-hyper", "name": "@lumeweb/libs5-transport-hyper",
"version": "0.1.0-develop.1", "version": "0.1.0-develop.2",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {

View File

@ -1,4 +1,4 @@
import { BasePeer, Logger } from "@lumeweb/libs5"; import { BasePeer, Logger, PeerConstructorOptions } from "@lumeweb/libs5";
import { URL } from "url"; import { URL } from "url";
import { Buffer } from "buffer"; import { Buffer } from "buffer";
import { Readable } from "streamx"; import { Readable } from "streamx";
@ -10,7 +10,13 @@ export default class HyperTransportPeer extends BasePeer {
protected _socket = new Readable(); protected _socket = new Readable();
private _pipe?: any; private _pipe?: any;
constructor(options: any) { constructor(
options: PeerConstructorOptions & {
peer: any;
muxer: any;
protocol: string;
},
) {
super(options); super(options);
const { peer, muxer, protocol } = options; const { peer, muxer, protocol } = options;
this._peer = peer; this._peer = peer;