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

@steveojs/scheduler-prisma

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@steveojs/scheduler-prisma

A helper lib for a Prisma/Postgres backed in-process job queue

  • 7.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
133
decreased by-30.37%
Maintainers
3
Weekly downloads
 
Created
Source

steveo-scheduler-prisma

A scheduler provider for steveo library.

  • Computes next run of a schedule
  • Computes n next run occurences of a schedule

What's new

Version 7.1.0

  • Deprecated computeNextRunAt method replaced by computeNextRun that uses the rrule-rust library
    Usage
    computeNextRunAt(interval, 'UTC') ---> OLD
    computeNextRun(interval, { timezone: 'UTC', startDate: moment().toISOString() }) ---> NEW
    
  • computeNextRun will check if the rule is valid, convert to a valid rule if not and return a single run date in ISO string
    Parameters
    • interval: should be an iCal rrule string
    • timezone: timezone to compute the next run, UTC by default
    • startDate: start date to compute the next run, now() by default
    Usage
    computeNextRun(interval, { timezone: 'UTC', startDate: moment().toISOString() })
    
  • computeNextRuns similar to computeNextRun but will return n next run dates in ISO string
    Parameters
    • interval: should be an iCal rrule string
    • timezone: timezone to compute the next run, UTC by default
    • startDate: start date to compute the next run, now() by default
    • count: number of occurrences, 1 by default max of 30
    Usage
    computeNextRuns(interval, { timezone: 'Australia/Sydney', startDate: moment().toISOString(), count: 5 })
    

Keywords

FAQs

Package last updated on 07 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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