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

jest-haste-map

Package Overview
Dependencies
Maintainers
4
Versions
273
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-haste-map - npm Package Compare versions

Comparing version 19.0.0 to 19.0.1

6

build/index.js

@@ -302,4 +302,6 @@ /**

const moduleMap = map[id];
const platform =
getPlatformExtension(module[H.PATH]) || H.GENERIC_PLATFORM;
const platform = getPlatformExtension(
module[H.PATH],
this._options.platforms) ||
H.GENERIC_PLATFORM;
const existingModule = moduleMap[platform];

@@ -306,0 +308,0 @@ if (existingModule && existingModule[H.PATH] !== module[H.PATH]) {

@@ -20,3 +20,6 @@ /**

// Extract platform extension: index.ios.js -> ios
function getPlatformExtension(file) {
function getPlatformExtension(
file,
platforms)
{
const last = file.lastIndexOf('.');

@@ -28,2 +31,6 @@ const secondToLast = file.lastIndexOf('.', last - 1);

const platform = file.substring(secondToLast + 1, last);
// If an overriding platform array is passed, check that first
if (platforms && platforms.indexOf(platform) !== -1) {
return platform;
}
return SUPPORTED_PLATFORM_EXTS[platform] ? platform : null;

@@ -30,0 +37,0 @@ }

{
"name": "jest-haste-map",
"version": "19.0.0",
"version": "19.0.1",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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