Socket
Socket
Sign inDemoInstall

jest-haste-map

Package Overview
Dependencies
38
Maintainers
6
Versions
271
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 28.0.0-alpha.1 to 28.0.0-alpha.2

57

build/index.d.ts

@@ -43,3 +43,3 @@ /**

declare type EventsQueue = Array<{
filePath: Config.Path;
filePath: string;
stat: Stats | undefined;

@@ -49,3 +49,3 @@ type: string;

declare type FileData = Map<Config.Path, FileMetaData>;
declare type FileData = Map<string, FileMetaData>;

@@ -64,16 +64,13 @@ declare type FileMetaData = [

private readonly _files;
constructor({rootDir, files}: {rootDir: Config.Path; files: FileData});
getModuleName(file: Config.Path): string | null;
getSize(file: Config.Path): number | null;
getDependencies(file: Config.Path): Array<string> | null;
getSha1(file: Config.Path): string | null;
exists(file: Config.Path): boolean;
getAllFiles(): Array<Config.Path>;
getFileIterator(): Iterable<Config.Path>;
getAbsoluteFileIterator(): Iterable<Config.Path>;
matchFiles(pattern: RegExp | string): Array<Config.Path>;
matchFilesWithGlob(
globs: Array<Config.Glob>,
root: Config.Path | null,
): Set<Config.Path>;
constructor({rootDir, files}: {rootDir: string; files: FileData});
getModuleName(file: string): string | null;
getSize(file: string): number | null;
getDependencies(file: string): Array<string> | null;
getSha1(file: string): string | null;
exists(file: string): boolean;
getAllFiles(): Array<string>;
getFileIterator(): Iterable<string>;
getAbsoluteFileIterator(): Iterable<string>;
matchFiles(pattern: RegExp | string): Array<string>;
matchFilesWithGlob(globs: Array<string>, root: string | null): Set<string>;
private _getFileData;

@@ -172,3 +169,3 @@ }

static getCacheFilePath(
tmpdir: Config.Path,
tmpdir: string,
name: string,

@@ -235,3 +232,3 @@ ...extra: Array<string>

getCacheFilePath(
tmpdir: Config.Path,
tmpdir: string,
name: string,

@@ -269,3 +266,3 @@ ...extra: Array<string>

type?: HTypeValue | null,
): Config.Path | null;
): string | null;
getPackage(

@@ -275,4 +272,4 @@ name: string,

_supportsNativePlatform: boolean | null,
): Config.Path | null;
getMockModule(name: string): Config.Path | undefined;
): string | null;
getMockModule(name: string): string | undefined;
getRawModuleMap(): RawModuleMap;

@@ -290,3 +287,3 @@ toJSON(): S;

declare type MockData = Map<string, Config.Path>;
declare type MockData = Map<string, string>;

@@ -305,3 +302,3 @@ export declare class ModuleMap implements IModuleMap<SerializableModuleMap> {

type?: HTypeValue | null,
): Config.Path | null;
): string | null;
getPackage(

@@ -311,4 +308,4 @@ name: string,

_supportsNativePlatform: boolean | null,
): Config.Path | null;
getMockModule(name: string): Config.Path | undefined;
): string | null;
getMockModule(name: string): string | undefined;
getRawModuleMap(): RawModuleMap;

@@ -327,3 +324,3 @@ toJSON(): SerializableModuleMap;

private _assertNoDuplicates;
static create(rootDir: Config.Path): ModuleMap;
static create(rootDir: string): ModuleMap;
}

@@ -337,3 +334,3 @@

declare type ModuleMetaData = [path: Config.Path, type: number];
declare type ModuleMetaData = [path: string, type: number];

@@ -367,3 +364,3 @@ declare type Options = {

declare type RawModuleMap = {
rootDir: Config.Path;
rootDir: string;
duplicates: DuplicatesIndex;

@@ -378,3 +375,3 @@ map: ModuleMapData;

mocks: ReadonlyArray<[string, ValueType<MockData>]>;
rootDir: Config.Path;
rootDir: string;
};

@@ -384,3 +381,3 @@

declare type WatchmanClocks = Map<Config.Path, WatchmanClockSpec>;
declare type WatchmanClocks = Map<string, WatchmanClockSpec>;

@@ -387,0 +384,0 @@ declare type WatchmanClockSpec =

{
"name": "jest-haste-map",
"version": "28.0.0-alpha.1",
"version": "28.0.0-alpha.2",
"repository": {

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

"dependencies": {
"@jest/types": "^28.0.0-alpha.1",
"@jest/types": "^28.0.0-alpha.2",
"@types/graceful-fs": "^4.1.2",

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

"jest-regex-util": "^28.0.0-alpha.0",
"jest-util": "^28.0.0-alpha.1",
"jest-worker": "^28.0.0-alpha.1",
"jest-util": "^28.0.0-alpha.2",
"jest-worker": "^28.0.0-alpha.2",
"micromatch": "^4.0.4",

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

"devDependencies": {
"@jest/test-utils": "^28.0.0-alpha.1",
"@jest/test-utils": "^28.0.0-alpha.2",
"@types/fb-watchman": "^2.0.0",

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

},
"gitHead": "d30164dde1847166fa0faec98d20abffd85e6ffd"
"gitHead": "694d6bfea56f9cb49d0c7309cdbfff032da198c2"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc