New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xyo-network/heuristics-common

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/heuristics-common - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

18

dist/index.js

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

* @Last modified by: ryanxyo
* @Last modified time: Friday, 7th December 2018 4:35:30 pm
* @Last modified time: Wednesday, 12th December 2018 11:20:08 am
* @License: All Rights Reserved

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

const serialization_1 = require("@xyo-network/serialization");
exports.rssiSerializationProvider = heuristics_1.getSignedIntegerSerializer(serialization_schema_1.schema.rssi.id);
exports.unixTimeSerializationProvider = heuristics_1.getUnsignedIntegerSerializer(serialization_schema_1.schema.time.id);
exports.latitudeSerializationProvider = heuristics_1.getDoubleSerializer(serialization_schema_1.schema.latitude.id);
exports.longitudeSerializationProvider = heuristics_1.getDoubleSerializer(serialization_schema_1.schema.longitude.id);
exports.rssiSerializationProvider = heuristics_1.getSignedIntegerSerializer(serialization_schema_1.schema, serialization_schema_1.schema.rssi.id);
exports.unixTimeSerializationProvider = heuristics_1.getUnsignedIntegerSerializer(serialization_schema_1.schema, serialization_schema_1.schema.time.id);
exports.latitudeSerializationProvider = heuristics_1.getDoubleSerializer(serialization_schema_1.schema, serialization_schema_1.schema.latitude.id);
exports.longitudeSerializationProvider = heuristics_1.getDoubleSerializer(serialization_schema_1.schema, serialization_schema_1.schema.longitude.id);
class XyoGps extends serialization_1.XyoBaseSerializable {
constructor(latitude, longitude) {
super();
super(serialization_schema_1.schema);
this.latitude = latitude;

@@ -43,8 +43,8 @@ this.longitude = longitude;

deserialize(data, serializationService) {
const parseResult = serialization_1.parse(data);
const parseResult = serialization_1.parse(data, serializationService.schema);
const parseQuery = new serialization_1.ParseQuery(parseResult);
return new XyoGps(serializationService
.deserialize(parseQuery.getChildAt(0).readData(true))
.hydrate().number, serializationService.deserialize(parseQuery.getChildAt(1).readData(true))
.hydrate().number);
.hydrate(serializationService).number, serializationService.deserialize(parseQuery.getChildAt(1).readData(true))
.hydrate(serializationService).number);
}

@@ -51,0 +51,0 @@ }

{
"name": "@xyo-network/heuristics-common",
"version": "0.5.0",
"version": "0.6.0",
"description": "A number of common heuristics used in the XYO protocol",

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

"dependencies": {
"@xyo-network/heuristics": "^0.5.0",
"@xyo-network/serialization": "^0.5.0",
"@xyo-network/serialization-schema": "^0.5.0"
"@xyo-network/heuristics": "^0.6.0",
"@xyo-network/serialization": "^0.6.0",
"@xyo-network/serialization-schema": "^0.6.0"
},

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

},
"gitHead": "599cd70f6ec81a60314d6f855a8735f5fdb08c99"
"gitHead": "cbb5c5c20b4f081ebbd619dbdbd2ddace174db34"
}

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

* @Last modified by: ryanxyo
* @Last modified time: Friday, 7th December 2018 4:35:30 pm
* @Last modified time: Wednesday, 12th December 2018 11:20:08 am
* @License: All Rights Reserved

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

export const rssiSerializationProvider = getSignedIntegerSerializer(schema.rssi.id)
export const unixTimeSerializationProvider = getUnsignedIntegerSerializer(schema.time.id)
export const latitudeSerializationProvider = getDoubleSerializer(schema.latitude.id)
export const longitudeSerializationProvider = getDoubleSerializer(schema.longitude.id)
export const rssiSerializationProvider = getSignedIntegerSerializer(schema, schema.rssi.id)
export const unixTimeSerializationProvider = getUnsignedIntegerSerializer(schema, schema.time.id)
export const latitudeSerializationProvider = getDoubleSerializer(schema, schema.latitude.id)
export const longitudeSerializationProvider = getDoubleSerializer(schema, schema.longitude.id)

@@ -29,3 +29,3 @@ export class XyoGps extends XyoBaseSerializable {

constructor (public readonly latitude: number, public readonly longitude: number) {
super()
super(schema)
}

@@ -46,3 +46,3 @@

public deserialize(data: Buffer, serializationService: IXyoSerializationService): XyoGps {
const parseResult = parse(data)
const parseResult = parse(data, serializationService.schema)
const parseQuery = new ParseQuery(parseResult)

@@ -53,5 +53,5 @@

.deserialize(parseQuery.getChildAt(0).readData(true))
.hydrate<XyoSerializableNumber>().number,
.hydrate<XyoSerializableNumber>(serializationService).number,
serializationService.deserialize(parseQuery.getChildAt(1).readData(true))
.hydrate<XyoSerializableNumber>().number
.hydrate<XyoSerializableNumber>(serializationService).number
)

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