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

@atlaspack/babel-preset-env

Package Overview
Dependencies
Maintainers
0
Versions
302
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/babel-preset-env - npm Package Compare versions

Comparing version 2.12.1-canary.3366 to 2.12.1-canary.3367

2

lib/index.js

@@ -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,

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