dejavu-optimizer
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
831
35883