core-outline 1.1.27 → 1.1.28

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.
package/dist/index.es.js CHANGED
@@ -4575,6 +4575,7 @@ function _flush() {
4575
4575
  return _ensureFreshToken();
4576
4576
  case 2:
4577
4577
  // if (!_token || _buffer.length === 0) return;
4578
+ print(_token);
4578
4579
  events = _buffer.splice(0, _buffer.length);
4579
4580
  body = JSON.stringify({
4580
4581
  warehouse_id: _warehouseId,
@@ -4593,7 +4594,7 @@ function _flush() {
4593
4594
  })["catch"](function (err) {
4594
4595
  return console.error('[CoreOutline] Flush error:', err);
4595
4596
  });
4596
- case 6:
4597
+ case 7:
4597
4598
  case "end":
4598
4599
  return _context5.stop();
4599
4600
  }
@@ -4613,10 +4614,10 @@ function _sendRrwebBatch() {
4613
4614
  return _ensureFreshToken();
4614
4615
  case 2:
4615
4616
  // if (!_token || !chunks || chunks.length === 0) return;
4616
-
4617
+ print(_token);
4617
4618
  console.log("RRWeb here: ", chunks);
4618
- _context6.prev = 3;
4619
- _context6.next = 6;
4619
+ _context6.prev = 4;
4620
+ _context6.next = 7;
4620
4621
  return fetch("".concat(INGEST_BASE, "/api/ingest/rrweb"), {
4621
4622
  method: 'POST',
4622
4623
  headers: {
@@ -4632,18 +4633,18 @@ function _sendRrwebBatch() {
4632
4633
  }),
4633
4634
  keepalive: true
4634
4635
  });
4635
- case 6:
4636
- _context6.next = 11;
4636
+ case 7:
4637
+ _context6.next = 12;
4637
4638
  break;
4638
- case 8:
4639
- _context6.prev = 8;
4640
- _context6.t0 = _context6["catch"](3);
4639
+ case 9:
4640
+ _context6.prev = 9;
4641
+ _context6.t0 = _context6["catch"](4);
4641
4642
  console.error('[CoreOutline] rrweb upload error:', _context6.t0);
4642
- case 11:
4643
+ case 12:
4643
4644
  case "end":
4644
4645
  return _context6.stop();
4645
4646
  }
4646
- }, _callee6, null, [[3, 8]]);
4647
+ }, _callee6, null, [[4, 9]]);
4647
4648
  }));
4648
4649
  return _sendRrwebBatch.apply(this, arguments);
4649
4650
  }
package/dist/index.js CHANGED
@@ -4583,6 +4583,7 @@ function _flush() {
4583
4583
  return _ensureFreshToken();
4584
4584
  case 2:
4585
4585
  // if (!_token || _buffer.length === 0) return;
4586
+ print(_token);
4586
4587
  events = _buffer.splice(0, _buffer.length);
4587
4588
  body = JSON.stringify({
4588
4589
  warehouse_id: _warehouseId,
@@ -4601,7 +4602,7 @@ function _flush() {
4601
4602
  })["catch"](function (err) {
4602
4603
  return console.error('[CoreOutline] Flush error:', err);
4603
4604
  });
4604
- case 6:
4605
+ case 7:
4605
4606
  case "end":
4606
4607
  return _context5.stop();
4607
4608
  }
@@ -4621,10 +4622,10 @@ function _sendRrwebBatch() {
4621
4622
  return _ensureFreshToken();
4622
4623
  case 2:
4623
4624
  // if (!_token || !chunks || chunks.length === 0) return;
4624
-
4625
+ print(_token);
4625
4626
  console.log("RRWeb here: ", chunks);
4626
- _context6.prev = 3;
4627
- _context6.next = 6;
4627
+ _context6.prev = 4;
4628
+ _context6.next = 7;
4628
4629
  return fetch("".concat(INGEST_BASE, "/api/ingest/rrweb"), {
4629
4630
  method: 'POST',
4630
4631
  headers: {
@@ -4640,18 +4641,18 @@ function _sendRrwebBatch() {
4640
4641
  }),
4641
4642
  keepalive: true
4642
4643
  });
4643
- case 6:
4644
- _context6.next = 11;
4644
+ case 7:
4645
+ _context6.next = 12;
4645
4646
  break;
4646
- case 8:
4647
- _context6.prev = 8;
4648
- _context6.t0 = _context6["catch"](3);
4647
+ case 9:
4648
+ _context6.prev = 9;
4649
+ _context6.t0 = _context6["catch"](4);
4649
4650
  console.error('[CoreOutline] rrweb upload error:', _context6.t0);
4650
- case 11:
4651
+ case 12:
4651
4652
  case "end":
4652
4653
  return _context6.stop();
4653
4654
  }
4654
- }, _callee6, null, [[3, 8]]);
4655
+ }, _callee6, null, [[4, 9]]);
4655
4656
  }));
4656
4657
  return _sendRrwebBatch.apply(this, arguments);
4657
4658
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-outline",
3
- "version": "1.1.27",
3
+ "version": "1.1.28",
4
4
  "description": "A React component for Core&Outline",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",