@xyo-network/serialization
Advanced tools
Comparing version 0.55.8-alpha.0 to 0.55.9-alpha.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
498590
+ Added@xyo-network/base@0.55.9-alpha.0(transitive)
+ Added@xyo-network/errors@0.55.9-alpha.0(transitive)
- Removed@xyo-network/base@0.55.8-alpha.0(transitive)
- Removed@xyo-network/errors@0.55.8-alpha.0(transitive)