core-outline 1.1.28 → 1.1.30
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 +11 -10
- package/dist/index.js +11 -10
- package/package.json +1 -1
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 =
|
|
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
|
|
4488
|
-
_context2.next =
|
|
4488
|
+
case 8:
|
|
4489
|
+
_context2.next = 10;
|
|
4489
4490
|
return res.json();
|
|
4490
|
-
case
|
|
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
|
|
4498
|
-
_context2.prev =
|
|
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
|
|
4503
|
+
case 22:
|
|
4503
4504
|
case "end":
|
|
4504
4505
|
return _context2.stop();
|
|
4505
4506
|
}
|
|
4506
|
-
}, _callee2, null, [[0,
|
|
4507
|
+
}, _callee2, null, [[0, 18]]);
|
|
4507
4508
|
}));
|
|
4508
4509
|
return _doAuthorize2.apply(this, arguments);
|
|
4509
4510
|
}
|
|
@@ -4575,7 +4576,7 @@ function _flush() {
|
|
|
4575
4576
|
return _ensureFreshToken();
|
|
4576
4577
|
case 2:
|
|
4577
4578
|
// if (!_token || _buffer.length === 0) return;
|
|
4578
|
-
|
|
4579
|
+
console.log(_token);
|
|
4579
4580
|
events = _buffer.splice(0, _buffer.length);
|
|
4580
4581
|
body = JSON.stringify({
|
|
4581
4582
|
warehouse_id: _warehouseId,
|
|
@@ -4614,7 +4615,7 @@ function _sendRrwebBatch() {
|
|
|
4614
4615
|
return _ensureFreshToken();
|
|
4615
4616
|
case 2:
|
|
4616
4617
|
// if (!_token || !chunks || chunks.length === 0) return;
|
|
4617
|
-
|
|
4618
|
+
console.log(_token);
|
|
4618
4619
|
console.log("RRWeb here: ", chunks);
|
|
4619
4620
|
_context6.prev = 4;
|
|
4620
4621
|
_context6.next = 7;
|
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 =
|
|
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
|
|
4496
|
-
_context2.next =
|
|
4496
|
+
case 8:
|
|
4497
|
+
_context2.next = 10;
|
|
4497
4498
|
return res.json();
|
|
4498
|
-
case
|
|
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
|
|
4506
|
-
_context2.prev =
|
|
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
|
|
4511
|
+
case 22:
|
|
4511
4512
|
case "end":
|
|
4512
4513
|
return _context2.stop();
|
|
4513
4514
|
}
|
|
4514
|
-
}, _callee2, null, [[0,
|
|
4515
|
+
}, _callee2, null, [[0, 18]]);
|
|
4515
4516
|
}));
|
|
4516
4517
|
return _doAuthorize2.apply(this, arguments);
|
|
4517
4518
|
}
|
|
@@ -4583,7 +4584,7 @@ function _flush() {
|
|
|
4583
4584
|
return _ensureFreshToken();
|
|
4584
4585
|
case 2:
|
|
4585
4586
|
// if (!_token || _buffer.length === 0) return;
|
|
4586
|
-
|
|
4587
|
+
console.log(_token);
|
|
4587
4588
|
events = _buffer.splice(0, _buffer.length);
|
|
4588
4589
|
body = JSON.stringify({
|
|
4589
4590
|
warehouse_id: _warehouseId,
|
|
@@ -4622,7 +4623,7 @@ function _sendRrwebBatch() {
|
|
|
4622
4623
|
return _ensureFreshToken();
|
|
4623
4624
|
case 2:
|
|
4624
4625
|
// if (!_token || !chunks || chunks.length === 0) return;
|
|
4625
|
-
|
|
4626
|
+
console.log(_token);
|
|
4626
4627
|
console.log("RRWeb here: ", chunks);
|
|
4627
4628
|
_context6.prev = 4;
|
|
4628
4629
|
_context6.next = 7;
|