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

jest-webpack-alias

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-webpack-alias - npm Package Compare versions

Comparing version 3.2.2 to 3.3.0

12

lib/preprocessor.js

@@ -65,3 +65,4 @@ var _ = require('lodash');

dirname: dirname,
rest: alias.slice(dirname.length + 1)
rest: alias.slice(dirname.length + 1),
path: alias
};

@@ -133,4 +134,9 @@ } else {

if (alias) {
dirname = alias.dirname;
rest = alias.rest || rest;
// We want to get something relative to the alias
if (rest) {
dirname = alias.path;
} else {
dirname = alias.dirname;
rest = alias.rest;
}
dependency = dirname + (rest ? '/' + rest : '');

@@ -137,0 +143,0 @@ }

{
"name": "jest-webpack-alias",
"version": "3.2.2",
"version": "3.3.0",
"description": "Preprocessor for Jest that is able to resolve require() statements using webpack aliases.",

@@ -5,0 +5,0 @@ "main": "lib/preprocessor.js",

Sorry, the diff of this file is not supported yet

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