seacloud-sdk 0.12.13 → 0.12.14
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/cli.js +0 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -48,7 +48,6 @@ async function getTokenFromParent(timeout = 5e3) {
|
|
|
48
48
|
};
|
|
49
49
|
globalThis.window.addEventListener("message", messageHandler);
|
|
50
50
|
try {
|
|
51
|
-
console.log("[SeaCloud SDK] Requesting token from parent page...");
|
|
52
51
|
globalThis.window.parent.postMessage(
|
|
53
52
|
{ type: "seaverse:get_token" },
|
|
54
53
|
"*"
|
|
@@ -105,7 +104,6 @@ async function getApiToken(providedApiKey) {
|
|
|
105
104
|
}
|
|
106
105
|
if (typeof globalThis.window !== "undefined" && typeof globalThis.localStorage !== "undefined") {
|
|
107
106
|
try {
|
|
108
|
-
console.log("[SeaCloud SDK] Trying to get token from localStorage...");
|
|
109
107
|
const localStorageToken = globalThis.localStorage.getItem("auth_token");
|
|
110
108
|
if (localStorageToken) {
|
|
111
109
|
console.log("[SeaCloud SDK] Successfully got token from localStorage");
|
|
@@ -116,7 +114,6 @@ async function getApiToken(providedApiKey) {
|
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
116
|
if (typeof process !== "undefined" && process.env?.API_SERVICE_TOKEN) {
|
|
119
|
-
console.log("[SeaCloud SDK] Trying to get token from environment variable...");
|
|
120
117
|
return process.env.API_SERVICE_TOKEN;
|
|
121
118
|
}
|
|
122
119
|
if (typeof globalThis.window !== "undefined") {
|