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

@parcel/transformer-js

Package Overview
Dependencies
Maintainers
1
Versions
895
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/transformer-js - npm Package Compare versions

Comparing version 2.0.0-nightly.142 to 2.0.0-nightly.143

8

lib/JSTransformer.js

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

var walk = _interopRequireWildcard(require("babylon-walk"));
var _babylonWalk = require("@parcel/babylon-walk");

@@ -108,3 +108,3 @@ var babelCore = _interopRequireWildcard(require("@babel/core"));

if (!asset.env.isNode() && (ast.isDirty || ENV_RE.test(code)) || asset.env.isBrowser() && (ast.isDirty || BROWSER_RE.test(code))) {
walk.ancestor(ast.program, _process.default, {
(0, _babylonWalk.ancestor)(ast.program, _process.default, {
asset,

@@ -119,3 +119,3 @@ env: options.env,

if (canHaveDependencies(code) || ast.isDirty) {
walk.ancestor(ast.program, _dependencies.default, {
(0, _babylonWalk.ancestor)(ast.program, _dependencies.default, {
asset,

@@ -155,3 +155,3 @@ options

asset.meta.globals = new Map();
walk.ancestor(ast.program, _globals.default, asset);
(0, _babylonWalk.ancestor)(ast.program, _globals.default, asset);
}

@@ -158,0 +158,0 @@ }

{
"name": "@parcel/transformer-js",
"version": "2.0.0-nightly.142+c87c29dd",
"version": "2.0.0-nightly.143+6c1b47da",
"license": "MIT",

@@ -26,11 +26,11 @@ "publishConfig": {

"@babel/types": "^7.0.0",
"@parcel/plugin": "2.0.0-nightly.142+c87c29dd",
"@parcel/scope-hoisting": "2.0.0-nightly.142+c87c29dd",
"@parcel/source-map": "2.0.0-nightly.142+c87c29dd",
"@parcel/utils": "2.0.0-nightly.142+c87c29dd",
"babylon-walk": "^1.0.2",
"@parcel/babylon-walk": "2.0.0-nightly.1765+6c1b47da",
"@parcel/plugin": "2.0.0-nightly.143+6c1b47da",
"@parcel/scope-hoisting": "2.0.0-nightly.143+6c1b47da",
"@parcel/source-map": "2.0.0-nightly.143+6c1b47da",
"@parcel/utils": "2.0.0-nightly.143+6c1b47da",
"nullthrows": "^1.1.1",
"semver": "^5.4.1"
},
"gitHead": "c87c29dd9ca09832e9677bb4d914d2e64bb2d5b8"
"gitHead": "6c1b47dae095e87888308e26f35ec57aa823ec82"
}

@@ -12,3 +12,3 @@ // @flow

import traverse from '@babel/traverse';
import * as walk from 'babylon-walk';
import {ancestor as walkAncestor} from '@parcel/babylon-walk';
import * as babelCore from '@babel/core';

@@ -91,3 +91,3 @@ import {hoist} from '@parcel/scope-hoisting';

) {
walk.ancestor(ast.program, processVisitor, {
walkAncestor(ast.program, processVisitor, {
asset,

@@ -102,3 +102,3 @@ env: options.env,

if (canHaveDependencies(code) || ast.isDirty) {
walk.ancestor(ast.program, collectDependencies, {asset, options});
walkAncestor(ast.program, collectDependencies, {asset, options});
}

@@ -137,3 +137,3 @@

asset.meta.globals = new Map();
walk.ancestor(ast.program, insertGlobals, asset);
walkAncestor(ast.program, insertGlobals, asset);
}

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