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

borschik

Package Overview
Dependencies
Maintainers
11
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

borschik - npm Package Compare versions

Comparing version 1.7.1 to 2.0.0

15

CHANGELOG.md

@@ -0,1 +1,16 @@

# 2.0.0
* Switch to `uglify-es` to support ES6 (@stochastical [#141]).
# 1.7.1
* Fixed path processing in Windows (@raulleo [#139]).
### Dependencies
* `uglify-js` updated to `2.8.29`
* `coa` updated to `1.0.3`
* `minimatch` updated to `3.0.4`
* `vow` updated to `0.4.16`
# 1.7.0

@@ -2,0 +17,0 @@

@@ -0,1 +1,16 @@

# 2.0.0
* `uglify-js` заменен на `uglify-es` для поддержки ES6 (@stochastical [#141]).
# 1.7.1
* Исправлена ошибка с формированием путей в Windows (@raulleo [#139]).
### Зависимости
* `uglify-js` обновлён до `2.8.29`
* `coa` обновлён до `1.0.3`
* `minimatch` обновлён до `3.0.4`
* `vow` обновлён до `0.4.16`
# 1.7.0

@@ -2,0 +17,0 @@

10

lib/techs/js.js

@@ -9,10 +9,12 @@ var fs = require('fs');

minimize: function(content) {
var UglifyJS = require('uglify-js');
var UglifyJS = require('uglify-es');
try {
var uglifyOptions = this.opts.techOptions.uglify || {};
// redefine fromString
uglifyOptions.fromString = true;
return UglifyJS.minify(content, uglifyOptions).code;
var res = UglifyJS.minify(content, uglifyOptions);
if (res.error) throw res.error;
return res.code;
} catch(e) {

@@ -19,0 +21,0 @@ // create better error message

4

package.json
{
"name": "borschik",
"description": "Extendable builder for text-based file formats",
"version": "1.7.1",
"version": "2.0.0",
"homepage": "http://github.com/borschik/borschik",

@@ -23,3 +23,3 @@ "author": "Sergey Berezhnoy <veged@ya.ru> (http://github.com/veged)",

"minimatch": "3.0.4",
"uglify-js": "2.8.29",
"uglify-es": "^3.0.22",
"vow": "0.4.16",

@@ -26,0 +26,0 @@ "vow-fs": "0.3.6"

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