uint8-varint
Advanced tools
Comparing version 0.0.0 to 1.0.0
{ | ||
"name": "uint8-varint", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "Read/write varints from Uint8Arrays and Uint8ArrayLists", | ||
@@ -20,2 +20,18 @@ "license": "Apache-2.0 OR MIT", | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
@@ -31,2 +47,6 @@ "src", | ||
"import": "./dist/src/index.js" | ||
}, | ||
"./big": { | ||
"types": "./src/big.d.ts", | ||
"import": "./dist/src/big.js" | ||
} | ||
@@ -67,11 +87,11 @@ }, | ||
{ | ||
"type": "chore", | ||
"type": "docs", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "docs", | ||
"type": "test", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "test", | ||
"type": "deps", | ||
"release": "patch" | ||
@@ -131,3 +151,3 @@ }, | ||
"build": "aegir build", | ||
"test": "aegir test -t node", | ||
"test": "aegir test", | ||
"test:node": "aegir test -t node --cov", | ||
@@ -143,4 +163,4 @@ "test:chrome": "aegir test -t browser --cov", | ||
"byte-access": "^1.0.0", | ||
"longbits": "^1.0.0", | ||
"uint8arraylist": "^1.5.2" | ||
"longbits": "^1.0.1", | ||
"uint8arraylist": "^2.0.0" | ||
}, | ||
@@ -147,0 +167,0 @@ "devDependencies": { |
@@ -37,2 +37,18 @@ # uint8-varint <!-- omit in toc --> | ||
`BigInt`s are also supported: | ||
```js | ||
import { Uint8ArrayList } from 'uint8arraylist' | ||
import * as varint from 'uint8-varint/big' | ||
const value = 12345n | ||
const buf = new Uint8ArrayList( | ||
new Uint8Array(2) | ||
) | ||
varint.signed.encode(value, buf) | ||
varint.signed.decode(buf) // 12345n | ||
``` | ||
## License | ||
@@ -39,0 +55,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
25771
13
404
0
63
- Removedmultiformats@9.9.0(transitive)
- Removeduint8arraylist@1.6.0(transitive)
- Removeduint8arrays@3.1.1(transitive)
Updatedlongbits@^1.0.1
Updateduint8arraylist@^2.0.0