fluncle 0.98.0 → 0.99.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.
Files changed (2) hide show
  1. package/bin/fluncle.mjs +17 -11
  2. package/package.json +1 -1
package/bin/fluncle.mjs CHANGED
@@ -557,7 +557,7 @@ function parseVersion(version) {
557
557
  var currentVersion;
558
558
  var init_version = __esm(() => {
559
559
  init_output();
560
- currentVersion = "0.98.0".trim() ? "0.98.0".trim() : "0.1.0";
560
+ currentVersion = "0.99.0".trim() ? "0.99.0".trim() : "0.1.0";
561
561
  });
562
562
 
563
563
  // src/update-notifier.ts
@@ -2187,7 +2187,7 @@ function parseVersion2(version) {
2187
2187
  var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
2188
2188
  var init_version2 = __esm(() => {
2189
2189
  init_output();
2190
- currentVersion2 = "0.98.0".trim() ? "0.98.0".trim() : "0.1.0";
2190
+ currentVersion2 = "0.99.0".trim() ? "0.99.0".trim() : "0.1.0";
2191
2191
  });
2192
2192
 
2193
2193
  // ../../packages/registry/src/index.ts
@@ -3957,14 +3957,10 @@ var init_mixtape_youtube2 = __esm(() => {
3957
3957
  init_output();
3958
3958
  });
3959
3959
 
3960
- // src/commands/mixtape-set-video.ts
3961
- import { randomUUID } from "node:crypto";
3962
- import { existsSync as existsSync2, rmSync as rmSync3, statSync as statSync3 } from "node:fs";
3963
- import { tmpdir } from "node:os";
3964
- import { join as join5 } from "node:path";
3960
+ // ../../packages/contracts/src/util/multipart.ts
3965
3961
  function planMultipart(contentLength, partSize = DEFAULT_PART_SIZE) {
3966
3962
  if (!Number.isInteger(contentLength) || contentLength <= 0) {
3967
- throw new CliError2("invalid_size", `The rendition size must be a positive integer (got ${contentLength})`);
3963
+ throw new Error(`multipart content length must be a positive integer (got ${contentLength})`);
3968
3964
  }
3969
3965
  let effective = Math.max(partSize, MIN_PART_SIZE);
3970
3966
  if (Math.ceil(contentLength / effective) > MAX_PARTS) {
@@ -3989,6 +3985,17 @@ function buildCompleteXml(parts) {
3989
3985
  const body = ordered.map((part) => `<Part><PartNumber>${part.partNumber}</PartNumber><ETag>${escapeXml(part.etag)}</ETag></Part>`).join("");
3990
3986
  return `<CompleteMultipartUpload>${body}</CompleteMultipartUpload>`;
3991
3987
  }
3988
+ var DEFAULT_PART_SIZE, MIN_PART_SIZE, MAX_PARTS = 1e4;
3989
+ var init_multipart = __esm(() => {
3990
+ DEFAULT_PART_SIZE = 16 * 1024 * 1024;
3991
+ MIN_PART_SIZE = 5 * 1024 * 1024;
3992
+ });
3993
+
3994
+ // src/commands/mixtape-set-video.ts
3995
+ import { randomUUID } from "node:crypto";
3996
+ import { existsSync as existsSync2, rmSync as rmSync3, statSync as statSync3 } from "node:fs";
3997
+ import { tmpdir } from "node:os";
3998
+ import { join as join5 } from "node:path";
3992
3999
  function renditionFfmpegArgs(inputPath, outputPath) {
3993
4000
  return [
3994
4001
  "-y",
@@ -4121,8 +4128,9 @@ async function deriveRendition(inputPath, outputPath) {
4121
4128
  throw new CliError2("ffmpeg_failed", `ffmpeg failed to derive the set-video rendition${detail ? `: ${detail}` : ""}`);
4122
4129
  }
4123
4130
  }
4124
- var FOUND_BASE2 = "https://found.fluncle.com", SET_VIDEO_RENDITION, DEFAULT_PART_SIZE, MIN_PART_SIZE, MAX_PARTS = 1e4, MAX_PART_ATTEMPTS = 5;
4131
+ var FOUND_BASE2 = "https://found.fluncle.com", SET_VIDEO_RENDITION, MAX_PART_ATTEMPTS = 5;
4125
4132
  var init_mixtape_set_video = __esm(() => {
4133
+ init_multipart();
4126
4134
  init_api();
4127
4135
  init_output();
4128
4136
  SET_VIDEO_RENDITION = {
@@ -4131,8 +4139,6 @@ var init_mixtape_set_video = __esm(() => {
4131
4139
  gopSeconds: 2,
4132
4140
  height: 1080
4133
4141
  };
4134
- DEFAULT_PART_SIZE = 16 * 1024 * 1024;
4135
- MIN_PART_SIZE = 5 * 1024 * 1024;
4136
4142
  });
4137
4143
 
4138
4144
  // src/commands/recordings.ts
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  "url": "git+https://github.com/mauricekleine/fluncle.git"
32
32
  },
33
33
  "type": "module",
34
- "version": "0.98.0"
34
+ "version": "0.99.0"
35
35
  }