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

@hazae41/binary

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hazae41/binary - npm Package Compare versions

Comparing version 1.2.21 to 1.2.22

12

package.json
{
"type": "module",
"name": "@hazae41/binary",
"version": "1.2.21",
"version": "1.2.22",
"description": "Zero-copy binary data types",

@@ -25,5 +25,5 @@ "homepage": "https://github.com/hazae41/binary",

"dependencies": {
"@hazae41/bytes": "^1.1.5",
"@hazae41/cursor": "^1.1.6",
"@hazae41/result": "^1.0.12"
"@hazae41/bytes": "^1.1.6",
"@hazae41/cursor": "^1.1.8",
"@hazae41/result": "^1.0.16"
},

@@ -33,5 +33,5 @@ "devDependencies": {

"@rollup/plugin-typescript": "^11.1.0",
"@types/node": "^18.16.3",
"@types/node": "^20.1.0",
"rimraf": "^5.0.0",
"rollup": "^3.21.3",
"rollup": "^3.21.5",
"rollup-plugin-dts": "^5.3.0",

@@ -38,0 +38,0 @@ "rollup-plugin-node-externals": "^5.1.2",

@@ -37,3 +37,3 @@ <div align="center">

write(cursor: Cursor): Result<void, Error> {
return Result.unthrowSync(() => {
return Result.unthrowSync<void, Error>(() => {
cursor.tryWriteUint8(this.x).throw()

@@ -43,3 +43,3 @@ cursor.tryWriteUint16(this.y).throw()

return Ok.void()
}, Error)
})
}

@@ -66,3 +66,3 @@

static read(cursor: Cursor): Result<MyObject, Error> {
return Result.unthrowSync(() => {
return Result.unthrowSync<MyObject, Error>(() => {
const x = cursor.tryReadUint8().throw()

@@ -72,3 +72,3 @@ const y = cursor.tryReadUint16().throw()

return new Ok(new this(x, y))
}, Error)
})
}

@@ -75,0 +75,0 @@

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