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

babel-generator

Package Overview
Dependencies
Maintainers
6
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-generator - npm Package Compare versions

Comparing version 6.24.0 to 6.24.1

8

lib/index.js

@@ -128,3 +128,3 @@ "use strict";

var occurences = {
var occurrences = {
single: 0,

@@ -142,5 +142,5 @@ double: 0

if (raw[0] === "'") {
occurences.single++;
occurrences.single++;
} else {
occurences.double++;
occurrences.double++;
}

@@ -151,3 +151,3 @@

}
if (occurences.single > occurences.double) {
if (occurrences.single > occurrences.double) {
return "single";

@@ -154,0 +154,0 @@ } else {

{
"name": "babel-generator",
"version": "6.24.0",
"version": "6.24.1",
"description": "Turns an AST into code.",

@@ -16,3 +16,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"babel-runtime": "^6.22.0",
"babel-types": "^6.23.0",
"babel-types": "^6.24.1",
"detect-indent": "^4.0.0",

@@ -19,0 +19,0 @@ "jsesc": "^1.3.0",

@@ -42,2 +42,3 @@ # babel-generator

jsonCompatibleStrings | boolean | `false` | Set to true to run `jsesc` with "json": true to print "\u00A9" vs. "©";
Options for source maps:

@@ -44,0 +45,0 @@

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