token-types
Advanced tools
Comparing version 5.0.0-alpha.2 to 5.0.0-alpha.3
@@ -127,3 +127,3 @@ /// <reference types="node" /> | ||
constructor(len: number); | ||
get(buffer: Buffer, off: number): Buffer; | ||
get(uint8Array: Uint8Array, off: number): Buffer; | ||
} | ||
@@ -130,0 +130,0 @@ /** |
@@ -383,4 +383,4 @@ import * as ieee754 from 'ieee754'; | ||
} | ||
get(buffer, off) { | ||
return buffer.slice(off, off + this.len); | ||
get(uint8Array, off) { | ||
return Buffer.from(uint8Array.subarray(off, off + this.len)); | ||
} | ||
@@ -387,0 +387,0 @@ } |
{ | ||
"name": "token-types", | ||
"version": "5.0.0-alpha.2", | ||
"version": "5.0.0-alpha.3", | ||
"description": "Common token types for decoding and encoding numeric and string values", | ||
@@ -24,4 +24,3 @@ "author": { | ||
"test-coverage": "c8 npm run test", | ||
"send-codacy": "c8 report --reports-dir=./.coverage --reporter=text-lcov | codacy-coverage", | ||
"send-coveralls": "c8 report --reporter=text-lcov | coveralls" | ||
"send-codacy": "c8 report --reports-dir=./.coverage --reporter=text-lcov | codacy-coverage" | ||
}, | ||
@@ -47,15 +46,16 @@ "engines": { | ||
"devDependencies": { | ||
"@types/chai": "^4.3.0", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.11.12", | ||
"c8": "^7.10.0", | ||
"chai": "^4.3.4", | ||
"@types/chai": "^4.3.1", | ||
"@types/mocha": "^9.1.0", | ||
"@types/node": "^18.6.3", | ||
"c8": "^7.12.0", | ||
"chai": "^4.3.6", | ||
"coveralls": "^3.1.1", | ||
"del-cli": "^4.0.1", | ||
"mocha": "^9.1.3", | ||
"remark-cli": "^10.0.1", | ||
"del-cli": "^5.0.0", | ||
"mocha": "^9.2.2", | ||
"remark-cli": "^11.0.0", | ||
"remark-preset-lint-recommended": "^6.1.2", | ||
"ts-node": "^10.4.0", | ||
"source-map-support": "^0.5.21", | ||
"ts-node": "^10.9.1", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.5.4" | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -62,0 +62,0 @@ "dependencies": { |
@@ -0,0 +0,0 @@ ![Node.js CI](https://github.com/Borewit/token-types/workflows/Node.js%20CI/badge.svg) |
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
23820
14