
Security News
minimatch Patches 3 High-Severity ReDoS Vulnerabilities
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.
@capacitor/synapse
Advanced tools
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 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.
import { MyPlugin } from 'capacitor-my-plugin';
...
async function buttonClick() {
try {
const resp = await MyPlugin.ping({text: "Hello World"});
console.log(resp); // "Hello World_pong"
} catch (error) {
console.error(error);
}
}
function buttonClick() {
window.cordova.plugins.MyPlugin.ping(
{text: "Hello World"},
function(response) {
console.log(response); // "Hello World_pong"
},
function(error) {
console.error(error);
}
)
}
function buttonClick() {
window.CapacitorUtils.Synapse.MyPlugin.ping(
{text: "Hello World"},
function(response) {
console.log(response); // "Hello World_pong"
},
function(error) {
console.error(error);
}
)
}
While 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.
FAQs
### Example
The npm package @capacitor/synapse receives a total of 48,729 weekly downloads. As such, @capacitor/synapse popularity was classified as popular.
We found that @capacitor/synapse demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.

Research
/Security News
Socket uncovered 26 malicious npm packages tied to North Korea's Contagious Interview campaign, retrieving a live 9-module infostealer and RAT from the adversary's C2.

Research
An impersonated golang.org/x/crypto clone exfiltrates passwords, executes a remote shell stager, and delivers a Rekoobe backdoor on Linux.