Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot a9ce2f7993 chore(release): 0.1.0-develop.13 [skip ci]
# [0.1.0-develop.13](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.12...v0.1.0-develop.13) (2023-08-31)

### Bug Fixes

* only set socket if passed ([a7b3129](a7b3129426))
2023-08-31 22:44:53 +00:00
Derrick Hammer 2d8222b7a0
Merge remote-tracking branch 'origin/develop' into develop 2023-08-31 18:44:12 -04:00
Derrick Hammer a7b3129426
fix: only set socket if passed 2023-08-31 18:44:03 -04:00
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.13](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.12...v0.1.0-develop.13) (2023-08-31)
### Bug Fixes
* only set socket if passed ([a7b3129](https://git.lumeweb.com/LumeWeb/libs5/commit/a7b31294263cb2631824fd3b643e8b9e5e75bac3))
# [0.1.0-develop.12](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.11...v0.1.0-develop.12) (2023-08-31) # [0.1.0-develop.12](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.11...v0.1.0-develop.12) (2023-08-31)
# [0.1.0-develop.11](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.10...v0.1.0-develop.11) (2023-08-31) # [0.1.0-develop.11](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.10...v0.1.0-develop.11) (2023-08-31)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.12", "version": "0.1.0-develop.13",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/libs5", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.12", "version": "0.1.0-develop.13",
"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", "name": "@lumeweb/libs5",
"version": "0.1.0-develop.12", "version": "0.1.0-develop.13",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"repository": { "repository": {

View File

@ -11,8 +11,10 @@ export abstract class BasePeer implements Peer {
constructor({ socket, uris = [] }: PeerConstructorOptions) { constructor({ socket, uris = [] }: PeerConstructorOptions) {
this.connectionUris = uris.map((uri) => new URL(uri.toString())); this.connectionUris = uris.map((uri) => new URL(uri.toString()));
this.challenge = new Uint8Array(); this.challenge = new Uint8Array();
if (socket) {
this._socket = socket; this._socket = socket;
} }
}
private _id?: NodeId; private _id?: NodeId;