runlater-js 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # runlater
1
+ # runlater-js
2
2
 
3
- Delayed tasks, cron jobs, and reliable webhooks for any Node.js app. No Redis. No infrastructure. Just HTTP.
3
+ Official Node.js SDK for [Runlater](https://runlater.eu) — delayed tasks, cron jobs, and reliable webhooks for any Node.js app. No Redis. No infrastructure. Just HTTP.
4
4
 
5
- [Documentation](https://runlater.eu/docs) | [Dashboard](https://runlater.eu)
5
+ [Documentation](https://runlater.eu/docs) | [Dashboard](https://runlater.eu) | [npm](https://www.npmjs.com/package/runlater-js)
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install runlater
10
+ npm install runlater-js
11
11
  ```
12
12
 
13
13
  ## Quick start
14
14
 
15
15
  ```js
16
- import { Runlater } from "runlater"
16
+ import { Runlater } from "runlater-js"
17
17
 
18
18
  const rl = new Runlater({ apiKey: process.env.RUNLATER_KEY })
19
19
 
@@ -159,7 +159,7 @@ await rl.sync({
159
159
 
160
160
  ```js
161
161
  // app/api/orders/route.ts
162
- import { Runlater } from "runlater"
162
+ import { Runlater } from "runlater-js"
163
163
 
164
164
  const rl = new Runlater({ apiKey: process.env.RUNLATER_KEY })
165
165
 
@@ -180,7 +180,7 @@ export async function POST(req: Request) {
180
180
 
181
181
  ```js
182
182
  import express from "express"
183
- import { Runlater } from "runlater"
183
+ import { Runlater } from "runlater-js"
184
184
 
185
185
  const app = express()
186
186
  const rl = new Runlater({ apiKey: process.env.RUNLATER_KEY })
package/dist/index.js CHANGED
@@ -210,7 +210,7 @@ var Runlater = class {
210
210
  const headers = {
211
211
  Authorization: `Bearer ${this.apiKey}`,
212
212
  "Content-Type": "application/json",
213
- "User-Agent": "runlater-node/0.1.0"
213
+ "User-Agent": "runlater-js/0.1.0"
214
214
  };
215
215
  if (options.idempotencyKey) {
216
216
  headers["Idempotency-Key"] = options.idempotencyKey;
package/dist/index.mjs CHANGED
@@ -183,7 +183,7 @@ var Runlater = class {
183
183
  const headers = {
184
184
  Authorization: `Bearer ${this.apiKey}`,
185
185
  "Content-Type": "application/json",
186
- "User-Agent": "runlater-node/0.1.0"
186
+ "User-Agent": "runlater-js/0.1.0"
187
187
  };
188
188
  if (options.idempotencyKey) {
189
189
  headers["Idempotency-Key"] = options.idempotencyKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runlater-js",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Delayed tasks, cron jobs, and reliable webhooks. No infrastructure required.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",