core-outline 1.1.27 → 1.1.29

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
@@ -4478,32 +4478,33 @@ function _doAuthorize2() {
4478
4478
  });
4479
4479
  case 3:
4480
4480
  res = _context2.sent;
4481
+ console.log("Auth here: ", res);
4481
4482
  if (res.ok) {
4482
- _context2.next = 7;
4483
+ _context2.next = 8;
4483
4484
  break;
4484
4485
  }
4485
4486
  console.error('[CoreOutline] Authorization failed:', res.status);
4486
4487
  return _context2.abrupt("return", false);
4487
- case 7:
4488
- _context2.next = 9;
4488
+ case 8:
4489
+ _context2.next = 10;
4489
4490
  return res.json();
4490
- case 9:
4491
+ case 10:
4491
4492
  data = _context2.sent;
4492
4493
  _token = data.access_token;
4493
4494
  _organizationId = data.organization_id;
4494
4495
  expiresIn = data.expires_in || 24 * 3600;
4495
4496
  _scheduleTokenRefresh(expiresIn);
4496
4497
  return _context2.abrupt("return", true);
4497
- case 17:
4498
- _context2.prev = 17;
4498
+ case 18:
4499
+ _context2.prev = 18;
4499
4500
  _context2.t0 = _context2["catch"](0);
4500
4501
  console.error('[CoreOutline] Authorization error:', _context2.t0);
4501
4502
  return _context2.abrupt("return", false);
4502
- case 21:
4503
+ case 22:
4503
4504
  case "end":
4504
4505
  return _context2.stop();
4505
4506
  }
4506
- }, _callee2, null, [[0, 17]]);
4507
+ }, _callee2, null, [[0, 18]]);
4507
4508
  }));
4508
4509
  return _doAuthorize2.apply(this, arguments);
4509
4510
  }
@@ -4575,6 +4576,7 @@ function _flush() {
4575
4576
  return _ensureFreshToken();
4576
4577
  case 2:
4577
4578
  // if (!_token || _buffer.length === 0) return;
4579
+ console.log(_token);
4578
4580
  events = _buffer.splice(0, _buffer.length);
4579
4581
  body = JSON.stringify({
4580
4582
  warehouse_id: _warehouseId,
@@ -4593,7 +4595,7 @@ function _flush() {
4593
4595
  })["catch"](function (err) {
4594
4596
  return console.error('[CoreOutline] Flush error:', err);
4595
4597
  });
4596
- case 6:
4598
+ case 7:
4597
4599
  case "end":
4598
4600
  return _context5.stop();
4599
4601
  }
@@ -4613,10 +4615,10 @@ function _sendRrwebBatch() {
4613
4615
  return _ensureFreshToken();
4614
4616
  case 2:
4615
4617
  // if (!_token || !chunks || chunks.length === 0) return;
4616
-
4618
+ console.log(_token);
4617
4619
  console.log("RRWeb here: ", chunks);
4618
- _context6.prev = 3;
4619
- _context6.next = 6;
4620
+ _context6.prev = 4;
4621
+ _context6.next = 7;
4620
4622
  return fetch("".concat(INGEST_BASE, "/api/ingest/rrweb"), {
4621
4623
  method: 'POST',
4622
4624
  headers: {
@@ -4632,18 +4634,18 @@ function _sendRrwebBatch() {
4632
4634
  }),
4633
4635
  keepalive: true
4634
4636
  });
4635
- case 6:
4636
- _context6.next = 11;
4637
+ case 7:
4638
+ _context6.next = 12;
4637
4639
  break;
4638
- case 8:
4639
- _context6.prev = 8;
4640
- _context6.t0 = _context6["catch"](3);
4640
+ case 9:
4641
+ _context6.prev = 9;
4642
+ _context6.t0 = _context6["catch"](4);
4641
4643
  console.error('[CoreOutline] rrweb upload error:', _context6.t0);
4642
- case 11:
4644
+ case 12:
4643
4645
  case "end":
4644
4646
  return _context6.stop();
4645
4647
  }
4646
- }, _callee6, null, [[3, 8]]);
4648
+ }, _callee6, null, [[4, 9]]);
4647
4649
  }));
4648
4650
  return _sendRrwebBatch.apply(this, arguments);
4649
4651
  }
package/dist/index.js CHANGED
@@ -4486,32 +4486,33 @@ function _doAuthorize2() {
4486
4486
  });
4487
4487
  case 3:
4488
4488
  res = _context2.sent;
4489
+ console.log("Auth here: ", res);
4489
4490
  if (res.ok) {
4490
- _context2.next = 7;
4491
+ _context2.next = 8;
4491
4492
  break;
4492
4493
  }
4493
4494
  console.error('[CoreOutline] Authorization failed:', res.status);
4494
4495
  return _context2.abrupt("return", false);
4495
- case 7:
4496
- _context2.next = 9;
4496
+ case 8:
4497
+ _context2.next = 10;
4497
4498
  return res.json();
4498
- case 9:
4499
+ case 10:
4499
4500
  data = _context2.sent;
4500
4501
  _token = data.access_token;
4501
4502
  _organizationId = data.organization_id;
4502
4503
  expiresIn = data.expires_in || 24 * 3600;
4503
4504
  _scheduleTokenRefresh(expiresIn);
4504
4505
  return _context2.abrupt("return", true);
4505
- case 17:
4506
- _context2.prev = 17;
4506
+ case 18:
4507
+ _context2.prev = 18;
4507
4508
  _context2.t0 = _context2["catch"](0);
4508
4509
  console.error('[CoreOutline] Authorization error:', _context2.t0);
4509
4510
  return _context2.abrupt("return", false);
4510
- case 21:
4511
+ case 22:
4511
4512
  case "end":
4512
4513
  return _context2.stop();
4513
4514
  }
4514
- }, _callee2, null, [[0, 17]]);
4515
+ }, _callee2, null, [[0, 18]]);
4515
4516
  }));
4516
4517
  return _doAuthorize2.apply(this, arguments);
4517
4518
  }
@@ -4583,6 +4584,7 @@ function _flush() {
4583
4584
  return _ensureFreshToken();
4584
4585
  case 2:
4585
4586
  // if (!_token || _buffer.length === 0) return;
4587
+ console.log(_token);
4586
4588
  events = _buffer.splice(0, _buffer.length);
4587
4589
  body = JSON.stringify({
4588
4590
  warehouse_id: _warehouseId,
@@ -4601,7 +4603,7 @@ function _flush() {
4601
4603
  })["catch"](function (err) {
4602
4604
  return console.error('[CoreOutline] Flush error:', err);
4603
4605
  });
4604
- case 6:
4606
+ case 7:
4605
4607
  case "end":
4606
4608
  return _context5.stop();
4607
4609
  }
@@ -4621,10 +4623,10 @@ function _sendRrwebBatch() {
4621
4623
  return _ensureFreshToken();
4622
4624
  case 2:
4623
4625
  // if (!_token || !chunks || chunks.length === 0) return;
4624
-
4626
+ console.log(_token);
4625
4627
  console.log("RRWeb here: ", chunks);
4626
- _context6.prev = 3;
4627
- _context6.next = 6;
4628
+ _context6.prev = 4;
4629
+ _context6.next = 7;
4628
4630
  return fetch("".concat(INGEST_BASE, "/api/ingest/rrweb"), {
4629
4631
  method: 'POST',
4630
4632
  headers: {
@@ -4640,18 +4642,18 @@ function _sendRrwebBatch() {
4640
4642
  }),
4641
4643
  keepalive: true
4642
4644
  });
4643
- case 6:
4644
- _context6.next = 11;
4645
+ case 7:
4646
+ _context6.next = 12;
4645
4647
  break;
4646
- case 8:
4647
- _context6.prev = 8;
4648
- _context6.t0 = _context6["catch"](3);
4648
+ case 9:
4649
+ _context6.prev = 9;
4650
+ _context6.t0 = _context6["catch"](4);
4649
4651
  console.error('[CoreOutline] rrweb upload error:', _context6.t0);
4650
- case 11:
4652
+ case 12:
4651
4653
  case "end":
4652
4654
  return _context6.stop();
4653
4655
  }
4654
- }, _callee6, null, [[3, 8]]);
4656
+ }, _callee6, null, [[4, 9]]);
4655
4657
  }));
4656
4658
  return _sendRrwebBatch.apply(this, arguments);
4657
4659
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-outline",
3
- "version": "1.1.27",
3
+ "version": "1.1.29",
4
4
  "description": "A React component for Core&Outline",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",