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

@xyo-network/origin-chain

Package Overview
Dependencies
Maintainers
4
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/origin-chain - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

2

dist/xyo-previous-hash.d.ts

@@ -8,5 +8,5 @@ import { XyoBaseSerializable, IXyoDeserializer, IXyoSerializableObject } from "@xyo-network/serialization";

constructor(hash: IXyoHash);
getData(): IXyoSerializableObject;
getData(): IXyoSerializableObject[];
getReadableValue(): any;
}
//# sourceMappingURL=xyo-previous-hash.d.ts.map

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

* @Last modified by: ryanxyo
* @Last modified time: Wednesday, 12th December 2018 1:57:09 pm
* @Last modified time: Thursday, 13th December 2018 11:51:36 am
* @License: All Rights Reserved

@@ -23,3 +23,3 @@ * @Copyright: Copyright XY | The Findables Company

getData() {
return this.hash;
return [this.hash];
}

@@ -32,3 +32,3 @@ getReadableValue() {

// tslint:disable-next-line:max-classes-per-file
class XyoNextPublicKeyDeserializer {
class XyoPreviousHashDeserializer {
constructor() {

@@ -39,6 +39,8 @@ this.schemaObjectId = serialization_schema_1.schema.previousHash.id;

const parseResult = serializationService.parse(data);
return new XyoPreviousHash(serializationService.deserialize(parseResult.dataBytes).hydrate());
const query = new serialization_1.ParseQuery(parseResult);
return new XyoPreviousHash(serializationService
.deserialize(query.getChildAt(0).readData(true)).hydrate());
}
}
XyoPreviousHash.deserializer = new XyoNextPublicKeyDeserializer();
XyoPreviousHash.deserializer = new XyoPreviousHashDeserializer();
//# sourceMappingURL=xyo-previous-hash.js.map
{
"name": "@xyo-network/origin-chain",
"version": "0.9.1",
"version": "0.9.2",
"description": "Utilities for managing an origin chain in the xyo network",

@@ -28,3 +28,3 @@ "main": "dist/index.js",

},
"gitHead": "9b5c8fc3e8d804e589947149e4c5112694e198e9"
"gitHead": "a011c4be67329c9b85bfc106b14e50aa3f135bb1"
}

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

* @Last modified by: ryanxyo
* @Last modified time: Wednesday, 12th December 2018 1:57:09 pm
* @Last modified time: Thursday, 13th December 2018 11:51:36 am
* @License: All Rights Reserved

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

import { XyoBaseSerializable, IXyoDeserializer, IXyoSerializationService, IXyoSerializableObject } from "@xyo-network/serialization"
import { XyoBaseSerializable, IXyoDeserializer, IXyoSerializationService, IXyoSerializableObject, ParseQuery } from "@xyo-network/serialization"
import { schema } from '@xyo-network/serialization-schema'

@@ -27,4 +27,4 @@ import { IXyoHash } from "@xyo-network/hashing"

public getData(): IXyoSerializableObject {
return this.hash
public getData(): IXyoSerializableObject[] {
return [this.hash]
}

@@ -38,3 +38,3 @@

// tslint:disable-next-line:max-classes-per-file
class XyoNextPublicKeyDeserializer implements IXyoDeserializer<XyoPreviousHash> {
class XyoPreviousHashDeserializer implements IXyoDeserializer<XyoPreviousHash> {
public readonly schemaObjectId = schema.previousHash.id

@@ -44,4 +44,6 @@

const parseResult = serializationService.parse(data)
const query = new ParseQuery(parseResult)
return new XyoPreviousHash(
serializationService.deserialize(parseResult.dataBytes).hydrate<IXyoHash>()
serializationService
.deserialize(query.getChildAt(0).readData(true)).hydrate<IXyoHash>()
)

@@ -51,2 +53,2 @@ }

XyoPreviousHash.deserializer = new XyoNextPublicKeyDeserializer()
XyoPreviousHash.deserializer = new XyoPreviousHashDeserializer()

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