@vite-hub/schedule 0.0.3 → 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.
Files changed (50) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +199 -65
  3. package/dist/definition-CMiOg1lg.js +111 -0
  4. package/dist/definition.d.ts +4 -6
  5. package/dist/definition.js +2 -42
  6. package/dist/error-diagnostics-A_8Kp-48.js +116 -0
  7. package/dist/error-diagnostics-in7mif5s.js +45 -0
  8. package/dist/execute-BJrgNgQ0.js +201 -0
  9. package/dist/index.d.ts +7 -51
  10. package/dist/index.js +2 -7
  11. package/dist/inspect-DTfAo5gS.js +118 -0
  12. package/dist/kv-storage-Bv9ocZT-.d.ts +18 -0
  13. package/dist/nuxt.d.ts +4 -6
  14. package/dist/nuxt.js +3 -1
  15. package/dist/operations-gk2qzhYV.js +131 -0
  16. package/dist/operations-tNUdj3G4.d.ts +212 -0
  17. package/dist/operations.d.ts +61 -0
  18. package/dist/operations.js +921 -0
  19. package/dist/registry-module.d.ts +0 -5
  20. package/dist/runtime/kv.d.ts +4 -0
  21. package/dist/{kv-BJ1I9IlJ.js → runtime/kv.js} +1 -1
  22. package/dist/runtime/process.d.ts +26 -5
  23. package/dist/runtime/process.js +337 -75
  24. package/dist/runtime/state.d.ts +8 -12
  25. package/dist/runtime/state.js +2 -2
  26. package/dist/runtime/static.d.ts +18 -12
  27. package/dist/runtime/static.js +2 -138
  28. package/dist/runtime.d.ts +36 -4
  29. package/dist/runtime.js +5 -3
  30. package/dist/state-DSxmHPn3.js +448 -0
  31. package/dist/static-6g82xguw.js +245 -0
  32. package/dist/store-QAOd8bxm.d.ts +11 -0
  33. package/dist/types-CHdV9FQU.d.ts +113 -0
  34. package/dist/vite-BAVyZ8hZ.d.ts +474 -0
  35. package/dist/vite-BJwZkMrn.js +5193 -0
  36. package/dist/vite.d.ts +2 -38
  37. package/dist/vite.js +2 -2
  38. package/dist/wait-until-BmIqRo4x.js +87 -0
  39. package/package.json +68 -22
  40. package/dist/client-BMFCy0dX.js +0 -233
  41. package/dist/discovery-BZlat3Kc.js +0 -776
  42. package/dist/due-Bbh4yIxq.js +0 -59
  43. package/dist/execute-ClFYvmp9.js +0 -211
  44. package/dist/runtime/driver.d.ts +0 -26
  45. package/dist/runtime/driver.js +0 -334
  46. package/dist/state-By7WU_ks.js +0 -472
  47. package/dist/store-t-74rsM_.d.ts +0 -48
  48. package/dist/types-Bcje4dLV.d.ts +0 -136
  49. package/dist/vite-BX6_KiRw.js +0 -1218
  50. package/dist/wait-until-CR-JjIOb.js +0 -23
@@ -1,23 +0,0 @@
1
- //#region src/runtime/wait-until.ts
2
- function createLocalWaitUntil() {
3
- const pending = /* @__PURE__ */ new Set();
4
- let error;
5
- let failed = false;
6
- return {
7
- async flush() {
8
- while (pending.size > 0) await Promise.allSettled([...pending]);
9
- if (failed) throw error;
10
- },
11
- waitUntil(value) {
12
- const promise = Promise.resolve(value);
13
- pending.add(promise);
14
- promise.then(() => pending.delete(promise), (reason) => {
15
- pending.delete(promise);
16
- if (!failed) error = reason;
17
- failed = true;
18
- });
19
- }
20
- };
21
- }
22
- //#endregion
23
- export { createLocalWaitUntil as t };