jest-mock
Advanced tools
Comparing version 27.0.6 to 27.1.0
@@ -7,4 +7,2 @@ /** | ||
*/ | ||
/// <reference types="node" /> | ||
declare type Global = NodeJS.Global; | ||
export declare type MockFunctionMetadataType = 'object' | 'array' | 'regexp' | 'function' | 'constant' | 'collection' | 'null' | 'undefined'; | ||
@@ -99,3 +97,3 @@ export declare type MockFunctionMetadata<T, Y extends Array<unknown>, Type = MockFunctionMetadataType> = { | ||
*/ | ||
constructor(global: Global); | ||
constructor(global: typeof globalThis); | ||
private _getSlots; | ||
@@ -102,0 +100,0 @@ private _ensureMockConfig; |
@@ -30,3 +30,2 @@ 'use strict'; | ||
/* eslint-disable local/ban-types-eventually, local/prefer-rest-params-eventually */ | ||
// | Window – add once TS improves typings; | ||
@@ -805,3 +804,6 @@ /** | ||
const isMethodOwner = object.hasOwnProperty(methodName); | ||
const isMethodOwner = Object.prototype.hasOwnProperty.call( | ||
object, | ||
methodName | ||
); | ||
let descriptor = Object.getOwnPropertyDescriptor(object, methodName); | ||
@@ -808,0 +810,0 @@ let proto = Object.getPrototypeOf(object); |
{ | ||
"name": "jest-mock", | ||
"version": "27.0.6", | ||
"version": "27.1.0", | ||
"repository": { | ||
@@ -13,3 +13,3 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/types": "^27.0.6", | ||
"@jest/types": "^27.1.0", | ||
"@types/node": "*" | ||
@@ -27,3 +27,3 @@ }, | ||
}, | ||
"gitHead": "d257d1c44ba62079bd4307ae78ba226d47c56ac9" | ||
"gitHead": "5ef792e957e83428d868a18618b8629e32719993" | ||
} |
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
36037
Updated@jest/types@^27.1.0