@wix/himalaya-cli 0.882.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
  });
package/dist/cli.mjs CHANGED
@@ -18439,7 +18439,6 @@ function shouldRevealError(args) {
18439
18439
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
18440
18440
  var init_validation = __esm({
18441
18441
  "../../core/ts/src/validation.ts"() {
18442
- "use strict";
18443
18442
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
18444
18443
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
18445
18444
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -21863,7 +21862,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
21863
21862
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
21864
21863
  var init_worker_subtree = __esm({
21865
21864
  "../../core/ts/src/worker-subtree.ts"() {
21866
- "use strict";
21867
21865
  init_worker_subtree_safe_types_generated();
21868
21866
  WORKER_SUBTREE_CEILINGS = Object.freeze({
21869
21867
  maxEncodedBytes: 65536,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.882.0",
3
+ "version": "0.883.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -64,5 +64,5 @@
64
64
  "artifactId": "himalaya-cli"
65
65
  }
66
66
  },
67
- "falconPackageHash": "c3973a38095b2a82ca241b60a5b911fec7226770696947e1319bb7fb"
67
+ "falconPackageHash": "9fe4ec3745471697dbae3397d6be4efdba7c700789fa909335427656"
68
68
  }