@fluid-app/fluid-cli-mist 0.1.45 → 0.1.47

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/index.mjs CHANGED
@@ -66,7 +66,8 @@ function createMistClient() {
66
66
  headers: {
67
67
  Authorization: `Bearer ${token}`,
68
68
  Accept: "application/json",
69
- ...opts?.body !== void 0 ? { "Content-Type": "application/json" } : {}
69
+ ...opts?.body !== void 0 ? { "Content-Type": "application/json" } : {},
70
+ ...opts?.headers
70
71
  },
71
72
  ...opts?.body !== void 0 ? { body: JSON.stringify(opts.body) } : {}
72
73
  });
@@ -92,7 +93,10 @@ function createMistClient() {
92
93
  }
93
94
  return {
94
95
  get: (path, query) => call("GET", path, { query }),
95
- post: (path, body) => call("POST", path, { body }),
96
+ post: (path, body, headers) => call("POST", path, {
97
+ body,
98
+ headers
99
+ }),
96
100
  patch: (path, body) => call("PATCH", path, { body }),
97
101
  delete: (path, body) => call("DELETE", path, body !== void 0 ? { body } : void 0),
98
102
  async request(path, init) {