@corva/ui 3.63.0-4 → 3.63.0-5
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/defineProperty"),i=require("@babel/runtime/regenerator"),s=require("./apiCore.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/asyncToGenerator"),r=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/defineProperty"),i=require("@babel/runtime/regenerator"),s=require("./apiCore.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=a(e),u=a(r),l=a(t),h=a(n),f=a(i),c=function(){function e(){u.default(this,e),h.default(this,"refreshPromise",null),h.default(this,"refreshFn",void 0),this.refreshFn=s.refreshToken}var r;return l.default(e,[{key:"tryRefresh",value:(r=o.default(f.default.mark((function e(){var r=this;return f.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.refreshPromise||(this.refreshPromise=this.refreshFn().finally((function(){r.refreshPromise=null}))),e.abrupt("return",this.refreshPromise);case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"isRefreshableAuthError",value:function(e){var r,t;return null!==(r=null===(t=e.isAuthenticationProblem)||void 0===t?void 0:t.call(e))&&void 0!==r&&r&&!e.isTermsProblem()&&!e.isLoginProblem()}},{key:"handleAuthFailure",value:function(e){this.isRefreshableAuthError(e)&&(console.error("Unrecoverable authentication failure detected;"),window.location.pathname.startsWith("/login")||(console.error("Redirecting to /login."),window.location.href="/login"))}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();h.default(c,"instance",void 0),exports.AuthRecovery=c;
|
|
2
2
|
//# sourceMappingURL=AuthRecovery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthRecovery.d.ts","sourceRoot":"","sources":["../../../src/clients/api/AuthRecovery.ts"],"names":[],"mappings":"AAIA,UAAU,SAAS;IACjB,uBAAuB,CAAC,EAAE,MAAM,OAAO,CAAC;IACxC,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,cAAc,EAAE,MAAM,OAAO,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,cAAc,CAA8B;IAEpD,OAAO,CAAC,SAAS,CAAY;IAE7B,OAAO;IAIP,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAe;IAEtC,MAAM,CAAC,WAAW,IAAI,YAAY;IAOlC;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IASjC;;;OAGG;IACH,sBAAsB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAQjD;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"AuthRecovery.d.ts","sourceRoot":"","sources":["../../../src/clients/api/AuthRecovery.ts"],"names":[],"mappings":"AAIA,UAAU,SAAS;IACjB,uBAAuB,CAAC,EAAE,MAAM,OAAO,CAAC;IACxC,cAAc,EAAE,MAAM,OAAO,CAAC;IAC9B,cAAc,EAAE,MAAM,OAAO,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,cAAc,CAA8B;IAEpD,OAAO,CAAC,SAAS,CAAY;IAE7B,OAAO;IAIP,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAe;IAEtC,MAAM,CAAC,WAAW,IAAI,YAAY;IAOlC;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IASjC;;;OAGG;IACH,sBAAsB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAQjD;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;CAS1C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/classCallCheck";import
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/defineProperty";import i from"@babel/runtime/regenerator";import{refreshToken as o}from"./apiCore.js";var s=function(){function s(){r(this,s),n(this,"refreshPromise",null),n(this,"refreshFn",void 0),this.refreshFn=o}var a;return t(s,[{key:"tryRefresh",value:(a=e(i.mark((function e(){var r=this;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.refreshPromise||(this.refreshPromise=this.refreshFn().finally((function(){r.refreshPromise=null}))),e.abrupt("return",this.refreshPromise);case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"isRefreshableAuthError",value:function(e){var r,t;return null!==(r=null===(t=e.isAuthenticationProblem)||void 0===t?void 0:t.call(e))&&void 0!==r&&r&&!e.isTermsProblem()&&!e.isLoginProblem()}},{key:"handleAuthFailure",value:function(e){this.isRefreshableAuthError(e)&&(console.error("Unrecoverable authentication failure detected;"),window.location.pathname.startsWith("/login")||(console.error("Redirecting to /login."),window.location.href="/login"))}}],[{key:"getInstance",value:function(){return s.instance||(s.instance=new s),s.instance}}]),s}();n(s,"instance",void 0);export{s as AuthRecovery};
|
|
2
2
|
//# sourceMappingURL=AuthRecovery.js.map
|
package/mcp-server/server.mjs
CHANGED