@volter/twin-upstash 0.1.0 → 0.1.2
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 +2 -1
- package/dist/qstash/src/doors.js +1 -1
- package/dist/qstash/src/doors.ts +2 -2
- package/dist/qstash/src/fetch.js +2 -2
- package/dist/qstash/src/fetch.ts +2 -2
- package/dist/qstash/src/semantics/delivery.d.ts +1 -1
- package/dist/qstash/src/semantics/delivery.js +13 -8
- package/dist/qstash/src/semantics/delivery.ts +13 -8
- package/dist/src/upstash-lua.d.ts +8 -140
- package/dist/src/upstash-lua.js +13 -1227
- package/dist/src/upstash-server.js +8 -4
- package/dist/src/upstash-store.d.ts +15 -87
- package/dist/src/upstash-store.js +49 -1579
- package/dist/src/upstash-twin.js +2 -2
- package/package.json +4 -4
- package/qstash/src/doors.ts +2 -2
- package/qstash/src/fetch.ts +2 -2
- package/qstash/src/semantics/delivery.ts +13 -8
- package/src/manifest.ts +3 -2
- package/src/upstash-lua.ts +31 -1119
- package/src/upstash-server.ts +8 -4
- package/src/upstash-store.ts +73 -1346
- package/src/upstash-twin.ts +2 -2
package/src/upstash-twin.ts
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
type RedisValue,
|
|
47
47
|
type RunItem,
|
|
48
48
|
} from './upstash-store.ts';
|
|
49
|
-
import { ownFields, twinResources } from '@volter/world-core';
|
|
49
|
+
import { ownFields, twinResources, worldNow } from '@volter/world-core';
|
|
50
50
|
import { SERVICE } from './upstash-store.ts';
|
|
51
51
|
|
|
52
52
|
export type UpstashRedisRequest = {
|
|
@@ -227,7 +227,7 @@ export async function handleUpstashRedisTwinRequest(req: UpstashRedisRequest): P
|
|
|
227
227
|
const query = new URLSearchParams(rawQuery ?? '');
|
|
228
228
|
const path = (rawPath ?? '/').replace(/\/+$/, '') || '/';
|
|
229
229
|
const headers = lowerHeaders(req.headers);
|
|
230
|
-
const occurredAt = req.occurredAt ??
|
|
230
|
+
const occurredAt = req.occurredAt ?? worldNow();
|
|
231
231
|
|
|
232
232
|
// CORS preflight: LIVE-PROBED as 200 with an empty body, echoing the request's own origin and
|
|
233
233
|
// requested headers — NOT a 405, despite the docs listing only HEAD/GET/POST/PUT.
|