Socket
Socket
Sign inDemoInstall

babel-plugin-jest-hoist

Package Overview
Dependencies
Maintainers
7
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-jest-hoist - npm Package Compare versions

Comparing version 26.2.0 to 26.5.0

17

build/index.js

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

};
/* eslint-disable sort-keys,@typescript-eslint/explicit-module-boundary-types */
/* eslint-disable sort-keys */

@@ -313,8 +313,11 @@ var _default = () => ({

const mockStmt = callExpr.getStatementParent();
const mockStmtNode = mockStmt.node;
const mockStmtParent = mockStmt.parentPath;
if (mockStmtParent.isBlock()) {
mockStmt.remove();
mockStmtParent.unshiftContainer('body', [mockStmtNode]);
if (mockStmt) {
const mockStmtNode = mockStmt.node;
const mockStmtParent = mockStmt.parentPath;
if (mockStmtParent.isBlock()) {
mockStmt.remove();
mockStmtParent.unshiftContainer('body', [mockStmtNode]);
}
}

@@ -326,4 +329,4 @@ }

});
/* eslint-enable sort-keys,@typescript-eslint/explicit-module-boundary-types */
/* eslint-enable */
exports.default = _default;
{
"name": "babel-plugin-jest-hoist",
"version": "26.2.0",
"version": "26.5.0",
"repository": {

@@ -28,3 +28,3 @@ "type": "git",

},
"gitHead": "4a716811a309dae135b780a87dc1647b285800eb"
"gitHead": "68d1b1b638bc7464c2794a957c1b894de7da2ee3"
}
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