jest-leak-detector
Advanced tools
Comparing version 27.5.1 to 28.0.0-alpha.0
@@ -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" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
5722
110
2
+ Added@jest/schemas@28.1.3(transitive)
+ Added@sinclair/typebox@0.24.51(transitive)
+ Addedjest-get-type@28.0.2(transitive)
+ Addedpretty-format@28.1.3(transitive)
+ Addedreact-is@18.3.1(transitive)
- Removedjest-get-type@27.5.1(transitive)
- Removedpretty-format@27.5.1(transitive)
- Removedreact-is@17.0.2(transitive)