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

jest-haste-map

Package Overview
Dependencies
Maintainers
6
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 28.0.2 to 28.1.0

44

build/index.js

@@ -193,4 +193,2 @@ 'use strict';

*/
/* eslint-disable local/ban-types-eventually */
// @ts-expect-error: not converted to TypeScript - it's a fork: https://github.com/facebook/jest/pull/10919

@@ -297,4 +295,4 @@ // @ts-expect-error: not converted to TypeScript - it's a fork: https://github.com/facebook/jest/pull/5387

class HasteMap extends _events().EventEmitter {
_buildPromise;
_cachePath;
_buildPromise = null;
_cachePath = '';
_changeInterval;

@@ -304,4 +302,4 @@ _console;

_options;
_watchers;
_worker;
_watchers = [];
_worker = null;

@@ -329,2 +327,4 @@ static getStatic(config) {

constructor(options) {
var _options$computeDepen, _options$useWatchman;
super();

@@ -334,5 +334,6 @@ this._options = {

computeDependencies:
options.computeDependencies === undefined
? true
: options.computeDependencies,
(_options$computeDepen = options.computeDependencies) !== null &&
_options$computeDepen !== void 0
? _options$computeDepen
: true,
computeSha1: options.computeSha1 || false,

@@ -356,3 +357,7 @@ dependencyExtractor: options.dependencyExtractor || null,

throwOnModuleCollision: !!options.throwOnModuleCollision,
useWatchman: options.useWatchman == null ? true : options.useWatchman,
useWatchman:
(_options$useWatchman = options.useWatchman) !== null &&
_options$useWatchman !== void 0
? _options$useWatchman
: true,
watch: !!options.watch

@@ -384,7 +389,2 @@ };

}
this._cachePath = '';
this._buildPromise = null;
this._watchers = [];
this._worker = null;
}

@@ -536,3 +536,3 @@

const read = this._options.resetCache ? this._createEmptyMap : this.read;
hasteMap = await read.call(this);
hasteMap = read.call(this);
} catch {

@@ -846,3 +846,3 @@ hasteMap = this._createEmptyMap();

if (worker && 'end' in worker && typeof worker.end === 'function') {
if (worker && 'end' in worker) {
worker.end();

@@ -867,5 +867,9 @@ }

_getWorker(options) {
_getWorker(
options = {
forceInBand: false
}
) {
if (!this._worker) {
if ((options && options.forceInBand) || this._options.maxWorkers <= 1) {
if (options.forceInBand || this._options.maxWorkers <= 1) {
this._worker = {

@@ -1204,3 +1208,3 @@ getSha1: _worker.getSha1,

if (dedupMap == null) {
if (!dedupMap) {
dedupMap = Object.create(null);

@@ -1207,0 +1211,0 @@ hasteMap.map.set(moduleName, dedupMap);

@@ -121,4 +121,2 @@ 'use strict';

*/
/* eslint-disable local/ban-types-eventually */
// @ts-expect-error no types

@@ -125,0 +123,0 @@ // eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error

{
"name": "jest-haste-map",
"version": "28.0.2",
"version": "28.1.0",
"repository": {

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

"dependencies": {
"@jest/types": "^28.0.2",
"@jest/types": "^28.1.0",
"@types/graceful-fs": "^4.1.3",

@@ -28,4 +28,4 @@ "@types/node": "*",

"jest-regex-util": "^28.0.2",
"jest-util": "^28.0.2",
"jest-worker": "^28.0.2",
"jest-util": "^28.1.0",
"jest-worker": "^28.1.0",
"micromatch": "^4.0.4",

@@ -35,3 +35,3 @@ "walker": "^1.0.7"

"devDependencies": {
"@jest/test-utils": "^28.0.2",
"@jest/test-utils": "^28.1.0",
"@types/fb-watchman": "^2.0.0",

@@ -50,3 +50,3 @@ "@types/micromatch": "^4.0.1",

},
"gitHead": "279ee6658d763f024d51f340fab6a37c17d94502"
"gitHead": "f5db241312f46528389e55c38221e6b6968622cf"
}
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