openc3-tool-base 5.16.1 → 5.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '099fc58b7647e3838d07e111acfd65e4e19393aac26ebc20df770fe44c163c86'
4
- data.tar.gz: 6d5f8d1d835b190df3617b9aa4662bc1eb2fae58511b260bbb7abeb24be67629
3
+ metadata.gz: 33b8c828112d5ff8024e8ec6677a9e9676138c231ac78dd6b2d3a05118e4216c
4
+ data.tar.gz: dcbdea578c6b3db333aada5a3c413677de3b44036a78ca04b22d232170c8fdcb
5
5
  SHA512:
6
- metadata.gz: 641db5485e4037a2d598a9c4c34eb56d159aa7d740189a4fed04c0c83c645650592d172749c77297ef2b784593609ef22ca153c7f686e8340aaf66c9571be3bd
7
- data.tar.gz: 8a5d22fb8b35bad081d50df47a652ff28483c1c53b62163c8974da900405a7bd7614503b8ac7a20a82e2491a1b0c3b697d56e252e43733962044a373c4cbae2e
6
+ metadata.gz: 54cdea957c6759b22ffbc1a45d220aaa233bf84cfc08d57858bed021ce522803c9c26c6c9fd84cabeff9972996133fb448b8aaeb6a5d876ce923ed5ac3752c34
7
+ data.tar.gz: 1abca59cf38098c947dc2f94aed37b0f18bc80f5023deac6e38c754ab051ff17c57016fcfb440018d9211901e0377e6fb475c356e2c8a866a34d38e9f1a67345
@@ -1 +1 @@
1
- const emptyPromise=function(e=null){return new Promise((n=>{n(e)}))};class Auth{updateToken(e,n=!1){return localStorage.openc3Token&&!n||(this.clearTokens(),this.login(location.href)),emptyPromise()}setTokens(){}clearTokens(){delete localStorage.openc3Token}login(e){/^\/login/.test(location.pathname)||(location=`/login?redirect=${encodeURI(e)}`)}logout(){this.clearTokens(),location.reload()}user(){return{name:"Anonymous"}}getInitOptions(){}init(){return emptyPromise(!0)}}var OpenC3Auth=new Auth;Object.defineProperty(OpenC3Auth,"defaultMinValidity",{value:30,writable:!1,enumerable:!0,configurable:!1});
1
+ const emptyPromise=function(e=null){return new Promise((n=>{n(e)}))};class Auth{updateToken(e,n=!1){return localStorage.openc3Token&&!n||(this.clearTokens(),this.login(location.href)),emptyPromise()}setTokens(){}clearTokens(){delete localStorage.openc3Token}login(e){/^\/login/.test(location.pathname)||(location=`/login?redirect=${encodeURI(e)}`)}logout(){this.clearTokens(),location.reload()}user(){return{name:"Anonymous"}}userroles(){return["ALLSCOPES__admin"]}getInitOptions(){}init(){return emptyPromise(!0)}}var OpenC3Auth=new Auth;Object.defineProperty(OpenC3Auth,"defaultMinValidity",{value:30,writable:!1,enumerable:!0,configurable:!1});