@seed-hypermedia/client 0.0.102 → 0.0.103
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/dist/auto-link.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
documentContainsLinkToChild,
|
|
5
5
|
documentHasSelfQuery,
|
|
6
6
|
shouldAutoLinkParent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P2FJTNNQ.mjs";
|
|
8
8
|
import "./chunk-O5MHN2EO.mjs";
|
|
9
9
|
import "./chunk-PJ2RFT5A.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-R6OYID6M.mjs";
|
|
11
11
|
import "./chunk-LVAHHQIK.mjs";
|
|
12
12
|
import "./chunk-DR3HJ6BV.mjs";
|
|
13
13
|
import "./chunk-SKIKB2TP.mjs";
|
|
@@ -93,7 +93,8 @@ async function followToDocument(client, id) {
|
|
|
93
93
|
id,
|
|
94
94
|
targetId: followed.targetId,
|
|
95
95
|
document: followed.resource.document,
|
|
96
|
-
redirect: first ? { republish: first.republish, target: first.to } : null
|
|
96
|
+
redirect: first ? { republish: first.republish, target: first.to } : null,
|
|
97
|
+
redirects: followed.redirects
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
100
|
async function resolveEditableDocument(client, id) {
|
package/dist/document-state.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export type FollowedDocument = {
|
|
|
39
39
|
republish: boolean;
|
|
40
40
|
target: UnpackedHypermediaId;
|
|
41
41
|
} | null;
|
|
42
|
+
/** Every redirect followed from `id` to `targetId`, in order. */
|
|
43
|
+
redirects: RedirectHop[];
|
|
42
44
|
};
|
|
43
45
|
/** The full baseline needed to build a new Change at an address: {@link FollowedDocument} plus DAG state. */
|
|
44
46
|
export type EditableDocumentBase = FollowedDocument & {
|
package/dist/document-state.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
documentContainsLinkToChild,
|
|
84
84
|
documentHasSelfQuery,
|
|
85
85
|
shouldAutoLinkParent
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-P2FJTNNQ.mjs";
|
|
87
87
|
import {
|
|
88
88
|
createChange,
|
|
89
89
|
createChangeOps,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
followToDocument,
|
|
106
106
|
resolveDocumentState,
|
|
107
107
|
resolveEditableDocument
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-R6OYID6M.mjs";
|
|
109
109
|
import "./chunk-2MD3FXKB.mjs";
|
|
110
110
|
import {
|
|
111
111
|
computeReplaceOps,
|