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

estree-to-babel

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

estree-to-babel - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0

lib/set-class-private-name.js

9

lib/estree-to-babel.js

@@ -12,2 +12,5 @@ 'use strict';

const setClassPrivateMethod = require('./set-class-private-method');
const setClassPrivateProperty = require('./set-class-private-property');
const setClassPrivateName = require('./set-class-private-name');
const setLiteral = require('./set-literal');

@@ -36,2 +39,8 @@ const getAST = require('./get-ast');

return setClassPrivateMethod(path);
if (type === 'FieldDefinition')
return setClassPrivateProperty(path);
if (type === 'PrivateName')
return setClassPrivateName(path);
},

@@ -38,0 +47,0 @@ exit(path) {

8

package.json
{
"name": "estree-to-babel",
"version": "2.0.5",
"version": "2.1.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -34,6 +34,8 @@ "description": "convert estree ast to babel",

"@babel/parser": "^7.3.1",
"acorn": "^7.0.0",
"acorn-stage3": "^2.0.0",
"coveralls": "^3.0.0",
"eslint": "^6.0.1",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-putout": "^1.9.1",
"eslint-plugin-putout": "^2.0.0",
"espree": "^6.0.0",

@@ -43,3 +45,3 @@ "madrun": "^2.0.1",

"nyc": "^14.1.1",
"putout": "^4.0.1",
"putout": "^5.7.1",
"supertape": "^1.0.3"

@@ -46,0 +48,0 @@ },

@@ -34,3 +34,4 @@ # Estree-to-babel [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]

- `ClassPrivateMethod`
- Convert `use strict` Literal into `Directive` and put it into `program.body.directives`
- `ClassPrivateName` stores name as `Identifier` in `id` field;
- `ClassPrivateProperty` instead of `FieldDefinition`;
- etc...

@@ -37,0 +38,0 @@

Sorry, the diff of this file is not supported yet

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