infinite-loop-detector
Advanced tools
Comparing version 3.0.0 to 3.0.1
export declare function clearAllInfiniteLoopChecks(): void; | ||
export declare function detectInfiniteLoop(id: number): boolean; | ||
declare global { | ||
interface Window { | ||
detectInfiniteLoop(id: number): boolean; | ||
} | ||
} | ||
export declare function addDetectionOnWindowObject(): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.detectInfiniteLoop = exports.clearAllInfiniteLoopChecks = void 0; | ||
exports.addDetectionOnWindowObject = exports.detectInfiniteLoop = exports.clearAllInfiniteLoopChecks = void 0; | ||
let loopObjectCollection = {}; | ||
@@ -18,2 +18,6 @@ function clearAllInfiniteLoopChecks() { | ||
exports.detectInfiniteLoop = detectInfiniteLoop; | ||
function addDetectionOnWindowObject() { | ||
window.detectInfiniteLoop = detectInfiniteLoop; | ||
} | ||
exports.addDetectionOnWindowObject = addDetectionOnWindowObject; | ||
class InfiniteLoopDetectionHost { | ||
@@ -20,0 +24,0 @@ constructor(id) { |
@@ -19,4 +19,12 @@ "use strict"; | ||
callee: { | ||
type: "Identifier", | ||
name: "detectInfiniteLoop" | ||
type: "MemberExpression", | ||
computed: false, | ||
object: { | ||
type: "Identifier", | ||
name: "window" | ||
}, | ||
property: { | ||
type: "Identifier", | ||
name: "detectInfiniteLoop" | ||
} | ||
}, | ||
@@ -23,0 +31,0 @@ arguments: [ |
{ | ||
"name": "infinite-loop-detector", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A utility library for detecting infinite loops in user-provided code.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
10201
238