makefx 1.6.10 → 1.6.11

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/makefx.mjs +18 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -61,4 +61,4 @@ IDs, or runs. Retired commands and aliases are not redirected.
61
61
 
62
62
  Run `makefx --help` or `makefx <noun> --help` for current options.
63
63
 
64
- Version: 1.6.10
64
+ Version: 1.6.11
package/makefx.mjs CHANGED
@@ -291,6 +291,16 @@ function resolveMediaType(ext, requestedMediaKind) {
291
291
  return mediaType;
292
292
  }
293
293
  //#endregion
294
+ //#region src/cli/version.ts
295
+ var CLI_VERSION = "1.6.11+23d6e4fbd1a7";
296
+ var CLI_VERSION_HEADER = "X-MakeFX-CLI-Version";
297
+ function cliVersionHeaders() {
298
+ return {
299
+ [CLI_VERSION_HEADER]: CLI_VERSION,
300
+ "User-Agent": `makefx/${CLI_VERSION}`
301
+ };
302
+ }
303
+ //#endregion
294
304
  //#region src/cli/lib/image-transfer.ts
295
305
  function looksLikeFilePath(value) {
296
306
  let supportedMediaExtension = false;
@@ -316,7 +326,10 @@ async function uploadLocalMediaAsReference(input) {
316
326
  formData.append("mediaKind", mediaType.mediaKind);
317
327
  const response = await fetch(`${input.baseUrl}/api/spaces/${input.spaceId}/upload`, {
318
328
  method: "POST",
319
- headers: { "Authorization": `Bearer ${input.accessToken}` },
329
+ headers: {
330
+ "Authorization": `Bearer ${input.accessToken}`,
331
+ ...cliVersionHeaders()
332
+ },
320
333
  body: formData
321
334
  });
322
335
  const data = await readJsonResponse(response, "Reference upload request");
@@ -4459,16 +4472,6 @@ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
4459
4472
  require_websocket_server();
4460
4473
  var wrapper_default = import_websocket.default;
4461
4474
  //#endregion
4462
- //#region src/cli/version.ts
4463
- var CLI_VERSION = "1.6.10+f750440f39c4";
4464
- var CLI_VERSION_HEADER = "X-MakeFX-CLI-Version";
4465
- function cliVersionHeaders() {
4466
- return {
4467
- [CLI_VERSION_HEADER]: CLI_VERSION,
4468
- "User-Agent": `makefx/${CLI_VERSION}`
4469
- };
4470
- }
4471
- //#endregion
4472
4475
  //#region src/cli/lib/websocket-client.ts
4473
4476
  /**
4474
4477
  * WebSocket Client for CLI
@@ -12108,7 +12111,10 @@ async function executeUpload(parsed, deps = defaultDeps$2) {
12108
12111
  }
12109
12112
  const response = await deps.fetch(`${baseUrl}/api/spaces/${spaceId}/upload`, {
12110
12113
  method: "POST",
12111
- headers: { "Authorization": `Bearer ${accessToken}` },
12114
+ headers: {
12115
+ "Authorization": `Bearer ${accessToken}`,
12116
+ ...cliVersionHeaders()
12117
+ },
12112
12118
  body: formData
12113
12119
  });
12114
12120
  const data = await readJsonResponse(response, "Upload request");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makefx",
3
- "version": "1.6.10",
3
+ "version": "1.6.11",
4
4
  "description": "MakeFX CLI for reproducible image, video, and audio Assets in Make Effects.",
5
5
  "homepage": "https://makefx.app/docs/cli",
6
6
  "keywords": [