delaykit 0.1.0
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/LICENSE +21 -0
- package/README.md +264 -0
- package/dist/delaykit.d.ts +77 -0
- package/dist/delaykit.d.ts.map +1 -0
- package/dist/delaykit.js +525 -0
- package/dist/delaykit.js.map +1 -0
- package/dist/duration.d.ts +7 -0
- package/dist/duration.d.ts.map +1 -0
- package/dist/duration.js +38 -0
- package/dist/duration.js.map +1 -0
- package/dist/emitter.d.ts +9 -0
- package/dist/emitter.d.ts.map +1 -0
- package/dist/emitter.js +41 -0
- package/dist/emitter.js.map +1 -0
- package/dist/executor.d.ts +41 -0
- package/dist/executor.d.ts.map +1 -0
- package/dist/executor.js +98 -0
- package/dist/executor.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/result-handler.d.ts +23 -0
- package/dist/result-handler.d.ts.map +1 -0
- package/dist/result-handler.js +155 -0
- package/dist/result-handler.js.map +1 -0
- package/dist/schedulers/polling.d.ts +46 -0
- package/dist/schedulers/polling.d.ts.map +1 -0
- package/dist/schedulers/polling.js +148 -0
- package/dist/schedulers/polling.js.map +1 -0
- package/dist/schedulers/posthook.d.ts +29 -0
- package/dist/schedulers/posthook.d.ts.map +1 -0
- package/dist/schedulers/posthook.js +49 -0
- package/dist/schedulers/posthook.js.map +1 -0
- package/dist/stores/memory.d.ts +28 -0
- package/dist/stores/memory.d.ts.map +1 -0
- package/dist/stores/memory.js +282 -0
- package/dist/stores/memory.js.map +1 -0
- package/dist/stores/postgres-migrations.d.ts +6 -0
- package/dist/stores/postgres-migrations.d.ts.map +1 -0
- package/dist/stores/postgres-migrations.js +65 -0
- package/dist/stores/postgres-migrations.js.map +1 -0
- package/dist/stores/postgres.d.ts +32 -0
- package/dist/stores/postgres.d.ts.map +1 -0
- package/dist/stores/postgres.js +382 -0
- package/dist/stores/postgres.js.map +1 -0
- package/dist/types.d.ts +192 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/package.json +80 -0
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "delaykit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Durable scheduled actions for Next.js. Schedule, debounce, cancel — survives restarts.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./memory": {
|
|
14
|
+
"types": "./dist/stores/memory.d.ts",
|
|
15
|
+
"import": "./dist/stores/memory.js"
|
|
16
|
+
},
|
|
17
|
+
"./polling": {
|
|
18
|
+
"types": "./dist/schedulers/polling.d.ts",
|
|
19
|
+
"import": "./dist/schedulers/polling.js"
|
|
20
|
+
},
|
|
21
|
+
"./postgres": {
|
|
22
|
+
"types": "./dist/stores/postgres.d.ts",
|
|
23
|
+
"import": "./dist/stores/postgres.js"
|
|
24
|
+
},
|
|
25
|
+
"./posthook": {
|
|
26
|
+
"types": "./dist/schedulers/posthook.d.ts",
|
|
27
|
+
"import": "./dist/schedulers/posthook.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"README.md",
|
|
33
|
+
"LICENSE"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"test": "vitest run --exclude 'test/postgres-*' --exclude 'test/store-contract-pg*' --exclude 'test/package-exports*'",
|
|
38
|
+
"test:postgres": "vitest run test/postgres-* test/store-contract-pg*",
|
|
39
|
+
"test:packaging": "vitest run test/package-exports*",
|
|
40
|
+
"test:all": "vitest run",
|
|
41
|
+
"test:watch": "vitest",
|
|
42
|
+
"typecheck": "tsc --noEmit"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"scheduling",
|
|
46
|
+
"delayed-execution",
|
|
47
|
+
"debounce",
|
|
48
|
+
"nextjs",
|
|
49
|
+
"vercel",
|
|
50
|
+
"serverless",
|
|
51
|
+
"cron",
|
|
52
|
+
"background-jobs",
|
|
53
|
+
"durable",
|
|
54
|
+
"postgres",
|
|
55
|
+
"webhook"
|
|
56
|
+
],
|
|
57
|
+
"author": "Posthook <support@posthook.io> (https://posthook.io)",
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/delaykit/delaykit"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://delaykit.dev",
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@posthook/node": "^1.2.0",
|
|
66
|
+
"@types/node": "^25.5.2",
|
|
67
|
+
"postgres": "^3.4.9",
|
|
68
|
+
"tsx": "^4.21.0",
|
|
69
|
+
"typescript": "^5.7.0",
|
|
70
|
+
"vitest": "^3.0.0"
|
|
71
|
+
},
|
|
72
|
+
"peerDependencies": {
|
|
73
|
+
"postgres": "^3.4.0",
|
|
74
|
+
"@posthook/node": "^1.2.0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependenciesMeta": {
|
|
77
|
+
"postgres": { "optional": true },
|
|
78
|
+
"@posthook/node": { "optional": true }
|
|
79
|
+
}
|
|
80
|
+
}
|