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

restringer

Package Overview
Dependencies
Maintainers
1
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.4.2 to 1.4.3

2

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

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

@@ -22,7 +22,6 @@ const areReferencesModified = require(__dirname + '/../utils/areReferencesModified');

const refs = c.id.references || [];
// Remove proxy assignments if there are no further proxies assigned
if (!refs.find(n => ['right', 'init'].includes(n.parentKey) &&
['AssignmentExpression', 'VariableDeclarator'].includes(n.parentNode.type))) arb.markNode(c);
if (areReferencesModified(arb.ast, refs)) continue;
for (const ref of refs) {
// Remove proxy assignments if there are no more references
if (!refs.length) arb.markNode(c);
else if (areReferencesModified(arb.ast, refs)) continue;
else for (const ref of refs) {
arb.markNode(ref, c.init);

@@ -29,0 +28,0 @@ }

@@ -207,3 +207,3 @@ module.exports = [

source: 'const a = ["hello"], b = a[0], c = b; console.log(c);',
expected: `const a = ['hello'], b = 'hello';\nconsole.log('hello');`,
expected: `const a = ['hello'], b = 'hello', c = 'hello';\nconsole.log('hello');`,
},

@@ -210,0 +210,0 @@ {

@@ -316,2 +316,3 @@ const {generateFlatAST} = require('flast');

enabled: true,
looped: true,
name: 'resolveProxyVariables - TP-1',

@@ -324,2 +325,3 @@ func: __dirname + '/../src/modules/safe/resolveProxyVariables',

enabled: true,
looped: true,
name: 'resolveProxyVariables - TP-2',

@@ -326,0 +328,0 @@ func: __dirname + '/../src/modules/safe/resolveProxyVariables',

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