New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fastify-warmup

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-warmup - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

4

dist/taskLoader.js

@@ -7,3 +7,3 @@ "use strict";

exports.TaskLoader = void 0;
const promises_1 = __importDefault(require("fs/promises"));
const fs_1 = require("fs");
const path_1 = __importDefault(require("path"));

@@ -54,3 +54,3 @@ class TaskLoader {

try {
files = await promises_1.default.readdir(filePath);
files = await fs_1.promises.readdir(filePath);
}

@@ -57,0 +57,0 @@ catch (e) {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.runTasks = void 0;
const eachLimit_1 = require("./eachLimit");
const promises_1 = __importDefault(require("fs/promises"));
const fs_1 = require("fs");
async function runTasks(fastify, taskList, limit) {
return eachLimit_1.eachLimit(taskList, async function (task) {
try {
const dataStr = await promises_1.default.readFile(task.file, 'utf-8');
const dataStr = await fs_1.promises.readFile(task.file, 'utf-8');
const data = JSON.parse(dataStr);

@@ -14,0 +11,0 @@ data.url = task.url;

{
"name": "fastify-warmup",
"version": "0.0.7",
"version": "0.0.8",
"description": "fastify warmup plugin",

@@ -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