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
5
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.12.0 to 0.12.1

14

dist/xyo-origin-block-repository.js

@@ -8,3 +8,3 @@ "use strict";

* @Last modified by: ryanxyo
* @Last modified time: Wednesday, 12th December 2018 12:14:41 pm
* @Last modified time: Wednesday, 16th January 2019 12:54:38 pm
* @License: All Rights Reserved

@@ -113,13 +113,7 @@ * @Copyright: Copyright XY | The Findables Company

return __awaiter(this, void 0, void 0, function* () {
try {
const result = yield this.originBlocksStorageProvider.read(hash);
if (!result) {
return undefined;
}
throw new Error(`TODO`);
// return this.serializationService.deserialize<IXyoBoundWitness>(result)
}
catch (err) {
const result = yield this.originBlocksStorageProvider.read(hash);
if (!result) {
return undefined;
}
return this.serializationService.deserialize(result).hydrate();
});

@@ -126,0 +120,0 @@ }

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

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

"dependencies": {
"@xyo-network/bound-witness": "^0.12.0",
"@xyo-network/hashing": "^0.12.0",
"@xyo-network/serialization": "^0.12.0",
"@xyo-network/storage": "^0.12.0"
"@xyo-network/bound-witness": "^0.12.1",
"@xyo-network/hashing": "^0.12.1",
"@xyo-network/serialization": "^0.12.1",
"@xyo-network/storage": "^0.12.1"
},

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

},
"gitHead": "c3773a9237fadc1428a60f7cc0569d346219dd5d"
"gitHead": "2859cd2182a9c00be2651fc87f51a9b911324e5e"
}

@@ -7,3 +7,3 @@ /*

* @Last modified by: ryanxyo
* @Last modified time: Wednesday, 12th December 2018 12:14:41 pm
* @Last modified time: Wednesday, 16th January 2019 12:54:38 pm
* @License: All Rights Reserved

@@ -121,13 +121,9 @@ * @Copyright: Copyright XY | The Findables Company

public async getOriginBlockByHash(hash: Buffer): Promise<IXyoBoundWitness | undefined> {
try {
const result = await this.originBlocksStorageProvider.read(hash)
if (!result) {
return undefined
}
throw new Error(`TODO`)
// return this.serializationService.deserialize<IXyoBoundWitness>(result)
} catch (err) {
const result = await this.originBlocksStorageProvider.read(hash)
if (!result) {
return undefined
}
return this.serializationService.deserialize(result).hydrate<IXyoBoundWitness>()
}

@@ -134,0 +130,0 @@ }

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