@opentabs-dev/opentabs-plugin-discord 0.0.82 → 0.0.83
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
CHANGED
|
@@ -15099,7 +15099,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15099
15099
|
handle: async (params) => {
|
|
15100
15100
|
let blob;
|
|
15101
15101
|
if (params.is_base64) {
|
|
15102
|
-
|
|
15102
|
+
let binary;
|
|
15103
|
+
try {
|
|
15104
|
+
binary = atob(params.content);
|
|
15105
|
+
} catch {
|
|
15106
|
+
throw ToolError.validation("Invalid base64 content \u2014 ensure the content is valid base64-encoded data");
|
|
15107
|
+
}
|
|
15103
15108
|
const bytes = new Uint8Array(binary.length);
|
|
15104
15109
|
for (let i = 0; i < binary.length; i++) {
|
|
15105
15110
|
bytes[i] = binary.charCodeAt(i);
|
|
@@ -15171,7 +15176,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15171
15176
|
};
|
|
15172
15177
|
var src_default = new DiscordPlugin();
|
|
15173
15178
|
|
|
15174
|
-
// dist/
|
|
15179
|
+
// dist/_adapter_entry_7be1d560-f9be-4bbe-8c9f-30f82f7d3aa2.ts
|
|
15175
15180
|
if (!globalThis.__openTabs) {
|
|
15176
15181
|
globalThis.__openTabs = {};
|
|
15177
15182
|
} else {
|
|
@@ -15387,5 +15392,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15387
15392
|
};
|
|
15388
15393
|
delete src_default.onDeactivate;
|
|
15389
15394
|
}
|
|
15390
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["discord"]){var a=o.adapters["discord"];a.__adapterHash="
|
|
15395
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["discord"]){var a=o.adapters["discord"];a.__adapterHash="f6906a7987cc6759e1175645a8ef96fbbe48afa9237f7cd4aaeb8178e13cfaf3";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,"discord",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15391
15396
|
//# sourceMappingURL=adapter.iife.js.map
|