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

@defer/client

Package Overview
Dependencies
Maintainers
2
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@defer/client - npm Package Versions

1
17

1.15.0-alpha-20240105134148-b2363a6

Diff

gearnode
published 1.14.1 •

Changelog

Source

1.14.1

Patch Changes

gearnode
published 1.14.1-alpha-20231130134404-e87ddc1 •

gearnode
published 1.14.0 •

Changelog

Source

1.14.0

Minor Changes

gearnode
published 1.14.0-alpha-20231117150033-f4e14f2 •

gearnode
published 1.13.1-alpha-20231117143638-a726c98 •

gearnode
published 1.13.1 •

Changelog

Source

1.13.1

Patch Changes

gearnode
published 1.13.1-alpha-20231023093743-3ebd3bf •

gearnode
published 1.13.1-alpha-20231023093453-11ff735 •

gearnode
published 1.13.0 •

Changelog

Source

1.13.0

Minor Changes

  • #102 5613d53 Thanks @charlypoly! - Add assignOptions() helper

    assignOptions is helpful to change the behavior of a given Background Function by combining multiple options such as delay, metadata or discardAfter:

    import { assignOptions, delay } from "@defer/client";
    import handleStripeWebhookFn from "./defer/handleStripeWebhook.js";
    
    // ...
    
    const handleStripeWebhook = assignOptions(handleStripeWebhookFn, {
      discardAfter: '12h'
      // process webhooks in the right order
      delay: event.created + 60 * 10,
      // add metadata for the the Defer Console
      metadata: {
        livemode: event.livemode,
        type: event.type,
        apiVersion: event.api_version,
      },
    });
    
    handleStripeWebhook(event.id)
      .then((executionID) => {
        response.sendStatus(
          200,
          "application/json",
          JSON.stringify({ executionID })
        );
      })
      .catch((err) => {
        response.sendStatus(400);
      });
    
    // ...
    
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