@nuelink/nuelink-cli 1.3.5 → 1.3.6

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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/commands.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuelink/nuelink-cli",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "The official Nuelink CLI for automating social media workflows from your terminal. Schedule posts, upload media, manage brands, and integrate Nuelink into scripts, CI/CD pipelines, and AI agents.",
5
5
  "license": "MIT",
6
6
  "author": "Nuelink",
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "chalk": "^5.6.2",
28
- "commander": "^15.0.0"
28
+ "commander": "^13.1.0"
29
29
  },
30
30
  "bin": {
31
31
  "nuelink-cli": "./src/cli.js"
package/src/commands.js CHANGED
@@ -1,5 +1,4 @@
1
- import { openAsBlob } from "node:fs";
2
- import { readFile, stat } from "node:fs/promises";
1
+ import { readFile, stat } from "node:fs/promises";
3
2
  import readline from "node:readline";
4
3
  import path from "node:path";
5
4
  import chalk from "chalk";
@@ -423,7 +422,8 @@ function registerCommands(program, runtimeApiKey, cliVersion) {
423
422
  const fileStat = await stat(options.file);
424
423
  const { mediaType, size } = validateMediaFile(options.file, fileStat);
425
424
  const formData = new FormData();
426
- const fileBlob = await openAsBlob(options.file, { type: mediaType });
425
+ const fileBuffer = await readFile(options.file);
426
+ const fileBlob = new Blob([fileBuffer], { type: mediaType });
427
427
  formData.append("media", fileBlob, path.basename(options.file));
428
428
 
429
429
  await executeRequest(program, runtimeApiKey, {