Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

infinite-loop-detector

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infinite-loop-detector - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

6

dist/detect.d.ts
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;

6

dist/detect.js
"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: [

2

package.json
{
"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",

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