Socket
Book a DemoInstallSign in
Socket

@jest/create-cache-key-function

Package Overview
Dependencies
Maintainers
6
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/create-cache-key-function - npm Package Compare versions

Comparing version

to
28.0.0-alpha.0

47

build/index.d.ts

@@ -6,18 +6,39 @@ /**

* LICENSE file in the root directory of this source tree.
*
*/
import type { Config } from '@jest/types';
import type {Config} from '@jest/types';
declare function createCacheKey(
files?: Array<string>,
values?: Array<string>,
): GetCacheKeyFunction;
export default createCacheKey;
declare type GetCacheKeyFunction =
| OldGetCacheKeyFunction
| NewGetCacheKeyFunction;
declare type NewCacheKeyOptions = {
config: Config.ProjectConfig;
configString: string;
instrument: boolean;
};
declare type NewGetCacheKeyFunction = (
sourceText: string,
sourcePath: Config.Path,
options: NewCacheKeyOptions,
) => string;
declare type OldCacheKeyOptions = {
config: Config.ProjectConfig;
instrument: boolean;
config: Config.ProjectConfig;
instrument: boolean;
};
declare type NewCacheKeyOptions = {
config: Config.ProjectConfig;
configString: string;
instrument: boolean;
};
declare type OldGetCacheKeyFunction = (fileData: string, filePath: Config.Path, configStr: string, options: OldCacheKeyOptions) => string;
declare type NewGetCacheKeyFunction = (sourceText: string, sourcePath: Config.Path, options: NewCacheKeyOptions) => string;
declare type GetCacheKeyFunction = OldGetCacheKeyFunction | NewGetCacheKeyFunction;
export default function createCacheKey(files?: Array<string>, values?: Array<string>): GetCacheKeyFunction;
declare type OldGetCacheKeyFunction = (
fileData: string,
filePath: Config.Path,
configStr: string,
options: OldCacheKeyOptions,
) => string;
export {};
{
"name": "@jest/create-cache-key-function",
"version": "27.5.1",
"version": "28.0.0-alpha.0",
"repository": {

@@ -10,10 +10,10 @@ "type": "git",

"dependencies": {
"@jest/types": "^27.5.1"
"@jest/types": "^28.0.0-alpha.0"
},
"devDependencies": {
"@types/node": "*",
"jest-util": "^27.5.1"
"jest-util": "^28.0.0-alpha.0"
},
"engines": {
"node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
"node": "^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0"
},

@@ -33,3 +33,3 @@ "license": "MIT",

},
"gitHead": "67c1aa20c5fec31366d733e901fee2b981cb1850"
"gitHead": "89275b08977065d98e42ad71fcf223f4ad169f09"
}
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.