rwsdk 1.5.2 → 1.5.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.
|
@@ -13,6 +13,12 @@ export class SyncedStateIdentityError extends Error {
|
|
|
13
13
|
// We validate serializability and size here so a bad extractor fails the
|
|
14
14
|
// handshake with a clear error instead of an opaque internal failure.
|
|
15
15
|
export function setIdentityInUrl(identity, url) {
|
|
16
|
+
// context(justinvdm, 29 Jun 2026): No identity extractor was registered, so
|
|
17
|
+
// nothing needs to be passed to the DO. Skip setting the query param;
|
|
18
|
+
// getIdentityFromUrl already returns undefined when it is missing.
|
|
19
|
+
if (identity === undefined) {
|
|
20
|
+
return url;
|
|
21
|
+
}
|
|
16
22
|
let serialized;
|
|
17
23
|
try {
|
|
18
24
|
serialized = JSON.stringify(identity);
|