@opentabs-dev/opentabs-plugin-google-cloud 0.0.74 → 0.0.75
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/adapter.iife.js +13 -23
- package/dist/adapter.iife.js.map +3 -3
- package/dist/tools.json +1 -1
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -15336,21 +15336,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15336
15336
|
};
|
|
15337
15337
|
var src_default = new GoogleCloudPlugin();
|
|
15338
15338
|
|
|
15339
|
-
// dist/
|
|
15339
|
+
// dist/_adapter_entry_09b73677-cf34-42cc-a311-66abe47a9201.ts
|
|
15340
15340
|
if (!globalThis.__openTabs) {
|
|
15341
15341
|
globalThis.__openTabs = {};
|
|
15342
15342
|
} else {
|
|
15343
15343
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15344
15344
|
if (desc && !desc.writable) {
|
|
15345
|
-
const
|
|
15345
|
+
const ot2 = globalThis.__openTabs;
|
|
15346
15346
|
const newAdaptersObj = {};
|
|
15347
|
-
if (
|
|
15348
|
-
for (const key of Object.keys(
|
|
15349
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15347
|
+
if (ot2.adapters) {
|
|
15348
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
15349
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
15350
15350
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15351
15351
|
}
|
|
15352
15352
|
}
|
|
15353
|
-
globalThis.__openTabs = Object.assign({},
|
|
15353
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
15354
15354
|
}
|
|
15355
15355
|
}
|
|
15356
15356
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15388,16 +15388,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15388
15388
|
}
|
|
15389
15389
|
};
|
|
15390
15390
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15391
|
-
var ot2 = globalThis.__openTabs;
|
|
15392
|
-
ot2._notifyReadinessChanged = () => {
|
|
15393
|
-
try {
|
|
15394
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15395
|
-
if (nonce) {
|
|
15396
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "google-cloud", nonce }, "*");
|
|
15397
|
-
}
|
|
15398
|
-
} catch {
|
|
15399
|
-
}
|
|
15400
|
-
};
|
|
15401
15391
|
var existing = adapters["google-cloud"];
|
|
15402
15392
|
if (existing) {
|
|
15403
15393
|
if (typeof existing.teardown === "function") {
|
|
@@ -15409,7 +15399,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15409
15399
|
}
|
|
15410
15400
|
}
|
|
15411
15401
|
if (!Reflect.deleteProperty(adapters, "google-cloud")) {
|
|
15412
|
-
const
|
|
15402
|
+
const ot2 = globalThis.__openTabs;
|
|
15413
15403
|
const newAdapters = {};
|
|
15414
15404
|
for (const key of Object.keys(adapters)) {
|
|
15415
15405
|
if (key !== "google-cloud") {
|
|
@@ -15417,7 +15407,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15417
15407
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15418
15408
|
}
|
|
15419
15409
|
}
|
|
15420
|
-
globalThis.__openTabs = Object.assign({},
|
|
15410
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
15421
15411
|
}
|
|
15422
15412
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15423
15413
|
for (const tool of src_default.tools) {
|
|
@@ -15478,12 +15468,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15478
15468
|
}
|
|
15479
15469
|
}
|
|
15480
15470
|
};
|
|
15481
|
-
const
|
|
15482
|
-
if (!
|
|
15471
|
+
const ot2 = globalThis.__openTabs;
|
|
15472
|
+
if (!ot2._navigationInterceptor) {
|
|
15483
15473
|
const origPushState = history.pushState.bind(history);
|
|
15484
15474
|
const origReplaceState = history.replaceState.bind(history);
|
|
15485
15475
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15486
|
-
|
|
15476
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15487
15477
|
history.pushState = function(...args) {
|
|
15488
15478
|
origPushState(...args);
|
|
15489
15479
|
for (const cb of callbacks.values()) {
|
|
@@ -15497,7 +15487,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15497
15487
|
}
|
|
15498
15488
|
};
|
|
15499
15489
|
}
|
|
15500
|
-
const interceptor =
|
|
15490
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15501
15491
|
interceptor.callbacks.set("google-cloud", checkUrl);
|
|
15502
15492
|
window.addEventListener("popstate", checkUrl);
|
|
15503
15493
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15552,5 +15542,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15552
15542
|
};
|
|
15553
15543
|
delete src_default.onDeactivate;
|
|
15554
15544
|
}
|
|
15555
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["google-cloud"]){var a=o.adapters["google-cloud"];a.__adapterHash="
|
|
15545
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["google-cloud"]){var a=o.adapters["google-cloud"];a.__adapterHash="4f880a8e5c09c45003dc4c5071c709f2fa6d5d613c8cbe2588407b4c4fce494d";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"google-cloud",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15556
15546
|
//# sourceMappingURL=adapter.iife.js.map
|