Socket
Socket
Sign inDemoInstall

jest-leak-detector

Package Overview
Dependencies
Maintainers
5
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-leak-detector - npm Package Compare versions

Comparing version 27.5.1 to 28.0.0-alpha.0

14

build/index.d.ts

@@ -7,7 +7,11 @@ /**

*/
export default class LeakDetector {
private _isReferenceBeingHeld;
constructor(value: unknown);
isLeaking(): Promise<boolean>;
private _runGarbageCollector;
declare class LeakDetector {
private _isReferenceBeingHeld;
constructor(value: unknown);
isLeaking(): Promise<boolean>;
private _runGarbageCollector;
}
export default LeakDetector;
export {};

@@ -58,22 +58,14 @@ 'use strict';

function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const tick = (0, _util().promisify)(setImmediate);
class LeakDetector {
_isReferenceBeingHeld;
constructor(value) {
_defineProperty(this, '_isReferenceBeingHeld', void 0);
if ((0, _jestGetType().isPrimitive)(value)) {

@@ -80,0 +72,0 @@ throw new TypeError(

{
"name": "jest-leak-detector",
"version": "27.5.1",
"version": "28.0.0-alpha.0",
"repository": {

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

"dependencies": {
"jest-get-type": "^27.5.1",
"pretty-format": "^27.5.1"
"jest-get-type": "^28.0.0-alpha.0",
"pretty-format": "^28.0.0-alpha.0"
},

@@ -29,3 +29,3 @@ "devDependencies": {

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

@@ -35,3 +35,3 @@ "publishConfig": {

},
"gitHead": "67c1aa20c5fec31366d733e901fee2b981cb1850"
"gitHead": "89275b08977065d98e42ad71fcf223f4ad169f09"
}
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