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

dejavu-optimizer

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dejavu-optimizer - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

6

lib/Optimizer.js

@@ -278,6 +278,6 @@ 'use strict';

code = code.replace(/(_*this|_*that|_*thus|_*self)((?:\r|\n|\s)*)\.((?:\r|\n|\s)*)\$super\(/g, currParent + '$2.prototype.$3' + funcName + '.call($1, ')
.replace(/(_*this|_*that|_*thus|_*self)((?:\r|\n|\s)*)\.((?:\r|\n|\s)*)\$super\./g, currParent + '$2.prototype.$3' + funcName + '.');
.replace(/(_*this|_*that|_*thus|_*self)((?:\r|\n|\s)*)\.((?:\r|\n|\s)*)\$super/g, currParent + '$2.prototype.$3' + funcName);
} else {
code = code.replace(/(_*this|_*that|_*thus|_*self)((?:\r|\n|\s)*)\.((?:\r|\n|\s)*)\$super\(/g, currParent + '$2.$3' + funcName + '.call($1, ')
.replace(/(_*this|_*that|_*thus|_*self)((?:\r|\n|\s)*)\.((?:\r|\n|\s)*)\$super\./g, currParent + '$2.$3' + funcName + '.');
.replace(/(_*this|_*that|_*thus|_*self)((?:\r|\n|\s)*)\.((?:\r|\n|\s)*)\$super/g, currParent + '$2.$3' + funcName);
}

@@ -346,2 +346,2 @@ code = code.replace(/(_*this|_*that|_*thus|_*self), \)/g, '$1)');

module.exports = Optimizer;
module.exports = Optimizer;

@@ -161,3 +161,3 @@ 'use strict';

.replace(/(_*this|_*that|_*thus|_*self), \)/g, '$1)')
.replace(/(_*this|_*that|_*thus|_*self)((?:\r|\n|\s)*)?\.((?:\r|\n|\s)*)\$super\./g, '$super$2.$3' + funcName + '.');
.replace(/(_*this|_*that|_*thus|_*self)((?:\r|\n|\s)*)?\.((?:\r|\n|\s)*)\$super/g, '$super$2.$3' + funcName);

@@ -164,0 +164,0 @@ // If on static context, $super is actually $parent

@@ -13,3 +13,3 @@ {

],
"version": "0.4.1",
"version": "0.4.2",
"author": "IndigoUnited <hello@indigounited.com> (http://indigounited.com)",

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

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