Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 589ccbe37c chore(release): 0.1.0-develop.37 [skip ci]
# [0.1.0-develop.37](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.36...v0.1.0-develop.37) (2023-09-02)

### Bug Fixes

* set sublevel valueEncoding to buffer ([384e941](384e941b09))
2023-09-02 03:11:19 +00:00
Derrick Hammer ef63d8d250
Merge remote-tracking branch 'origin/develop' into develop 2023-09-01 23:10:23 -04:00
Derrick Hammer 384e941b09
fix: set sublevel valueEncoding to buffer 2023-09-01 23:10:18 -04:00
5 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.37](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.36...v0.1.0-develop.37) (2023-09-02)
### Bug Fixes
* set sublevel valueEncoding to buffer ([384e941](https://git.lumeweb.com/LumeWeb/libs5/commit/384e941b095b6b5c412f502cd8579758fe90ce17))
# [0.1.0-develop.36](https://git.lumeweb.com/LumeWeb/libs5/compare/v0.1.0-develop.35...v0.1.0-develop.36) (2023-09-02)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libs5",
"version": "0.1.0-develop.36",
"version": "0.1.0-develop.37",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libs5",
"version": "0.1.0-develop.36",
"version": "0.1.0-develop.37",
"dependencies": {
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",

View File

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

View File

@ -87,7 +87,9 @@ export class P2PService extends EventEmitter {
async init(): Promise<void> {
this.localNodeId = new NodeId(this.nodeKeyPair.publicKey); // Define the NodeId constructor
this.nodesDb = this._node.db.sublevel<string, Uint8Array>("s5-nodes", {});
this.nodesDb = this._node.db.sublevel<string, Uint8Array>("s5-nodes", {
valueEncoding: "buffer",
});
}
async start(): Promise<void> {

View File

@ -35,7 +35,9 @@ export class RegistryService {
}
async init(): Promise<void> {
this.db = this.node.db.sublevel<string, Uint8Array>("s5-registry-db", {});
this.db = this.node.db.sublevel<string, Uint8Array>("s5-registry-db", {
valueEncoding: "buffer",
});
}
async set(