libkernel
Advanced tools
Comparing version 0.1.25 to 0.1.26
@@ -1,4 +0,4 @@ | ||
declare function openAuthWindow(): void; | ||
declare function loginSuccess(): Promise<void>; | ||
declare function logoutComplete(): Promise<void>; | ||
export { openAuthWindow, loginSuccess, logoutComplete }; | ||
declare function openAuthWindow(): void; | ||
export { loginSuccess, logoutComplete, openAuthWindow }; |
import { init, kernelAuthLocation, loginPromise, logoutPromise } from "./queries.js"; | ||
// loginSuccess will resolve when the user has successfully logged in. | ||
function loginSuccess() { | ||
return loginPromise; | ||
} | ||
// logoutComplete will resolve when the user has logged out. Note that | ||
// logoutComplete will only resolve if the user logged in first - if the user | ||
// was not logged in to begin with, this promise will not resolve. | ||
function logoutComplete() { | ||
return logoutPromise; | ||
} | ||
// openAuthWindow is intended to be used as an onclick target when the user | ||
@@ -23,12 +33,2 @@ // clicks the 'login' button on a skynet application. It will block until the | ||
} | ||
// loginSuccess will resolve when the user has successfully logged in. | ||
function loginSuccess() { | ||
return loginPromise; | ||
} | ||
// logoutComplete will resolve when the user has logged out. Note that | ||
// logoutComplete will only resolve if the user logged in first - if the user | ||
// was not logged in to begin with, this promise will not resolve. | ||
function logoutComplete() { | ||
return logoutPromise; | ||
} | ||
export { openAuthWindow, loginSuccess, logoutComplete }; | ||
export { loginSuccess, logoutComplete, openAuthWindow }; |
@@ -1,2 +0,2 @@ | ||
export { openAuthWindow } from "./auth.js"; | ||
export { loginSuccess, logoutComplete, openAuthWindow } from "./auth.js"; | ||
export { download } from "./messagedownload.js"; | ||
@@ -3,0 +3,0 @@ export { registryRead, registryWrite } from "./messageregistry.js"; |
@@ -1,2 +0,2 @@ | ||
export { openAuthWindow } from "./auth.js"; | ||
export { loginSuccess, logoutComplete, openAuthWindow } from "./auth.js"; | ||
export { download } from "./messagedownload.js"; | ||
@@ -3,0 +3,0 @@ export { registryRead, registryWrite } from "./messageregistry.js"; |
{ | ||
"name": "libkernel", | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"description": "helper library to interact with skynet and the skynet kernel", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27530