Socket
Socket
Sign inDemoInstall

jest-mock

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-mock - npm Package Compare versions

Comparing version 27.0.6 to 27.1.0

4

build/index.d.ts

@@ -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"
}
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