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

@xyo-network/serialization

Package Overview
Dependencies
Maintainers
6
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/serialization - npm Package Compare versions

Comparing version 0.55.8-alpha.0 to 0.55.9-alpha.0

8

package.json
{
"name": "@xyo-network/serialization",
"version": "0.55.8-alpha.0",
"version": "0.55.9-alpha.0",
"description": "Serialization services in the xyo network",

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

"dependencies": {
"@xyo-network/base": "^0.55.8-alpha.0",
"@xyo-network/errors": "^0.55.8-alpha.0",
"@xyo-network/base": "^0.55.9-alpha.0",
"@xyo-network/errors": "^0.55.9-alpha.0",
"bn.js": "^4.11.8"

@@ -25,3 +25,3 @@ },

},
"gitHead": "276868c46de4a29d5163cf7cbadf2a11c5aec959"
"gitHead": "70501fb6695d77441d4836fb19b7cbf617ed102a"
}

@@ -14,3 +14,3 @@ /*

import { IXyoObjectPartialSchema } from '../@types'
import BN from 'bn.js'
import bnJs from 'bn.js'

@@ -55,3 +55,3 @@ export function getDataBytes(src: Buffer, partialSchema: IXyoObjectPartialSchema, srcIncludesHeader: boolean) {

}
return new BN(src.slice(offset, offset + 8).toString('hex'), 16).toNumber()
return new bnJs(src.slice(offset, offset + 8).toString('hex'), 16).toNumber()
default:

@@ -58,0 +58,0 @@ throw new XyoError('sizeIdentifierSize could not be resolved')

@@ -13,3 +13,3 @@ /*

import { XyoError, XyoErrors } from '@xyo-network/errors'
import BN from 'bn.js'
import bnJs from 'bn.js'

@@ -30,3 +30,3 @@ export function getSizeHeader(byteLength: number, bytesRequired: number) {

case 8:
sizeBuffer = new BN(byteLength + 8).toBuffer('be', 8)
sizeBuffer = new bnJs(byteLength + 8).toBuffer('be', 8)
break

@@ -33,0 +33,0 @@ default:

@@ -32,3 +32,3 @@ /*

throw new XyoError(`Data can not be queried at index ${indexInArray}`)
}, this.parseResult)
}, this.parseResult)

@@ -35,0 +35,0 @@ return new ParseQuery(queriedParseResult)

@@ -39,3 +39,3 @@ /*

return grouper
}, serializablesById)
}, serializablesById)

@@ -93,3 +93,3 @@ const numberOfSerializerTypes = Object.keys(serializablesById).length

return bufferCollection
}, [] as IBufferIdPair[])
}, [] as IBufferIdPair[])

@@ -103,3 +103,3 @@ if (arraySerializationType === 'iterable-typed') {

return collection
}, [] as Buffer[])
}, [] as Buffer[])
const innerSchema = components[0].schema

@@ -134,3 +134,3 @@ return Buffer.concat([

return collection
}, [] as Buffer[])
}, [] as Buffer[])

@@ -137,0 +137,0 @@ return Buffer.concat(componentsWithHeaders)

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

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