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

@jest/transform

Package Overview
Dependencies
Maintainers
6
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/transform - npm Package Compare versions

Comparing version 29.6.2 to 29.6.3

22

build/ScriptTransformer.js

@@ -441,3 +441,3 @@ 'use strict';

const transformPath = this._getTransformPath(filename);
invariant(transformPath);
(0, _jestUtil().invariant)(transformPath);
throw new Error(

@@ -453,3 +453,3 @@ (0, _runtimeErrorsAndWarnings.makeInvalidReturnValueError)(

//Could be a potential freeze here.
//See: https://github.com/facebook/jest/pull/5177#discussion_r158883570
//See: https://github.com/jestjs/jest/pull/5177#discussion_r158883570
const inlineSourceMap = (0, _convertSourceMap().fromSource)(

@@ -463,3 +463,3 @@ transformed.code

const transformPath = this._getTransformPath(filename);
invariant(transformPath);
(0, _jestUtil().invariant)(transformPath);
console.warn(

@@ -509,3 +509,6 @@ (0, _runtimeErrorsAndWarnings.makeInvalidSourceMapWarning)(

typeof map === 'string' ? map : JSON.stringify(map);
invariant(sourceMapPath, 'We should always have default sourceMapPath');
(0, _jestUtil().invariant)(
sourceMapPath,
'We should always have default sourceMapPath'
);
writeCacheFile(sourceMapPath, sourceMapContent);

@@ -596,3 +599,3 @@ } else {

// This is probably dead code since `_getTransformerAsync` already asserts this
invariant(
(0, _jestUtil().invariant)(
typeof process === 'function',

@@ -991,10 +994,5 @@ 'A transformer must always export either a `process` or `processAsync`'

};
function invariant(condition, message) {
if (condition == null || condition === false || condition === '') {
throw new Error(message);
}
}
function assertSyncTransformer(transformer, name) {
invariant(name);
invariant(
(0, _jestUtil().invariant)(name);
(0, _jestUtil().invariant)(
typeof transformer.process === 'function',

@@ -1001,0 +999,0 @@ (0, _runtimeErrorsAndWarnings.makeInvalidSyncTransformerError)(name)

{
"name": "@jest/transform",
"version": "29.6.2",
"version": "29.6.3",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
"url": "https://github.com/jestjs/jest.git",
"directory": "packages/jest-transform"

@@ -21,3 +21,3 @@ },

"@babel/core": "^7.11.6",
"@jest/types": "^29.6.1",
"@jest/types": "^29.6.3",
"@jridgewell/trace-mapping": "^0.3.18",

@@ -29,5 +29,5 @@ "babel-plugin-istanbul": "^6.1.1",

"graceful-fs": "^4.2.9",
"jest-haste-map": "^29.6.2",
"jest-regex-util": "^29.4.3",
"jest-util": "^29.6.2",
"jest-haste-map": "^29.6.3",
"jest-regex-util": "^29.6.3",
"jest-util": "^29.6.3",
"micromatch": "^4.0.4",

@@ -39,3 +39,3 @@ "pirates": "^4.0.4",

"devDependencies": {
"@jest/test-utils": "^29.6.2",
"@jest/test-utils": "^29.6.3",
"@types/babel__core": "^7.1.14",

@@ -54,3 +54,3 @@ "@types/convert-source-map": "^2.0.0",

},
"gitHead": "0fd5b1c37555f485c56a6ad2d6b010a72204f9f6"
"gitHead": "fb7d95c8af6e0d65a8b65348433d8a0ea0725b5b"
}
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