@hazae41/binary
Advanced tools
Comparing version 1.2.21 to 1.2.22
{ | ||
"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 @@ |
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
48452
Updated@hazae41/bytes@^1.1.6
Updated@hazae41/cursor@^1.1.8
Updated@hazae41/result@^1.0.16