Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

restringer

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restringer - npm Package Compare versions

Comparing version 1.6.4 to 1.6.5

2

package.json
{
"name": "restringer",
"version": "1.6.4",
"version": "1.6.5",
"description": "Deobfuscate Javascript with emphasis on reconstructing strings",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -69,3 +69,3 @@ const {VM} = require('vm2');

const res2 = (new VM(vmOptions)).run(stringToEval);
assert.deepEqual(res, res2);
assert.deepEqual(res.toString(), res2.toString());
cache[cacheName] = createNewNode(res);

@@ -72,0 +72,0 @@ }

@@ -70,2 +70,6 @@ const evalInVm = require(__dirname + '/evalInVm');

if (newNode !== badValue && newNode.type !== 'FunctionDeclaration' && newNode.name !== 'undefined') {
// Prevent resolving a function's toString as it might be an anti-debugging mechanism
// which will spring if the code is beautified
if (c.callee.type === 'MemberExpression' && (c.callee.property?.name || c.callee.property?.value) === 'toString' &&
(new RegExp('^function ')).test(newNode?.value)) continue;
arb.markNode(c, newNode);

@@ -72,0 +76,0 @@ modifiedRanges.push(c.range);

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