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.75003779 to 2.5.75003780

2

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

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

@@ -21,8 +21,9 @@ const Mutation = require('../../mutation');

visit({
BinaryOperation: (node) => {
const processNode = (node) => {
// Visita i nodi BinaryOperation
if (node.type === 'BinaryOperation' && node.operator === '=' && node.right.type === 'FunctionCall') {
const start = node.range[0];
const end = node.range[1] + 1;
if (start >= functionStart && end <= functionEnd && node.operator === '=' && node.right.type === 'FunctionCall') {
if (start >= functionStart && end <= functionEnd) {
// Rimuovi l'assegnazione dall'originale

@@ -37,4 +38,12 @@ const original = source.slice(start, end);

}
});
// Visita i corpi dei blocchi
if (node.type === 'Block') {
node.statements.forEach(processNode);
}
};
// Processa il corpo della funzione
processNode(functionNode.body);
// Se sono state fatte modifiche, crea una mutazione per l'intera funzione

@@ -55,2 +64,2 @@ if (hasMutations) {

module.exports = UROperator;
module.exports = UROperator;
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