@wix/himalaya-cli 0.881.0 → 0.883.0

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.
@@ -16,7 +16,11 @@ function getPost(postId, req = {}) {
16
16
  const resp = await queryPosts({ query: { filter: { id: postId } } });
17
17
  const post = resp.posts?.[0];
18
18
  if (!post) {
19
- throw new Error(`Blog post not found: ${postId}`, { cause });
19
+ const err = new Error(`Blog post not found: ${postId}`);
20
+ if (cause !== void 0) {
21
+ Object.defineProperty(err, "cause", { value: cause, writable: true, configurable: true });
22
+ }
23
+ throw err;
20
24
  }
21
25
  return { post };
22
26
  });