Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xyo-network/origin-block-repository

Package Overview
Dependencies
Maintainers
6
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/origin-block-repository - npm Package Compare versions

Comparing version 0.53.0 to 0.54.0

12

dist/xyo-origin-block-repository.js

@@ -114,7 +114,13 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const result = yield this.originBlocksStorageProvider.read(hash);
if (!result) {
try {
const result = yield this.originBlocksStorageProvider.read(hash);
if (!result) {
return undefined;
}
return this.serializationService.deserialize(result).hydrate();
}
catch (error) {
// there was an error getting the key, so return undefined
return undefined;
}
return this.serializationService.deserialize(result).hydrate();
});

@@ -121,0 +127,0 @@ }

{
"name": "@xyo-network/origin-block-repository",
"version": "0.53.0",
"version": "0.54.0",
"description": "An abstraction over a collection of origin blocks and subsequently accessing them",

@@ -10,8 +10,8 @@ "main": "dist/index.js",

"dependencies": {
"@xyo-network/bound-witness": "^0.53.0",
"@xyo-network/hashing": "^0.53.0",
"@xyo-network/origin-chain": "^0.53.0",
"@xyo-network/serialization": "^0.53.0",
"@xyo-network/serialization-schema": "^0.53.0",
"@xyo-network/storage": "^0.53.0"
"@xyo-network/bound-witness": "^0.54.0",
"@xyo-network/hashing": "^0.54.0",
"@xyo-network/origin-chain": "^0.54.0",
"@xyo-network/serialization": "^0.54.0",
"@xyo-network/serialization-schema": "^0.54.0",
"@xyo-network/storage": "^0.54.0"
},

@@ -27,3 +27,3 @@ "devDependencies": {

},
"gitHead": "e9e420edc5a6621e8412f5955434b20b313a9fae"
"gitHead": "7378ada28f73de91c9bf844401d82f8a0ee79ee5"
}

@@ -123,8 +123,13 @@ /*

public async getOriginBlockByHash(hash: Buffer): Promise<IXyoBoundWitness | undefined> {
const result = await this.originBlocksStorageProvider.read(hash)
if (!result) {
try {
const result = await this.originBlocksStorageProvider.read(hash)
if (!result) {
return undefined
}
return this.serializationService.deserialize(result).hydrate<IXyoBoundWitness>()
} catch (error) {
// there was an error getting the key, so return undefined
return undefined
}
return this.serializationService.deserialize(result).hydrate<IXyoBoundWitness>()
}

@@ -131,0 +136,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc