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

@weedzcokie/scheduler

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weedzcokie/scheduler - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

10

dist/main.d.ts

@@ -11,8 +11,3 @@ /// <reference types="node" resolution-mode="require"/>

}
export declare const msInHour = 3600000;
export declare const msInDay = 86400000;
export declare function msUntilFullMinute(): number;
export declare function msUntilFullHour(): number;
export declare function msUntilNextDay(): number;
export declare function msUntilNextMonth(): number;
export declare function allTasks(): IterableIterator<Task<unknown>>;
interface ScheduleOpts {

@@ -22,6 +17,5 @@ errorHandler?: Task["errorHandler"];

}
export declare function allTasks(): IterableIterator<Task<unknown>>;
export declare function schedule(name: string, fn: () => number, period?: Task["getNextExecutionTime"], opts?: ScheduleOpts): void;
export declare function stopTask(name: string): boolean;
export declare function rescheduleTask(name: string, period?: Task["getNextExecutionTime"]): boolean;
export {};
export * from "./lib.js";

26

dist/main.js

@@ -1,26 +0,1 @@

export const msInHour = 3600000;
export const msInDay = 86400000;
export function msUntilFullMinute() {
const date = new Date();
date.setUTCMinutes(date.getUTCMinutes() + 1, 0, 0);
return date.getTime() - Date.now();
}
export function msUntilFullHour() {
const date = new Date();
date.setUTCHours(date.getUTCHours() + 1, 0, 0, 0);
return date.getTime() - Date.now();
}
export function msUntilNextDay() {
const date = new Date();
date.setUTCDate(date.getUTCDate() + 1);
date.setUTCHours(0, 0, 0, 0);
return date.getTime() - Date.now();
}
export function msUntilNextMonth() {
const date = new Date();
date.setUTCMonth(date.getUTCMonth() + 1);
date.setUTCDate(1);
date.setUTCHours(0, 0, 0, 0);
return date.getTime() - Date.now();
}
async function runTask(task) {

@@ -78,1 +53,2 @@ task.lastExecutionTime = Date.now();

}
export * from "./lib.js";
{
"name": "@weedzcokie/scheduler",
"version": "1.0.10",
"version": "1.0.11",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

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