New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@parcel/babel-ast-utils

Package Overview
Dependencies
Maintainers
1
Versions
379
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/babel-ast-utils - npm Package Compare versions

Comparing version 2.0.0-nightly.2377 to 2.0.0-nightly.2380

32

lib/index.js

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

get: function () {
return _babelErrorUtils().babelErrorEnhancer;
return _babelErrorUtils.babelErrorEnhancer;
}

@@ -69,12 +69,4 @@ });

function _babelErrorUtils() {
const data = require("./babelErrorUtils");
var _babelErrorUtils = require("./babelErrorUtils");
_babelErrorUtils = function () {
return data;
};
return data;
}
function _astring() {

@@ -90,12 +82,4 @@ const data = require("astring");

function _generator() {
const data = require("./generator");
var _generator = require("./generator");
_generator = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -161,3 +145,3 @@

} catch (e) {
throw await (0, _babelErrorUtils().babelErrorEnhancer)(e, asset);
throw await (0, _babelErrorUtils.babelErrorEnhancer)(e, asset);
}

@@ -177,4 +161,4 @@ } // astring is ~50x faster than @babel/generator. We use it with a custom

let generated = (0, _astring().generate)(ast.program, {
generator: _generator().generator,
expressionsPrecedence: _generator().expressionsPrecedence,
generator: _generator.generator,
expressionsPrecedence: _generator.expressionsPrecedence,
comments: true,

@@ -243,3 +227,3 @@ sourceMap: sourceMaps ? {

function convertBabelLoc(loc) {
function convertBabelLoc(options, loc) {
if (!loc) return null;

@@ -253,3 +237,3 @@ let {

return {
filePath: _path().default.normalize(filename),
filePath: _path().default.resolve(options.projectRoot, filename),
start: {

@@ -256,0 +240,0 @@ line: start.line,

{
"name": "@parcel/babel-ast-utils",
"version": "2.0.0-nightly.2377+79923ce5",
"version": "2.0.0-nightly.2380+ba548ef0",
"description": "Blazing fast, zero configuration web application bundler",

@@ -24,8 +24,8 @@ "license": "MIT",

"@babel/parser": "^7.0.0",
"@parcel/babylon-walk": "2.0.0-nightly.2377+79923ce5",
"@parcel/source-map": "2.0.0-rc.4",
"@parcel/utils": "2.0.0-nightly.755+79923ce5",
"@parcel/babylon-walk": "2.0.0-nightly.2380+ba548ef0",
"@parcel/source-map": "2.0.0-rc.5",
"@parcel/utils": "2.0.0-nightly.758+ba548ef0",
"astring": "^1.6.2"
},
"gitHead": "79923ce52238f293c1dfec60f152996c73461c4c"
"gitHead": "ba548ef0165e105565d31a87647edda999fbfb75"
}

@@ -175,3 +175,6 @@ // @flow strict-local

export function convertBabelLoc(loc: ?BabelSourceLocation): ?SourceLocation {
export function convertBabelLoc(
options: PluginOptions,
loc: ?BabelSourceLocation,
): ?SourceLocation {
if (!loc) return null;

@@ -181,3 +184,3 @@ let {filename, start, end} = loc;

return {
filePath: path.normalize(filename),
filePath: path.resolve(options.projectRoot, filename),
start: {

@@ -184,0 +187,0 @@ line: start.line,

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