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

lebab

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lebab - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

12

lib/Transformer.js

@@ -74,3 +74,5 @@ 'use strict';

return _recast2.default.print(ast).code;
return _recast2.default.print(ast, {
lineTerminator: _this.detectLineTerminator(code)
}).code;
});

@@ -95,2 +97,10 @@ }

}
}, {
key: 'detectLineTerminator',
value: function detectLineTerminator(code) {
var hasCRLF = /\r\n/.test(code);
var hasLF = /[^\r]\n/.test(code);
return hasCRLF && !hasLF ? '\r\n' : '\n';
}
}]);

@@ -97,0 +107,0 @@

2

package.json
{
"name": "lebab",
"version": "2.3.2",
"version": "2.3.3",
"description": "Turn your ES5 code into readable ES6/ES7",

@@ -5,0 +5,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