@mapwhit/pbf 1.0.0 → 1.0.1

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 (2) hide show
  1. package/index.js +7 -5
  2. package/package.json +1 -1
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.1",
4
4
  "description": "a low-level, lightweight protocol buffers implementation in JavaScript",
5
5
  "main": "index.js",
6
6
  "scripts": {