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 Compare versions

Comparing version 1.12.0-alpha-20230921144402-a766297 to 1.12.0

2

cjs/client.js

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

const data = JSON.stringify({ schedule_for: request.scheduleFor });
return client("POST", `/public/v1/executions/${request.id}/cancel`, data);
return client("POST", `/public/v1/executions/${request.id}/reschedule`, data);
}

@@ -19,0 +19,0 @@ exports.rescheduleExecution = rescheduleExecution;

@@ -5,5 +5,12 @@ "use strict";

// Although the function implementation may not be completely secure,
// it is suitable for local use.
// it is suitable for local use. The reason we use the conditional is
// because Bun lacks support for URL.createObjectURL, while Remix and
// Cloudflare Workers (without NodeJS support enabled) lacks support for crypto
function randomUUID() {
return URL.createObjectURL(new Blob([])).slice(-36);
if (typeof crypto === "undefined") {
return URL.createObjectURL(new Blob([])).slice(-36);
}
else {
return crypto.randomUUID();
}
}

@@ -10,0 +17,0 @@ exports.randomUUID = randomUUID;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = "1.12.0-alpha-20230921144402-a766297";
exports.default = "1.12.0";

@@ -11,3 +11,3 @@ import { jitter } from "./jitter.js";

const data = JSON.stringify({ schedule_for: request.scheduleFor });
return client("POST", `/public/v1/executions/${request.id}/cancel`, data);
return client("POST", `/public/v1/executions/${request.id}/reschedule`, data);
}

@@ -14,0 +14,0 @@ export function enqueueExecution(client, request) {

// Although the function implementation may not be completely secure,
// it is suitable for local use.
// it is suitable for local use. The reason we use the conditional is
// because Bun lacks support for URL.createObjectURL, while Remix and
// Cloudflare Workers (without NodeJS support enabled) lacks support for crypto
export function randomUUID() {
return URL.createObjectURL(new Blob([])).slice(-36);
if (typeof crypto === "undefined") {
return URL.createObjectURL(new Blob([])).slice(-36);
}
else {
return crypto.randomUUID();
}
}

@@ -6,0 +13,0 @@ export function debug(...args) {

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

export default "1.12.0-alpha-20230921144402-a766297";
export default "1.12.0";
{
"name": "@defer/client",
"version": "1.12.0-alpha-20230921144402-a766297",
"version": "1.12.0",
"description": "Zero infrastructure NodeJS background jobs",

@@ -5,0 +5,0 @@ "dependencies": {

<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://www.defer.run/github/defer_darkmode.png" width="410" height="216">
<img alt="Defer logo" src="https://www.defer.run/github/defer_lightmode.png" width="410" height="216">
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/defer-run/documentation/master/images/logo/dark.svg"/>
<img alt="Defer logo" src="https://raw.githubusercontent.com/defer-run/documentation/master/images/logo/light.svg"/>
</picture>

@@ -10,3 +10,2 @@ </p>

</p>
<p>&nbsp;</p>
<p align="center">

@@ -21,28 +20,25 @@ <a href="https://docs.defer.run/">Documentation</a>

</p>
<br/>
<p>&nbsp;</p>
<p>&nbsp;</p>
# `@defer/client`
## Get started
- [Next.js Quickstart](https://docs.defer.run/quickstart/next/)
- [Express/Koa/hapi Quickstart](https://docs.defer.run/quickstart/express-koa-hapi/)
- [Next.js Quickstart](https://docs.defer.run/get-started/quickstart/nextjs)
- [Express/Koa/hapi Quickstart](https://docs.defer.run/get-started/quickstart/express-koa-hapi)
## API documentation
- [Configuration options: retries, concurrency](https://docs.defer.run/features/retries-concurrency/)
- [Delayed Function](https://docs.defer.run/features/delay/)
- [CRON](https://docs.defer.run/features/cron/)
- [Workflows](https://docs.defer.run/features/workflows/)
- [Retries](https://docs.defer.run/features/retries)
- [Delayed Function](https://docs.defer.run/features/delays)
- [CRON](https://docs.defer.run/features/cron)
## Contributing
You want to fix a bug or suggest a change? Please open a PR!
Want to pitch a new feature, [please open a RFC](https://github.com/defer-run/defer.client/discussions/new?category=roadmap).
You want to fix a bug or suggest a change? Please open a PR! Want to
pitch a new feature, [please open a
RFC](https://github.com/defer-run/defer.client/discussions/new?category=roadmap).
### Open a PR
Make sure to follow our [Code of Conduct](./CODE_OF_CONDUCT.md) and the following requirements:
Make sure to follow our [Code of Conduct](./CODE_OF_CONDUCT.md) and
the following requirements:

@@ -54,5 +50,7 @@ 1. Each new feature should be shipped with new tests

1. Clone the repository: `git clone git@github.com:defer-run/defer.client.git`
1. Install the dependencies: `npm ci`
1. Run the test after introducing changes: `npm run test`
1. Bump a patch or minor by running `npx changelog` (please provide a brief description of the changes)
1. Clone the repository: `git clone
git@github.com:defer-run/defer.client.git`
2. Install the dependencies: `npm ci`
3. Run the test after introducing changes: `npm run test`
4. Bump a patch or minor by running `npx changelog` (please provide a
brief description of the changes)

@@ -1,2 +0,2 @@

declare const _default: "1.12.0-alpha-20230921144402-a766297";
declare const _default: "1.12.0";
export default _default;

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