@capacitor/synapse
Advanced tools
+1
-1
@@ -1,1 +0,1 @@ | ||
| "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function p(t){t.CapacitorUtils.Synapse=new Proxy({},{get(a,o){return new Proxy({},{get(w,r){return(c,s,n)=>{const e=t.Capacitor.Plugins[o];if(e===void 0){n(new Error(`Capacitor plugin ${o} not found`));return}if(typeof e[r]!="function"){n(new Error(`Method ${r} not found in Capacitor plugin ${o}`));return}(async()=>{try{const i=await e[r](c);s(i)}catch(i){n(i)}})()}}})}})}function u(t){t.CapacitorUtils.Synapse=new Proxy({},{get(a,o){return t.cordova.plugins[o]}})}function y(t=!1){window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!t?p(window):window.cordova!==void 0&&u(window)}exports.exposeSynapse=y; | ||
| "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
-1
@@ -1,1 +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(u,o){return new Proxy({},{get(y,i){return(f,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](f);d(s)}catch(s){r(s)}})()}}})}})}function c(e){e.CapacitorUtils.Synapse=new Proxy({},{get(u,o){return e.cordova.plugins[o]}})}function p(e=!1){window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!e?n(window):window.cordova!==void 0&&c(window)}t.exposeSynapse=p,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}); | ||
| (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"})}); |
+14
-14
@@ -5,13 +5,13 @@ function s(t) { | ||
| { | ||
| get(e, o) { | ||
| get(e, n) { | ||
| return new Proxy({}, { | ||
| get(w, r) { | ||
| return (c, p, n) => { | ||
| const i = t.Capacitor.Plugins[o]; | ||
| get(w, o) { | ||
| return (c, p, r) => { | ||
| const i = t.Capacitor.Plugins[n]; | ||
| if (i === void 0) { | ||
| n(new Error(`Capacitor plugin ${o} not found`)); | ||
| r(new Error(`Capacitor plugin ${n} not found`)); | ||
| return; | ||
| } | ||
| if (typeof i[r] != "function") { | ||
| n(new Error(`Method ${r} not found in Capacitor plugin ${o}`)); | ||
| if (typeof i[o] != "function") { | ||
| r(new Error(`Method ${o} not found in Capacitor plugin ${n}`)); | ||
| return; | ||
@@ -21,6 +21,6 @@ } | ||
| try { | ||
| const a = await i[r](c); | ||
| const a = await i[o](c); | ||
| p(a); | ||
| } catch (a) { | ||
| n(a); | ||
| r(a); | ||
| } | ||
@@ -39,4 +39,4 @@ })(); | ||
| { | ||
| get(e, o) { | ||
| return t.cordova.plugins[o]; | ||
| get(e, n) { | ||
| return t.cordova.plugins[n]; | ||
| } | ||
@@ -46,7 +46,7 @@ } | ||
| } | ||
| function y(t = !1) { | ||
| window.CapacitorUtils = window.CapacitorUtils || {}, window.Capacitor !== void 0 && !t ? s(window) : window.cordova !== void 0 && u(window); | ||
| 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 { | ||
| y as exposeSynapse | ||
| f as exposeSynapse | ||
| }; |
+1
-1
| { | ||
| "name": "@capacitor/synapse", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "main": "./dist/synapse.cjs", | ||
@@ -5,0 +5,0 @@ "module": "./dist/synapse.mjs", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6080
1.11%1
Infinity%