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

@miniflare/scheduler

Package Overview
Dependencies
Maintainers
4
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miniflare/scheduler - npm Package Compare versions

Comparing version 2.7.1 to 2.8.0

1

dist/src/index.d.ts

@@ -15,2 +15,3 @@ import { CorePluginSignatures } from '@miniflare/core';

private scheduledHandles?;
private inaccurateCpu?;
constructor(mf: MiniflareCore<Plugins>, cronScheduler?: Promise<CronSchedulerImpl>);

@@ -17,0 +18,0 @@ [kReload]: (event: ReloadEvent<Plugins>) => Promise<void>;

@@ -99,4 +99,6 @@ var __create = Object.create;

scheduledHandles;
inaccurateCpu;
[kReload] = async (event) => {
const validatedCrons = event.plugins.SchedulerPlugin.validatedCrons;
this.inaccurateCpu = event.plugins.CorePlugin.inaccurateCpu;
if (this.previousValidatedCrons === validatedCrons)

@@ -113,5 +115,7 @@ return;

const start = process.hrtime();
const startCpu = this.inaccurateCpu ? process.cpuUsage() : void 0;
const waitUntil = this.mf.dispatchScheduled(void 0, spec);
await (0, import_core.logResponse)(this.mf.log, {
start,
startCpu,
method: "SCHD",

@@ -118,0 +122,0 @@ url: spec,

8

package.json
{
"name": "@miniflare/scheduler",
"version": "2.7.1",
"version": "2.8.0",
"description": "Scheduler module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers",

@@ -38,9 +38,9 @@ "keywords": [

"dependencies": {
"@miniflare/core": "2.7.1",
"@miniflare/shared": "2.7.1",
"@miniflare/core": "2.8.0",
"@miniflare/shared": "2.8.0",
"cron-schedule": "^3.0.4"
},
"devDependencies": {
"@miniflare/shared-test": "2.7.1"
"@miniflare/shared-test": "2.8.0"
}
}

Sorry, the diff of this file is not supported yet

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