@parcel/transformer-js
Advanced tools
Comparing version 2.0.0-nightly.142 to 2.0.0-nightly.143
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
64542
- Removedbabylon-walk@^1.0.2
- Removedbabel-runtime@6.26.0(transitive)
- Removedbabel-types@6.26.0(transitive)
- Removedbabylon-walk@1.0.2(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedesutils@2.0.3(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash.clone@4.5.0(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedto-fast-properties@1.0.3(transitive)