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

overlooker

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

overlooker - npm Package Compare versions

Comparing version 0.31.17 to 0.31.18

2

package.json
{
"name": "overlooker",
"version": "0.31.17",
"version": "0.31.18",
"description": "tool for profile front-end performance",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -48,2 +48,4 @@ const { makeFetchPageWorkersPool } = require('./fetch-page-workers-pool.js');

const isFetchingEnded = async () => !(await checkStatus()) || expectedResultsCounter <= 0;
workers.forEach((worker) => {

@@ -61,3 +63,3 @@ let attemptTimeout = 5000;

const sendPageToWorker = async () => {
if (queue.length && await checkStatus()) {
if (!(await isFetchingEnded()) && queue.length) {
const queueItem = queue.shift();

@@ -77,9 +79,9 @@

if (type === messages.LOAD_PAGE_COMPLETE) {
expectedResultsCounter--;
await sendPageToWorker();
expectedResultsCounter--;
await dataCb(payload);
if (!expectedResultsCounter || !(await checkStatus())) {
if (await isFetchingEnded()) {
resolve();

@@ -91,3 +93,3 @@ }

if (!expectedResultsCounter || !(await checkStatus())) {
if (await isFetchingEnded()) {
resolve();

@@ -119,3 +121,3 @@ }

if (!expectedResultsCounter || !(await checkStatus())) {
if (await isFetchingEnded()) {
await logger(`Attempts limit reached for page: ${payload.page.name} - ${payload.page.url}`);

@@ -122,0 +124,0 @@

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