@jest/create-cache-key-function
Advanced tools
Comparing version 29.1.2 to 29.2.0
@@ -7,33 +7,23 @@ 'use strict'; | ||
exports.default = createCacheKey; | ||
function _crypto() { | ||
const data = require('crypto'); | ||
_crypto = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _fs() { | ||
const data = require('fs'); | ||
_fs = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _path() { | ||
const data = require('path'); | ||
_path = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
/** | ||
@@ -46,3 +36,5 @@ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. | ||
*/ | ||
// eslint-disable-next-line no-restricted-imports | ||
function getGlobalCacheKey(files, values) { | ||
@@ -62,3 +54,2 @@ return [ | ||
} | ||
function getCacheKeyFunction(globalCacheKey) { | ||
@@ -84,5 +75,4 @@ return (sourceText, sourcePath, configString, options) => { | ||
} | ||
function createCacheKey(files = [], values = []) { | ||
return getCacheKeyFunction(getGlobalCacheKey(files, values)); | ||
} |
{ | ||
"name": "@jest/create-cache-key-function", | ||
"version": "29.1.2", | ||
"version": "29.2.0", | ||
"repository": { | ||
@@ -10,7 +10,7 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/types": "^29.1.2" | ||
"@jest/types": "^29.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "*", | ||
"jest-util": "^29.1.2" | ||
"jest-util": "^29.2.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "engines": { | ||
}, | ||
"gitHead": "3c31dd619e8c022cde53f40fa12ea2a67f4752ce" | ||
"gitHead": "ee5b37a4f4433afcfffb0356cea47739d8092287" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6241
Updated@jest/types@^29.2.0