Socket
Socket
Sign inDemoInstall

terser-webpack-plugin

Package Overview
Dependencies
304
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.1.2

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [2.1.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.1...v2.1.2) (2019-09-28)
### Bug Fixes
* regexp for `some` comments ([#168](https://github.com/webpack-contrib/terser-webpack-plugin/issues/168)) ([4c4b1f1](https://github.com/webpack-contrib/terser-webpack-plugin/commit/4c4b1f1))
### [2.1.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.0...v2.1.1) (2019-09-27)

@@ -7,0 +14,0 @@

3

dist/minify.js

@@ -74,3 +74,2 @@ "use strict";

// Preserve using "commentsOpts" or "some"
// Todo remove this in next major release
condition.preserve = typeof commentsOpts !== 'undefined' ? commentsOpts : 'some';

@@ -102,3 +101,3 @@ condition.extract = false;

condition[key] = (astNode, comment) => {
return comment.type === 'comment2' && /^\**!|@preserve|@license|@cc_on/i.test(comment.value);
return comment.type === 'comment2' && /@preserve|@lic|@cc_on|^\**!/i.test(comment.value);
};

@@ -105,0 +104,0 @@

{
"name": "terser-webpack-plugin",
"version": "2.1.1",
"version": "2.1.2",
"description": "Terser plugin for webpack",

@@ -46,3 +46,3 @@ "license": "MIT",

"source-map": "^0.6.1",
"terser": "^4.3.3",
"terser": "^4.3.4",
"webpack-sources": "^1.4.3"

@@ -66,3 +66,3 @@ },

"eslint-plugin-import": "^2.18.2",
"husky": "^3.0.5",
"husky": "^3.0.7",
"jest": "^24.9.0",

@@ -69,0 +69,0 @@ "jest-junit": "^8.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc