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

@xyo-network/hashing

Package Overview
Dependencies
Maintainers
4
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/hashing - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

5

dist/index.js

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

* @Last modified by: ryanxyo
* @Last modified time: Wednesday, 12th December 2018 11:04:16 am
* @Last modified time: Wednesday, 12th December 2018 12:19:49 pm
* @License: All Rights Reserved

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

const serialization_schema_1 = require("@xyo-network/serialization-schema");
const serialization_1 = require("@xyo-network/serialization");
const xyo_hash_1 = require("./xyo-hash");

@@ -57,3 +56,3 @@ var xyo_hash_2 = require("./xyo-hash");

deserialize(data, serializationService) {
const parseResult = serialization_1.parse(data, serializationService.schema);
const parseResult = serializationService.parse(data);
const hashProvider = getHashingProvider('sha256');

@@ -60,0 +59,0 @@ return new xyo_hash_1.XyoHash(parseResult.data, hashProvider, this.schemaObjectId);

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

* @Last modified by: ryanxyo
* @Last modified time: Wednesday, 12th December 2018 11:05:40 am
* @Last modified time: Wednesday, 12th December 2018 12:19:30 pm
* @License: All Rights Reserved

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

const serialization_schema_1 = require("@xyo-network/serialization-schema");
const serialization_1 = require("@xyo-network/serialization");
class XyoStubHash extends xyo_base_hash_1.XyoBaseHash {

@@ -33,3 +32,3 @@ constructor(hash) {

static deserialize(data, serializationService) {
const parseResult = serialization_1.parse(data, serializationService.schema);
const parseResult = serializationService.parse(data);
return new XyoStubHash(parseResult.data);

@@ -36,0 +35,0 @@ }

12

package.json
{
"name": "@xyo-network/hashing",
"version": "0.6.0",
"version": "0.7.0",
"description": "Hashing Types and Services for the Xyo Network",

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

"dependencies": {
"@xyo-network/base": "^0.6.0",
"@xyo-network/errors": "^0.6.0",
"@xyo-network/serialization": "^0.6.0",
"@xyo-network/serialization-schema": "^0.6.0"
"@xyo-network/base": "^0.7.0",
"@xyo-network/errors": "^0.7.0",
"@xyo-network/serialization": "^0.7.0",
"@xyo-network/serialization-schema": "^0.7.0"
},

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

},
"gitHead": "cbb5c5c20b4f081ebbd619dbdbd2ddace174db34"
"gitHead": "95077b5c60fd3a2fe5252422f38346c47739271a"
}

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

* @Last modified by: ryanxyo
* @Last modified time: Wednesday, 12th December 2018 11:04:16 am
* @Last modified time: Wednesday, 12th December 2018 12:19:49 pm
* @License: All Rights Reserved

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

import { schema } from '@xyo-network/serialization-schema'
import { IXyoDeserializer, parse, IXyoSerializationService } from '@xyo-network/serialization'
import { IXyoDeserializer, IXyoSerializationService } from '@xyo-network/serialization'
import { XyoHash } from './xyo-hash'

@@ -69,3 +69,3 @@

public deserialize(data: Buffer, serializationService: IXyoSerializationService): IXyoHash {
const parseResult = parse(data, serializationService.schema)
const parseResult = serializationService.parse(data)
const hashProvider = getHashingProvider('sha256')

@@ -72,0 +72,0 @@ return new XyoHash(

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

* @Last modified by: ryanxyo
* @Last modified time: Wednesday, 12th December 2018 11:05:40 am
* @Last modified time: Wednesday, 12th December 2018 12:19:30 pm
* @License: All Rights Reserved

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

import { schema } from "@xyo-network/serialization-schema"
import { parse, IXyoSerializationService } from "@xyo-network/serialization"
import { IXyoSerializationService } from "@xyo-network/serialization"

@@ -23,3 +23,3 @@ export class XyoStubHash extends XyoBaseHash {

public static deserialize(data: Buffer, serializationService: IXyoSerializationService) {
const parseResult = parse(data, serializationService.schema)
const parseResult = serializationService.parse(data)
return new XyoStubHash(parseResult.data as Buffer)

@@ -26,0 +26,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

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