This commit is contained in:
metacryst
2026-01-09 11:14:27 -06:00
parent cf03c95664
commit 637c9e4674
2149 changed files with 527743 additions and 0 deletions

14
node_modules/@capacitor/synapse/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
/**
* Expose CapacitorUtils.Synapse.<pluginName>
*
* By default it decides to use capacitor if is defined.
* If you want to instead use a cordova plugin in a capacitor shell, set overrideCapacitorWithCordova to true.
*
* Example use:
* window.CapacitorUtils.Synapse.DemoPlugin.ping(
* {value: "hello"},
* (val) => {console.log(val)},
* (err) => {console.error(err)}
* );
*/
export declare function exposeSynapse(overrideCapacitorWithCordova?: boolean): void;

1
node_modules/@capacitor/synapse/dist/synapse.cjs generated vendored Normal file
View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(t){t.CapacitorUtils.Synapse=new Proxy({},{get(a,o){return new Proxy({},{get(d,n){return(c,p,r)=>{const e=t.Capacitor.Plugins[o];if(e===void 0){r(new Error(`Capacitor plugin ${o} not found`));return}if(typeof e[n]!="function"){r(new Error(`Method ${n} not found in Capacitor plugin ${o}`));return}(async()=>{try{const i=await e[n](c);p(i)}catch(i){r(i)}})()}}})}})}function u(t){t.CapacitorUtils.Synapse=new Proxy({},{get(a,o){return t.cordova.plugins[o]}})}function y(t=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!t?s(window):window.cordova!==void 0&&u(window))}exports.exposeSynapse=y;

1
node_modules/@capacitor/synapse/dist/synapse.js generated vendored Normal file
View File

@@ -0,0 +1 @@
(function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t.outsystemsSynapse={}))})(this,function(t){"use strict";function n(e){e.CapacitorUtils.Synapse=new Proxy({},{get(f,o){return new Proxy({},{get(y,i){return(u,d,r)=>{const a=e.Capacitor.Plugins[o];if(a===void 0){r(new Error(`Capacitor plugin ${o} not found`));return}if(typeof a[i]!="function"){r(new Error(`Method ${i} not found in Capacitor plugin ${o}`));return}(async()=>{try{const s=await a[i](u);d(s)}catch(s){r(s)}})()}}})}})}function p(e){e.CapacitorUtils.Synapse=new Proxy({},{get(f,o){return e.cordova.plugins[o]}})}function c(e=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!e?n(window):window.cordova!==void 0&&p(window))}t.exposeSynapse=c,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});

48
node_modules/@capacitor/synapse/dist/synapse.mjs generated vendored Normal file
View File

@@ -0,0 +1,48 @@
function s(t) {
t.CapacitorUtils.Synapse = new Proxy(
{},
{
get(e, n) {
return new Proxy({}, {
get(w, o) {
return (c, p, r) => {
const i = t.Capacitor.Plugins[n];
if (i === void 0) {
r(new Error(`Capacitor plugin ${n} not found`));
return;
}
if (typeof i[o] != "function") {
r(new Error(`Method ${o} not found in Capacitor plugin ${n}`));
return;
}
(async () => {
try {
const a = await i[o](c);
p(a);
} catch (a) {
r(a);
}
})();
};
}
});
}
}
);
}
function u(t) {
t.CapacitorUtils.Synapse = new Proxy(
{},
{
get(e, n) {
return t.cordova.plugins[n];
}
}
);
}
function f(t = !1) {
typeof window > "u" || (window.CapacitorUtils = window.CapacitorUtils || {}, window.Capacitor !== void 0 && !t ? s(window) : window.cordova !== void 0 && u(window));
}
export {
f as exposeSynapse
};