@opentabs-dev/opentabs-plugin-twitch 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.
@@ -14883,21 +14883,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14883
14883
  };
14884
14884
  var src_default = new TwitchPlugin();
14885
14885
 
14886
- // dist/_adapter_entry_32b835ff-3c59-4669-86d3-54cbed27b932.ts
14886
+ // dist/_adapter_entry_076d99d3-40b4-463e-9ce2-53dcd3cb1ae7.ts
14887
14887
  if (!globalThis.__openTabs) {
14888
14888
  globalThis.__openTabs = {};
14889
14889
  } else {
14890
14890
  const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
14891
14891
  if (desc && !desc.writable) {
14892
- const ot3 = globalThis.__openTabs;
14892
+ const ot2 = globalThis.__openTabs;
14893
14893
  const newAdaptersObj = {};
14894
- if (ot3.adapters) {
14895
- for (const key of Object.keys(ot3.adapters)) {
14896
- const d = Object.getOwnPropertyDescriptor(ot3.adapters, key);
14894
+ if (ot2.adapters) {
14895
+ for (const key of Object.keys(ot2.adapters)) {
14896
+ const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
14897
14897
  if (d) Object.defineProperty(newAdaptersObj, key, d);
14898
14898
  }
14899
14899
  }
14900
- globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdaptersObj });
14900
+ globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
14901
14901
  }
14902
14902
  }
14903
14903
  if (!globalThis.__openTabs.adapters) {
@@ -14935,16 +14935,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14935
14935
  }
14936
14936
  };
14937
14937
  var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
14938
- var ot2 = globalThis.__openTabs;
14939
- ot2._notifyReadinessChanged = () => {
14940
- try {
14941
- const nonce = globalThis.__openTabs?._readinessNonce;
14942
- if (nonce) {
14943
- window.postMessage({ type: "opentabs:readiness-changed", plugin: "twitch", nonce }, "*");
14944
- }
14945
- } catch {
14946
- }
14947
- };
14948
14938
  var existing = adapters["twitch"];
14949
14939
  if (existing) {
14950
14940
  if (typeof existing.teardown === "function") {
@@ -14956,7 +14946,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14956
14946
  }
14957
14947
  }
14958
14948
  if (!Reflect.deleteProperty(adapters, "twitch")) {
14959
- const ot3 = globalThis.__openTabs;
14949
+ const ot2 = globalThis.__openTabs;
14960
14950
  const newAdapters = {};
14961
14951
  for (const key of Object.keys(adapters)) {
14962
14952
  if (key !== "twitch") {
@@ -14964,7 +14954,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14964
14954
  if (desc) Object.defineProperty(newAdapters, key, desc);
14965
14955
  }
14966
14956
  }
14967
- globalThis.__openTabs = Object.assign({}, ot3, { adapters: newAdapters });
14957
+ globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
14968
14958
  }
14969
14959
  var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
14970
14960
  for (const tool of src_default.tools) {
@@ -15025,12 +15015,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15025
15015
  }
15026
15016
  }
15027
15017
  };
15028
- const ot3 = globalThis.__openTabs;
15029
- if (!ot3._navigationInterceptor) {
15018
+ const ot2 = globalThis.__openTabs;
15019
+ if (!ot2._navigationInterceptor) {
15030
15020
  const origPushState = history.pushState.bind(history);
15031
15021
  const origReplaceState = history.replaceState.bind(history);
15032
15022
  const callbacks = /* @__PURE__ */ new Map();
15033
- ot3._navigationInterceptor = { callbacks, origPushState, origReplaceState };
15023
+ ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
15034
15024
  history.pushState = function(...args) {
15035
15025
  origPushState(...args);
15036
15026
  for (const cb of callbacks.values()) {
@@ -15044,7 +15034,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15044
15034
  }
15045
15035
  };
15046
15036
  }
15047
- const interceptor = ot3._navigationInterceptor;
15037
+ const interceptor = ot2._navigationInterceptor;
15048
15038
  interceptor.callbacks.set("twitch", checkUrl);
15049
15039
  window.addEventListener("popstate", checkUrl);
15050
15040
  window.addEventListener("hashchange", checkUrl);
@@ -15099,5 +15089,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15099
15089
  };
15100
15090
  delete src_default.onDeactivate;
15101
15091
  }
15102
- })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["twitch"]){var a=o.adapters["twitch"];a.__adapterHash="e13b2d34f9b5e3af9eb923d52f8dcb566748d66257d2e55e0f1f29bbef986d78";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,"twitch",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
15092
+ })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["twitch"]){var a=o.adapters["twitch"];a.__adapterHash="3e5c28e5ba090d4da043a4375a541ebc1a359aba5e82cd181f5f5d3a241a50ab";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,"twitch",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
15103
15093
  //# sourceMappingURL=adapter.iife.js.map