New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ggflutter/sumo

Package Overview
Dependencies
Maintainers
0
Versions
740
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ggflutter/sumo - npm Package Compare versions

Comparing version 2.5.75003802 to 2.5.75003803

2

package.json
{
"author": "Luigi Allocca",
"name": "@ggflutter/sumo",
"version": "2.5.75003802",
"version": "2.5.75003803",
"description": "A mutation testing tool for Ethereum smart contracts",

@@ -6,0 +6,0 @@ "repository": {

@@ -98,7 +98,11 @@ const Mutation = require('../../mutation');

let cleanedOriginal = original.replace(/\bthrow;\b/g, "").replace(/\brevert;\b/g, "").trim();
let cleanedOriginal = original
.replace(/\bthrow;\b/g, "") // Rimuove `throw;`
.replace(/\brevert;\b/g, "") // Rimuove `revert;`
.trim();
if (hasBraces) {
// Se ci sono le parentesi graffe, modifica normalmente
mutatedString = `if (true) { ${callExpression}; ${cleanedOriginal.slice(original.indexOf("{") + 1, cleanedOriginal.lastIndexOf("}") + 1).trim()}`;
const insideBraces = cleanedOriginal.slice(original.indexOf("{") + 1, original.lastIndexOf("}") + 1).trim();
// Verifica che il contenuto tra parentesi graffe sia correttamente modificato
mutatedString = `if (true) { ${callExpression}; ${insideBraces} }`;
if (hasElse) {

@@ -105,0 +109,0 @@ mutatedString += "}"; // Aggiungi la graffa solo se non c'è un `else`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc