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

rollup-plugin-terser

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-terser - npm Package Compare versions

Comparing version 6.1.0 to 7.0.0

16

package.json
{
"name": "rollup-plugin-terser",
"version": "6.1.0",
"version": "7.0.0",
"description": "Rollup plugin to minify generated es bundle",

@@ -35,6 +35,6 @@ "type": "commonjs",

"dependencies": {
"@babel/code-frame": "^7.8.3",
"jest-worker": "^26.0.0",
"serialize-javascript": "^3.0.0",
"terser": "^4.7.0"
"@babel/code-frame": "^7.10.4",
"jest-worker": "^26.2.1",
"serialize-javascript": "^4.0.0",
"terser": "^5.0.0"
},

@@ -45,7 +45,7 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.9.6",
"jest": "^26.0.1",
"@babel/core": "^7.11.1",
"jest": "^26.2.2",
"prettier": "^2.0.5",
"rollup": "^2.10.8"
"rollup": "^2.23.1"
}
}

@@ -5,10 +5,5 @@ const { minify } = require("terser");

const options = eval(`(${optionsString})`);
const result = minify(code, options);
if (result.error) {
throw result.error;
} else {
return { result, nameCache: options.nameCache };
}
return minify(code, options).then(result => ({ result, nameCache: options.nameCache }));
};
exports.transform = transform;
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