openc3-tool-base 5.16.2 → 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: 37824680bf25ac1644217e8675ee201dea6807badb52322e7500983d1251f0f8
4
- data.tar.gz: 3101e920a370c7753cc6ec77d2862571a8e5db51a1efd9da8e690820848637d1
3
+ metadata.gz: 33b8c828112d5ff8024e8ec6677a9e9676138c231ac78dd6b2d3a05118e4216c
4
+ data.tar.gz: dcbdea578c6b3db333aada5a3c413677de3b44036a78ca04b22d232170c8fdcb
5
5
  SHA512:
6
- metadata.gz: ad7e93572537b556008f6a181f234324c601c5e6ec9900dad145da9c8d7a6af38d2a90a27f0f7226653295cef38fa6e5d04740f299702ab69572fd6ded6d8ddd
7
- data.tar.gz: 79b7da44785bdc70a0312bd5e60f0fdaf4e32043b3b2f231a05150915cb1b9233acca82d5f0e4b386d21a3dd2ee0ca34f381f32e9e3cd3db75ceb5dc24cd110c
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});