@atlaspack/babel-preset-env
Advanced tools
Comparing version 2.12.1-canary.3366 to 2.12.1-canary.3367
@@ -8,3 +8,3 @@ "use strict"; | ||
let version = api.caller(caller => caller && caller.version); | ||
if (name === 'atlaspack' && typeof version === 'string' && semver.satisfies(version, COMPATIBLE_ATLASPACK_BABEL_TRANSFORMER_SEMVER)) { | ||
if (name === 'parcel' && typeof version === 'string' && semver.satisfies(version, COMPATIBLE_ATLASPACK_BABEL_TRANSFORMER_SEMVER)) { | ||
let targets = api.caller(caller => caller && caller.targets); | ||
@@ -11,0 +11,0 @@ if (typeof targets !== 'string') { |
{ | ||
"name": "@atlaspack/babel-preset-env", | ||
"version": "2.12.1-canary.3366+4100cb64c", | ||
"version": "2.12.1-canary.3367+815758ba7", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "4100cb64ca5e666092cee90af18f4124c15292fa" | ||
"gitHead": "815758ba750fdf03c404e4ab67e0930acc51404a" | ||
} |
@@ -5,3 +5,3 @@ const semver = require('semver'); | ||
module.exports = function atlaspackBabelPresetEnv(api, opts) { | ||
module.exports = function parcelBabelPresetEnv(api, opts) { | ||
let name = api.caller(caller => caller && caller.name); | ||
@@ -11,3 +11,3 @@ let version = api.caller(caller => caller && caller.version); | ||
if ( | ||
name === 'atlaspack' && | ||
name === 'parcel' && | ||
typeof version === 'string' && | ||
@@ -14,0 +14,0 @@ semver.satisfies(version, COMPATIBLE_ATLASPACK_BABEL_TRANSFORMER_SEMVER) |
@@ -25,3 +25,3 @@ // @flow | ||
describe('@atlaspack/babel-preset-env', () => { | ||
it('compiles against targets passed through caller when the caller is atlaspack 2.x', () => { | ||
it('compiles against targets passed through caller when the caller is parcel 2.x', () => { | ||
let {code: transformed} = babel.transformSync(input, { | ||
@@ -31,3 +31,3 @@ configFile: false, | ||
caller: { | ||
name: 'atlaspack', | ||
name: 'parcel', | ||
version: '2.0.0', | ||
@@ -45,3 +45,3 @@ targets: JSON.stringify({ | ||
it('does not compile against targets passed through caller when the caller is not atlaspack', () => { | ||
it('does not compile against targets passed through caller when the caller is not parcel', () => { | ||
let {code: transformed} = babel.transformSync(input, { | ||
@@ -48,0 +48,0 @@ configFile: false, |
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
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
15829