{"_id":"@capacitor/synapse","_rev":"20-20303c7a2af328b12a0bd88647c7ba2c","name":"@capacitor/synapse","dist-tags":{"dev":"1.0.2-dev.1","latest":"1.0.4"},"versions":{"1.0.0":{"name":"@capacitor/synapse","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"@capacitor/synapse@1.0.0","maintainers":[{"name":"vmfo","email":"vitor.oliveira@outsystems.com"},{"name":"dtarnawsky","email":"damian@ionic.io"},{"name":"mark-ionic","email":"mark@ionic.io"},{"name":"itschaced","email":"chace@ionic.io"},{"name":"it_mike_s","email":"mike.summerfeldt@gmail.com"},{"name":"jpender","email":"joey@ionic.io"},{"name":"ionicjs","email":"hi@ionic.io"},{"name":"jcesarmobile","email":"jcesarmobile@gmail.com"}],"dist":{"shasum":"13fd647662d03f92143e7ad554202f7cc062e3f0","tarball":"https://registry.npmjs.org/@capacitor/synapse/-/synapse-1.0.0.tgz","fileCount":6,"integrity":"sha512-XkrRZT4vVApZl8ZV840spZITJXEZCmjSZglwjpZdMf3cz6ToII2UYDSf+/8e5pe8SXDHbcX0G4ZRDTd2dh07rg==","signatures":[{"sig":"MEUCIE7piYwpGAERDBWqVJCHRGbCfnvCMbnpkPPR1+yDnkW+AiEA/0WN8B8n3VImAYk1ySNnZHygVGeuomfbvS5SpXoocQQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5449},"main":"./dist/synapse.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/synapse.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/synapse.mjs","require":"./dist/synapse.cjs"}},"gitHead":"3c10dee5defc7e1bb516b31ef845dfc834322585","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write","lint":"npm run eslint && npm run prettier -- --check","build":"npm run clean && vite build","clean":"rimraf ./dist","eslint":"eslint","prettier":"prettier \"src/**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint"},"_npmUser":{"name":"it_mike_s","email":"mike.summerfeldt@gmail.com"},"_npmVersion":"10.8.1","description":"### Example","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.2.11","eslint":"^8.56.0","prettier":"~3.3.3","@eslint/js":"^8.56.0","typescript":"^5.4.5","vite-plugin-dts":"^3.9.1","@rollup/wasm-node":"~4.19.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/synapse_1.0.0_1732207736883_0.9580269021863022","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@capacitor/synapse","version":"1.0.1","keywords":[],"author":"","license":"ISC","_id":"@capacitor/synapse@1.0.1","maintainers":[{"name":"vmfo","email":"vitor.oliveira@outsystems.com"},{"name":"dtarnawsky","email":"damian@ionic.io"},{"name":"mark-ionic","email":"mark@ionic.io"},{"name":"itschaced","email":"chace@ionic.io"},{"name":"it_mike_s","email":"mike.summerfeldt@gmail.com"},{"name":"jpender","email":"joey@ionic.io"},{"name":"ionicjs","email":"hi@ionic.io"},{"name":"jcesarmobile","email":"jcesarmobile@gmail.com"}],"dist":{"shasum":"8e47582722bbdff39e5d492fafe6e8f645370cee","tarball":"https://registry.npmjs.org/@capacitor/synapse/-/synapse-1.0.1.tgz","fileCount":6,"integrity":"sha512-eLSoIccv6dqJ9GQePlQfHizE91tn9+6Ysj9ZWTi4JwV4OX4As6y505CvEYuM99MiLkdpL+Vcx3jNp8AEeQG5VA==","signatures":[{"sig":"MEUCIQDl4uu4mwzI6mTOP5KeVguN6raSWishfR9rXxRx48H8AQIgd+UxfEEYgz3dD9DdkbFYEYzCxw/ND8nhoVWwWx5MCh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5727},"main":"./dist/synapse.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/synapse.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/synapse.mjs","require":"./dist/synapse.cjs"}},"gitHead":"3c10dee5defc7e1bb516b31ef845dfc834322585","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write","lint":"npm run eslint && npm run prettier -- --check","build":"npm run clean && vite build","clean":"rimraf ./dist","eslint":"eslint","prettier":"prettier \"src/**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint"},"_npmUser":{"name":"it_mike_s","email":"mike.summerfeldt@gmail.com"},"_npmVersion":"10.8.1","description":"### Example","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.2.11","eslint":"^8.56.0","prettier":"~3.3.3","@eslint/js":"^8.56.0","typescript":"^5.4.5","vite-plugin-dts":"^3.9.1","@rollup/wasm-node":"~4.19.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/synapse_1.0.1_1732208649313_0.34846495546502254","host":"s3://npm-registry-packages"}},"1.0.2-dev.1":{"name":"@capacitor/synapse","version":"1.0.2-dev.1","keywords":[],"author":"","license":"ISC","_id":"@capacitor/synapse@1.0.2-dev.1","maintainers":[{"name":"itschaced","email":"chace.daniels@outsystems.com"},{"name":"it_mike_s","email":"mike.summerfeldt@gmail.com"},{"name":"ionicjs","email":"hi@ionic.io"},{"name":"jcesarmobile","email":"jcesarmobile@gmail.com"},{"name":"vmfo","email":"vitor.oliveira@outsystems.com"},{"name":"jpender","email":"joey@ionic.io"},{"name":"dtarnawsky","email":"damian@ionic.io"},{"name":"mark-ionic","email":"mark@ionic.io"},{"name":"alexgerardojacinto","email":"agerardojacinto@gmail.com"},{"name":"os-pedrobilro","email":"pedro.gustavo.bilro@outsystems.com"}],"dist":{"shasum":"4bbd175adeb11ea52c8df7727ee2f410e0bb0352","tarball":"https://registry.npmjs.org/@capacitor/synapse/-/synapse-1.0.2-dev.1.tgz","fileCount":6,"integrity":"sha512-8LRjx5DdpEfZvxDNvlUxValTLuhnTK+VwlYon8l++5+1jMK5rjDmlt2YoA5lgNpbwXcugS8tDQdDEGkBBJ6DDw==","signatures":[{"sig":"MEUCIQDHRKnEJ2uAqplNRKb/CZPJPJHUzG/ubsOPdmWFe1IkQwIgIbUmIJZJnyP0MfqcjNjN4PnMX7zm/0yeh9V0ImoNkMI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6019},"main":"./dist/synapse.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/synapse.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/synapse.mjs","require":"./dist/synapse.cjs"}},"gitHead":"d0d618b3286ee2614b181d8a2d9d5d2f9389c6ac","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write","lint":"npm run eslint && npm run prettier -- --check","build":"npm run clean && vite build","clean":"rimraf ./dist","eslint":"eslint","prettier":"prettier \"src/**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint"},"_npmUser":{"name":"os-pedrobilro","email":"pedro.gustavo.bilro@outsystems.com"},"_npmVersion":"10.9.2","description":"### Example","directories":{},"_nodeVersion":"23.4.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vite":"^5.2.11","eslint":"^8.56.0","prettier":"~3.3.3","@eslint/js":"^8.56.0","typescript":"^5.4.5","vite-plugin-dts":"^3.9.1","@rollup/wasm-node":"~4.19.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/synapse_1.0.2-dev.1_1739540956665_0.7703358234774846","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@capacitor/synapse","version":"1.0.2","keywords":[],"author":"","license":"ISC","_id":"@capacitor/synapse@1.0.2","maintainers":[{"name":"itschaced","email":"chace.daniels@outsystems.com"},{"name":"it_mike_s","email":"mike.summerfeldt@gmail.com"},{"name":"ionicjs","email":"hi@ionic.io"},{"name":"jcesarmobile","email":"jcesarmobile@gmail.com"},{"name":"vmfo","email":"vitor.oliveira@outsystems.com"},{"name":"jpender","email":"joey@ionic.io"},{"name":"dtarnawsky","email":"damian@ionic.io"},{"name":"mark-ionic","email":"mark@ionic.io"},{"name":"alexgerardojacinto","email":"agerardojacinto@gmail.com"},{"name":"os-pedrobilro","email":"pedro.gustavo.bilro@outsystems.com"}],"dist":{"shasum":"0037c3741ba29fcc927bb3546120ec2847fd2221","tarball":"https://registry.npmjs.org/@capacitor/synapse/-/synapse-1.0.2.tgz","fileCount":6,"integrity":"sha512-ynq39s4D2rhk+aVLWKfKfMCz9SHPKijL9tq8aFL5dG7ik7/+PvBHmg9cPHbqdvFEUSMmaGzL6cIjzkOruW7vGA==","signatures":[{"sig":"MEUCIE0pvNineUR1dogsB5Dt7n3jvLsk0c6AE9fjCHUl4qjqAiEAhaMi4X2J1rXiP76+WB2oUlgw6YHQO+N7EDCDEDYoiUc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6013},"main":"./dist/synapse.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/synapse.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/synapse.mjs","require":"./dist/synapse.cjs"}},"gitHead":"a15e6b9e5135e69cbb0a4185a100a435053b60ea","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write","lint":"npm run eslint && npm run prettier -- --check","build":"npm run clean && vite build","clean":"rimraf ./dist","eslint":"eslint","prettier":"prettier \"src/**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint"},"_npmUser":{"name":"os-pedrobilro","email":"pedro.gustavo.bilro@outsystems.com"},"_npmVersion":"10.9.2","description":"### Example","directories":{},"_nodeVersion":"23.4.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.2.11","eslint":"^8.56.0","prettier":"~3.3.3","@eslint/js":"^8.56.0","typescript":"^5.4.5","vite-plugin-dts":"^3.9.1","@rollup/wasm-node":"~4.19.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/synapse_1.0.2_1739984677507_0.7881154660518535","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@capacitor/synapse","version":"1.0.3","keywords":[],"author":"","license":"ISC","_id":"@capacitor/synapse@1.0.3","maintainers":[{"name":"itschaced","email":"chace.daniels@outsystems.com"},{"name":"ionicjs","email":"hi@ionic.io"},{"name":"jcesarmobile","email":"jcesarmobile@gmail.com"},{"name":"vmfo","email":"vitor.oliveira@outsystems.com"},{"name":"jpender","email":"joey@ionic.io"},{"name":"dtarnawsky","email":"damian@ionic.io"},{"name":"mark-ionic","email":"mark@ionic.io"},{"name":"alexgerardojacinto","email":"agerardojacinto@gmail.com"},{"name":"os-pedrobilro","email":"pedro.gustavo.bilro@outsystems.com"},{"name":"harvdoggy","email":"eric.harvey@outsystems.com"},{"name":"jpender-os","email":"joey.pender@outsystems.com"},{"name":"ndr","email":"andre.destro@outsystems.com"},{"name":"kepatoto","email":"kepa.baum.totorica@outsystems.com"}],"dist":{"shasum":"9cb8629dcbae231813c294e30a37f5515a544b94","tarball":"https://registry.npmjs.org/@capacitor/synapse/-/synapse-1.0.3.tgz","fileCount":6,"integrity":"sha512-7gGvuQ1NlSCwnjdIMkry+/meyUxHTnsVodRxOTOerLAoAyvtSnCp1rKyLjt9kCz9Lf7Y/wUbCe+AWbAvfxL5bA==","signatures":[{"sig":"MEUCIGW3PFvDWDUDNndSwrB1xtWhqnDeVFqY/UXzvJoLOVnEAiEAtuoPBc9awTp414OEwAPU8Y0Zu9ooJ+29sfPvQIhV+5o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6080},"main":"./dist/synapse.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/synapse.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/synapse.mjs","require":"./dist/synapse.cjs"}},"gitHead":"8fdb352aa5a1d0458e7eb7c2284d7818a8d051f4","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write","lint":"npm run eslint && npm run prettier -- --check","build":"npm run clean && vite build","clean":"rimraf ./dist","eslint":"eslint","prettier":"prettier \"src/**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint"},"_npmUser":{"name":"itschaced","email":"chace.daniels@outsystems.com"},"_npmVersion":"11.3.0","description":"You have plugins that exist for both Capacitor and Cordova. They share the same API for the most part; as in they both expose a `ping` method that takes a string and returns that string with the word \"_pong\" appeneded to it. You can use synapse to create ","directories":{},"_nodeVersion":"24.1.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.2.11","eslint":"^8.56.0","prettier":"~3.3.3","@eslint/js":"^8.56.0","typescript":"^5.4.5","vite-plugin-dts":"^3.9.1","@rollup/wasm-node":"~4.19.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/synapse_1.0.3_1750087769176_0.7483986216618117","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@capacitor/synapse","version":"1.0.4","keywords":[],"author":"","license":"ISC","_id":"@capacitor/synapse@1.0.4","maintainers":[{"name":"itschaced","email":"chace.daniels@outsystems.com"},{"name":"ionicjs","email":"hi@ionic.io"},{"name":"jcesarmobile","email":"jcesarmobile@gmail.com"},{"name":"vmfo","email":"vitor.oliveira@outsystems.com"},{"name":"jpender","email":"joey@ionic.io"},{"name":"dtarnawsky","email":"damian@ionic.io"},{"name":"mark-ionic","email":"mark@ionic.io"},{"name":"alexgerardojacinto","email":"agerardojacinto@gmail.com"},{"name":"os-pedrobilro","email":"pedro.gustavo.bilro@outsystems.com"},{"name":"harvdoggy","email":"eric.harvey@outsystems.com"},{"name":"jpender-os","email":"joey.pender@outsystems.com"},{"name":"ndr","email":"andre.destro@outsystems.com"},{"name":"kepatoto","email":"kepa.baum.totorica@outsystems.com"},{"name":"rui.mendes","email":"rui.moreira.mendes@outsystems.com"},{"name":"markemer","email":"emer@emer.net"}],"dist":{"shasum":"c6beb33119d9656b1f04cb7783989fb78933ef6d","tarball":"https://registry.npmjs.org/@capacitor/synapse/-/synapse-1.0.4.tgz","fileCount":7,"integrity":"sha512-/C1FUo8/OkKuAT4nCIu/34ny9siNHr9qtFezu4kxm6GY1wNFxrCFWjfYx5C1tUhVGz3fxBABegupkpjXvjCHrw==","signatures":[{"sig":"MEYCIQC1DCRzcLHLL5MYvs6N66oUUtV2IpWKmv1I6f7iUXLFdAIhAL3tpCHS02EBP/yfCgefNPIqtVEFjwaZ34OQlrOVO7SS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7142},"main":"./dist/synapse.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/synapse.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/synapse.mjs","require":"./dist/synapse.cjs"}},"gitHead":"609b3439d5d414fea2e0e475cbf43857e5a76f6e","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write","lint":"npm run eslint && npm run prettier -- --check","build":"npm run clean && vite build","clean":"rimraf ./dist","eslint":"eslint","prettier":"prettier \"src/**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint"},"_npmUser":{"name":"os-pedrobilro","email":"pedro.gustavo.bilro@outsystems.com"},"_npmVersion":"10.9.2","description":"### Example","directories":{},"_nodeVersion":"23.4.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.2.11","eslint":"^8.56.0","prettier":"~3.3.3","@eslint/js":"^8.56.0","typescript":"^5.4.5","vite-plugin-dts":"^3.9.1","@rollup/wasm-node":"~4.19.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/synapse_1.0.4_1752245155723_0.29364268151314854","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-11-21T16:48:56.799Z","modified":"2026-09-28T18:17:41.091Z","1.0.0":"2024-11-21T16:48:57.075Z","1.0.1":"2024-11-21T17:04:09.570Z","1.0.2-dev.1":"2025-02-14T13:49:16.849Z","1.0.2":"2025-02-19T17:04:37.682Z","1.0.3":"2025-06-16T15:29:29.422Z","1.0.4":"2025-07-11T14:45:55.911Z"},"license":"ISC","keywords":[],"description":"### Example","maintainers":[{"email":"chace.daniels@outsystems.com","name":"itschaced"},{"email":"hi@ionic.io","name":"ionicjs"},{"email":"jcesarmobile@gmail.com","name":"jcesarmobile"},{"email":"vitor.oliveira@outsystems.com","name":"vmfo"},{"email":"joey@ionic.io","name":"jpender"},{"email":"mark@ionic.io","name":"mark-ionic"},{"email":"chuckynes@gmail.com","name":"chuckytuh"},{"email":"nuno.azevedo@outsystems.com","name":"nuno.azevedo-outsystems"},{"email":"trevorlambert11@gmail.com","name":"trevorlambert"},{"email":"agerardojacinto@gmail.com","name":"alexgerardojacinto"},{"email":"pedro.gustavo.bilro@outsystems.com","name":"os-pedrobilro"},{"email":"eric.harvey@outsystems.com","name":"harvdoggy"},{"email":"joey.pender@outsystems.com","name":"jpender-os"},{"email":"andre.destro@outsystems.com","name":"ndr"},{"email":"kepa.baum.totorica@outsystems.com","name":"kepatoto"},{"email":"rui.moreira.mendes@outsystems.com","name":"rui.mendes"},{"email":"emer@emer.net","name":"markemer"},{"email":"ossplugins@outsystems.com","name":"capacitor-plugin-bot"},{"email":"horodyski@ionic.io","name":"eric-ionic"},{"email":"rui.alves@outsystems.com","name":"os-ruialves"}],"readme":"# Synapse\n\n### Example\n\nYou have plugins that exist for both Capacitor and Cordova. They share the same API for the most part; as in they both expose a `ping` method that takes a string and returns that string with the word \"_pong\" appeneded to it. You can use synapse to create a single call in ODC that will use which ever plugin is available to the built app. Adding this to your plugins does not alter their ability to be used in the normal fashion they would be directly in a Capacitor or Cordova app.\n\n#### Capacitor Usage of MyPlugin\n```javascript\nimport { MyPlugin } from 'capacitor-my-plugin';\n...\nasync function buttonClick() {\n  try {\n    const resp = await MyPlugin.ping({text: \"Hello World\"});\n    console.log(resp); // \"Hello World_pong\"\n  } catch (error) {\n    console.error(error);\n  }\n}\n```\n\n#### Cordova Usage of MyPlugin\n```javascript\nfunction buttonClick() {\n  window.cordova.plugins.MyPlugin.ping(\n    {text: \"Hello World\"},\n    function(response) {\n      console.log(response); // \"Hello World_pong\"\n    },\n    function(error) {\n      console.error(error);\n    }\n  )\n}\n```\n\n#### Synapse Usage of MyPlugin\n\n```javascript\nfunction buttonClick() {\n  window.CapacitorUtils.Synapse.MyPlugin.ping(\n    {text: \"Hello World\"},\n    function(response) {\n      console.log(response); // \"Hello World_pong\"\n    },\n    function(error) {\n      console.error(error);\n    }\n  )\n}\n```\n\nWhile similar to the way you call cordova plugins, the synapse call will use the appropriate plugin for the platform it is running on. If the app is built with Capacitor, it will use the Capacitor plugin. If the app is built with Cordova, it will use the Cordova plugin.","readmeFilename":"README.md"}