Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 660afabef7 | |
Derrick Hammer | a74d7b48ec | |
Derrick Hammer | 331e5adbf7 |
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libs5-transport-hyper",
|
||||
"version": "0.1.0-develop.1",
|
||||
"version": "0.1.0-develop.2",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
|
10
src/index.ts
10
src/index.ts
|
@ -1,4 +1,4 @@
|
|||
import { BasePeer, Logger } from "@lumeweb/libs5";
|
||||
import { BasePeer, Logger, PeerConstructorOptions } from "@lumeweb/libs5";
|
||||
import { URL } from "url";
|
||||
import { Buffer } from "buffer";
|
||||
import { Readable } from "streamx";
|
||||
|
@ -10,7 +10,13 @@ export default class HyperTransportPeer extends BasePeer {
|
|||
protected _socket = new Readable();
|
||||
private _pipe?: any;
|
||||
|
||||
constructor(options: any) {
|
||||
constructor(
|
||||
options: PeerConstructorOptions & {
|
||||
peer: any;
|
||||
muxer: any;
|
||||
protocol: string;
|
||||
},
|
||||
) {
|
||||
super(options);
|
||||
const { peer, muxer, protocol } = options;
|
||||
this._peer = peer;
|
||||
|
|
Loading…
Reference in New Issue