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

babel-jest

Package Overview
Dependencies
Maintainers
6
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-jest - npm Package Compare versions

Comparing version 28.1.3 to 29.0.0-alpha.0

47

build/index.js

@@ -228,6 +228,3 @@ 'use strict';

const createTransformer = userOptions => {
var _inputOptions$plugins, _inputOptions$presets;
const inputOptions =
userOptions !== null && userOptions !== void 0 ? userOptions : {};
const inputOptions = userOptions ?? {};
const options = {

@@ -244,12 +241,4 @@ ...inputOptions,

compact: false,
plugins:
(_inputOptions$plugins = inputOptions.plugins) !== null &&
_inputOptions$plugins !== void 0
? _inputOptions$plugins
: [],
presets: ((_inputOptions$presets = inputOptions.presets) !== null &&
_inputOptions$presets !== void 0
? _inputOptions$presets
: []
).concat(jestPresetPath),
plugins: inputOptions.plugins ?? [],
presets: (inputOptions.presets ?? []).concat(jestPresetPath),
sourceMaps: 'both'

@@ -259,7 +248,2 @@ };

function mergeBabelTransformOptions(filename, transformOptions) {
var _transformOptions$sup,
_transformOptions$sup2,
_transformOptions$sup3,
_transformOptions$sup4;
const {cwd, rootDir} = transformOptions.config; // `cwd` and `root` first to allow incoming options to override it

@@ -274,22 +258,13 @@

supportsDynamicImport:
(_transformOptions$sup = transformOptions.supportsDynamicImport) !==
null && _transformOptions$sup !== void 0
? _transformOptions$sup
: options.caller.supportsDynamicImport,
transformOptions.supportsDynamicImport ??
options.caller.supportsDynamicImport,
supportsExportNamespaceFrom:
(_transformOptions$sup2 =
transformOptions.supportsExportNamespaceFrom) !== null &&
_transformOptions$sup2 !== void 0
? _transformOptions$sup2
: options.caller.supportsExportNamespaceFrom,
transformOptions.supportsExportNamespaceFrom ??
options.caller.supportsExportNamespaceFrom,
supportsStaticESM:
(_transformOptions$sup3 = transformOptions.supportsStaticESM) !==
null && _transformOptions$sup3 !== void 0
? _transformOptions$sup3
: options.caller.supportsStaticESM,
transformOptions.supportsStaticESM ??
options.caller.supportsStaticESM,
supportsTopLevelAwait:
(_transformOptions$sup4 = transformOptions.supportsTopLevelAwait) !==
null && _transformOptions$sup4 !== void 0
? _transformOptions$sup4
: options.caller.supportsTopLevelAwait
transformOptions.supportsTopLevelAwait ??
options.caller.supportsTopLevelAwait
},

@@ -296,0 +271,0 @@ filename

{
"name": "babel-jest",
"description": "Jest plugin to use babel for transformation.",
"version": "28.1.3",
"version": "29.0.0-alpha.0",
"repository": {

@@ -21,6 +21,6 @@ "type": "git",

"dependencies": {
"@jest/transform": "^28.1.3",
"@jest/transform": "^29.0.0-alpha.0",
"@types/babel__core": "^7.1.14",
"babel-plugin-istanbul": "^6.1.1",
"babel-preset-jest": "^28.1.3",
"babel-preset-jest": "^29.0.0-alpha.0",
"chalk": "^4.0.0",

@@ -32,3 +32,3 @@ "graceful-fs": "^4.2.9",

"@babel/core": "^7.11.6",
"@jest/test-utils": "^28.1.3",
"@jest/test-utils": "^29.0.0-alpha.0",
"@types/graceful-fs": "^4.1.3"

@@ -40,3 +40,3 @@ },

"engines": {
"node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0"
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
},

@@ -46,3 +46,3 @@ "publishConfig": {

},
"gitHead": "2cce069800dab3fc8ca7c469b32d2e2b2f7e2bb1"
"gitHead": "6862afb00307b52f32eedee977a9b3041355f184"
}
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