@mapwhit/pbf 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +7 -5
  3. package/package.json +6 -4
package/README.md CHANGED
@@ -309,7 +309,7 @@ The resulting code is clean and simple, so feel free to customize it.
309
309
  [npm-url]: https://npmjs.org/package/@mapwhit/pbf
310
310
 
311
311
  [build-url]: https://github.com/mapwhit/pbf/actions/workflows/check.yaml
312
- [build-image]: https://img.shields.io/github/workflow/status/mapwhit/pbf/check
312
+ [build-image]: https://img.shields.io/github/actions/workflow/status/mapwhit/pbf/check.yaml?branch=main
313
313
 
314
314
  [deps-image]: https://img.shields.io/librariesio/release/npm/@mapwhit/pbf
315
315
  [deps-url]: https://libraries.io/npm/@mapwhit%2Fpbf
package/index.js CHANGED
@@ -462,11 +462,13 @@ function toNum(low, high, isSigned) {
462
462
  }
463
463
 
464
464
  function writeBigVarint(val, pbf) {
465
-
466
- assert(
467
- val < 0x10000000000000000 && val >= -0x10000000000000000,
468
- 'Given varint doesn\'t fit into 10 bytes'
469
- );
465
+ /* global DEBUG */
466
+ if (DEBUG) {
467
+ assert(
468
+ val < 0x10000000000000000 && val >= -0x10000000000000000,
469
+ 'Given varint doesn\'t fit into 10 bytes'
470
+ );
471
+ }
470
472
 
471
473
  let low;
472
474
  let high;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapwhit/pbf",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "a low-level, lightweight protocol buffers implementation in JavaScript",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,10 @@
9
9
  "files": [
10
10
  "index.js"
11
11
  ],
12
- "repository": "mapwhit/pbf",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/mapwhit/pbf.git"
15
+ },
13
16
  "keywords": [
14
17
  "protocol",
15
18
  "buffer",
@@ -34,9 +37,8 @@
34
37
  "devDependencies": {
35
38
  "benchmark": "^2.1.4",
36
39
  "eslint": "^8",
37
- "protobufjs": "~6",
40
+ "protobufjs": "~7",
38
41
  "protocol-buffers": "~5",
39
- "tap": "~16",
40
42
  "tile-stats-runner": "^1.0.0"
41
43
  },
42
44
  "browser": {