@seed-hypermedia/client 0.0.116 → 0.0.117

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.
@@ -4,10 +4,10 @@ import {
4
4
  documentContainsLinkToChild,
5
5
  documentHasSelfQuery,
6
6
  shouldAutoLinkParent
7
- } from "./chunk-5RJBMYBL.mjs";
7
+ } from "./chunk-DOQ6BCKU.mjs";
8
8
  import "./chunk-O5MHN2EO.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-EWFGDYXF.mjs";
10
+ import "./chunk-25Q3F35L.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
13
  import "./chunk-EBP7SWTZ.mjs";
@@ -86,7 +86,7 @@ async function followToDocument(client, id) {
86
86
  const first = followed.redirects[0];
87
87
  if (followed.resource.type !== "document") {
88
88
  throw new Error(
89
- `Cannot edit ${packHmId(followed.targetId)}: resource is ${followed.resource.type}` + (first ? ` (followed redirect from ${packHmId(id)})` : "")
89
+ `Cannot edit ${packHmId(followed.targetId)}: resource is ${followed.resource.type}` + (followed.resource.type === "error" ? ` (${followed.resource.message})` : "") + (first ? ` (followed redirect from ${packHmId(id)})` : "")
90
90
  );
91
91
  }
92
92
  return {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
9
  resolveDocumentState
10
- } from "./chunk-EWFGDYXF.mjs";
10
+ } from "./chunk-25Q3F35L.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
@@ -4,7 +4,7 @@ import {
4
4
  followToDocument,
5
5
  resolveDocumentState,
6
6
  resolveEditableDocument
7
- } from "./chunk-EWFGDYXF.mjs";
7
+ } from "./chunk-25Q3F35L.mjs";
8
8
  import "./chunk-EBP7SWTZ.mjs";
9
9
  import "./chunk-AHQWDCHV.mjs";
10
10
  import "./chunk-7P6ASYW6.mjs";
package/dist/index.mjs CHANGED
@@ -88,7 +88,7 @@ import {
88
88
  documentContainsLinkToChild,
89
89
  documentHasSelfQuery,
90
90
  shouldAutoLinkParent
91
- } from "./chunk-5RJBMYBL.mjs";
91
+ } from "./chunk-DOQ6BCKU.mjs";
92
92
  import {
93
93
  createChange,
94
94
  createChangeOps,
@@ -110,7 +110,7 @@ import {
110
110
  followToDocument,
111
111
  resolveDocumentState,
112
112
  resolveEditableDocument
113
- } from "./chunk-EWFGDYXF.mjs";
113
+ } from "./chunk-25Q3F35L.mjs";
114
114
  import "./chunk-2MD3FXKB.mjs";
115
115
  import {
116
116
  computeReplaceOps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",