@byok-sdk/core 0.28.1 → 0.28.3
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,6 +15,6 @@ row, and consumes the JTI through an injected `DeviceAssertionReplayAuthority`.
|
|
|
15
15
|
hosted production composition must inject durable atomic storage. The assertion
|
|
16
16
|
authorizes one exchange only and is not a connector session or refresh token.
|
|
17
17
|
|
|
18
|
-
MIT licensed. Node.js 24.
|
|
18
|
+
MIT licensed. Node.js 24.22.1 or newer.
|
|
19
19
|
|
|
20
20
|
Runtime dependencies and size budgets: [entry dependency contract](../../README.md#entry-dependencies).
|
package/dist/index.js
CHANGED
|
@@ -1803,7 +1803,7 @@ var InMemoryPresenceStore = class {
|
|
|
1803
1803
|
const now = this.#clock.now();
|
|
1804
1804
|
const key = tenantKey(tenant, input.deviceId);
|
|
1805
1805
|
const existing = this.#hints.get(key);
|
|
1806
|
-
if (existing
|
|
1806
|
+
if (existing && now.toISOString() < existing.expiresAt && Math.max(0, Number(now) - Date.parse(existing.observedAt)) < input.minimumIntervalMs) {
|
|
1807
1807
|
throw new ByokCoreError(
|
|
1808
1808
|
"hint_rate_limited",
|
|
1809
1809
|
`Presence for ${input.deviceId} was published more recently than the configured minimum interval.`
|