@opentabs-dev/opentabs-plugin-github 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/list-issues.d.ts +1 -1
- package/dist/tools/list-pull-requests.d.ts +1 -1
- package/dist/tools/list-repos.d.ts +1 -1
- package/dist/tools/search-code.d.ts +23 -0
- package/dist/tools/search-code.d.ts.map +1 -0
- package/dist/tools/search-code.js +54 -0
- package/dist/tools/search-code.js.map +1 -0
- package/dist/tools/search-issues.d.ts +1 -1
- package/dist/tools/search-repos.d.ts +1 -1
- package/dist/tools.json +1 -1
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -15650,21 +15650,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15650
15650
|
};
|
|
15651
15651
|
var src_default = new GitHubPlugin();
|
|
15652
15652
|
|
|
15653
|
-
// dist/
|
|
15653
|
+
// dist/_adapter_entry_f01a8c16-8441-4301-8bb7-2fd426e4b7cc.ts
|
|
15654
15654
|
if (!globalThis.__openTabs) {
|
|
15655
15655
|
globalThis.__openTabs = {};
|
|
15656
15656
|
} else {
|
|
15657
15657
|
const desc = Object.getOwnPropertyDescriptor(globalThis.__openTabs, "adapters");
|
|
15658
15658
|
if (desc && !desc.writable) {
|
|
15659
|
-
const
|
|
15659
|
+
const ot2 = globalThis.__openTabs;
|
|
15660
15660
|
const newAdaptersObj = {};
|
|
15661
|
-
if (
|
|
15662
|
-
for (const key of Object.keys(
|
|
15663
|
-
const d = Object.getOwnPropertyDescriptor(
|
|
15661
|
+
if (ot2.adapters) {
|
|
15662
|
+
for (const key of Object.keys(ot2.adapters)) {
|
|
15663
|
+
const d = Object.getOwnPropertyDescriptor(ot2.adapters, key);
|
|
15664
15664
|
if (d) Object.defineProperty(newAdaptersObj, key, d);
|
|
15665
15665
|
}
|
|
15666
15666
|
}
|
|
15667
|
-
globalThis.__openTabs = Object.assign({},
|
|
15667
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdaptersObj });
|
|
15668
15668
|
}
|
|
15669
15669
|
}
|
|
15670
15670
|
if (!globalThis.__openTabs.adapters) {
|
|
@@ -15702,16 +15702,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15702
15702
|
}
|
|
15703
15703
|
};
|
|
15704
15704
|
var restoreTransport = setLogTransport ? setLogTransport(logTransport) : void 0;
|
|
15705
|
-
var ot2 = globalThis.__openTabs;
|
|
15706
|
-
ot2._notifyReadinessChanged = () => {
|
|
15707
|
-
try {
|
|
15708
|
-
const nonce = globalThis.__openTabs?._readinessNonce;
|
|
15709
|
-
if (nonce) {
|
|
15710
|
-
window.postMessage({ type: "opentabs:readiness-changed", plugin: "github", nonce }, "*");
|
|
15711
|
-
}
|
|
15712
|
-
} catch {
|
|
15713
|
-
}
|
|
15714
|
-
};
|
|
15715
15705
|
var existing = adapters["github"];
|
|
15716
15706
|
if (existing) {
|
|
15717
15707
|
if (typeof existing.teardown === "function") {
|
|
@@ -15723,7 +15713,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15723
15713
|
}
|
|
15724
15714
|
}
|
|
15725
15715
|
if (!Reflect.deleteProperty(adapters, "github")) {
|
|
15726
|
-
const
|
|
15716
|
+
const ot2 = globalThis.__openTabs;
|
|
15727
15717
|
const newAdapters = {};
|
|
15728
15718
|
for (const key of Object.keys(adapters)) {
|
|
15729
15719
|
if (key !== "github") {
|
|
@@ -15731,7 +15721,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15731
15721
|
if (desc) Object.defineProperty(newAdapters, key, desc);
|
|
15732
15722
|
}
|
|
15733
15723
|
}
|
|
15734
|
-
globalThis.__openTabs = Object.assign({},
|
|
15724
|
+
globalThis.__openTabs = Object.assign({}, ot2, { adapters: newAdapters });
|
|
15735
15725
|
}
|
|
15736
15726
|
var hasLifecycleHooks = typeof src_default.onToolInvocationStart === "function" || typeof src_default.onToolInvocationEnd === "function";
|
|
15737
15727
|
for (const tool of src_default.tools) {
|
|
@@ -15792,12 +15782,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15792
15782
|
}
|
|
15793
15783
|
}
|
|
15794
15784
|
};
|
|
15795
|
-
const
|
|
15796
|
-
if (!
|
|
15785
|
+
const ot2 = globalThis.__openTabs;
|
|
15786
|
+
if (!ot2._navigationInterceptor) {
|
|
15797
15787
|
const origPushState = history.pushState.bind(history);
|
|
15798
15788
|
const origReplaceState = history.replaceState.bind(history);
|
|
15799
15789
|
const callbacks = /* @__PURE__ */ new Map();
|
|
15800
|
-
|
|
15790
|
+
ot2._navigationInterceptor = { callbacks, origPushState, origReplaceState };
|
|
15801
15791
|
history.pushState = function(...args) {
|
|
15802
15792
|
origPushState(...args);
|
|
15803
15793
|
for (const cb of callbacks.values()) {
|
|
@@ -15811,7 +15801,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15811
15801
|
}
|
|
15812
15802
|
};
|
|
15813
15803
|
}
|
|
15814
|
-
const interceptor =
|
|
15804
|
+
const interceptor = ot2._navigationInterceptor;
|
|
15815
15805
|
interceptor.callbacks.set("github", checkUrl);
|
|
15816
15806
|
window.addEventListener("popstate", checkUrl);
|
|
15817
15807
|
window.addEventListener("hashchange", checkUrl);
|
|
@@ -15866,5 +15856,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15866
15856
|
};
|
|
15867
15857
|
delete src_default.onDeactivate;
|
|
15868
15858
|
}
|
|
15869
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["github"]){var a=o.adapters["github"];a.__adapterHash="
|
|
15859
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["github"]){var a=o.adapters["github"];a.__adapterHash="17a386e4d34b1939b51fb61b48ac7ae610b5a778a04fd6a08f8d5bb9ab987f61";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,"github",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15870
15860
|
//# sourceMappingURL=adapter.iife.js.map
|