@editframe/cli 0.12.0-beta.19 → 0.12.0-beta.20

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/VERSION.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.12.0-beta.19";
1
+ export declare const VERSION = "0.12.0-beta.20";
package/dist/VERSION.js CHANGED
@@ -1,4 +1,4 @@
1
- const VERSION = "0.12.0-beta.19";
1
+ const VERSION = "0.12.0-beta.20";
2
2
  export {
3
3
  VERSION
4
4
  };
@@ -58,6 +58,10 @@ export declare class SyncTrack implements SubAssetSync<CreateISOBMFFTrackResult>
58
58
  duration_ts?: number | undefined;
59
59
  duration?: number | undefined;
60
60
  bit_rate?: string | undefined;
61
+ } | {
62
+ index: number;
63
+ codec_type: "data";
64
+ duration?: string | undefined;
61
65
  };
62
66
  prepare(): Promise<void>;
63
67
  get trackId(): string;
@@ -64,6 +64,9 @@ class SyncTrack {
64
64
  if (!track.duration) {
65
65
  throw new Error(`No duration found in track: ${this.path}`);
66
66
  }
67
+ if (typeof track.duration === "string") {
68
+ return Number.parseFloat(track.duration);
69
+ }
67
70
  return track.duration;
68
71
  }
69
72
  async validate() {
@@ -74,6 +77,9 @@ class SyncTrack {
74
77
  async create() {
75
78
  const track = this.track;
76
79
  const isoFile = this.isoFile;
80
+ if (track.codec_type === "data") {
81
+ throw new Error(`Unsupported codec type: ${track.codec_type}`);
82
+ }
77
83
  const createPayload = track.codec_type === "audio" ? {
78
84
  type: track.codec_type,
79
85
  file_id: isoFile.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/cli",
3
- "version": "0.12.0-beta.19",
3
+ "version": "0.12.0-beta.20",
4
4
  "description": "Command line interface for EditFrame",
5
5
  "bin": {
6
6
  "editframe": "./dist/index.js"
@@ -23,10 +23,10 @@
23
23
  "vite-tsconfig-paths": "^4.3.2"
24
24
  },
25
25
  "dependencies": {
26
- "@editframe/api": "0.12.0-beta.19",
27
- "@editframe/assets": "0.12.0-beta.19",
28
- "@editframe/elements": "0.12.0-beta.19",
29
- "@editframe/vite-plugin": "0.12.0-beta.19",
26
+ "@editframe/api": "0.12.0-beta.20",
27
+ "@editframe/assets": "0.12.0-beta.20",
28
+ "@editframe/elements": "0.12.0-beta.20",
29
+ "@editframe/vite-plugin": "0.12.0-beta.20",
30
30
  "@inquirer/prompts": "^5.3.8",
31
31
  "axios": "^1.6.8",
32
32
  "chalk": "^5.3.0",
@@ -89,6 +89,9 @@ export class SyncTrack implements SubAssetSync<CreateISOBMFFTrackResult> {
89
89
  if (!track.duration) {
90
90
  throw new Error(`No duration found in track: ${this.path}`);
91
91
  }
92
+ if (typeof track.duration === "string") {
93
+ return Number.parseFloat(track.duration);
94
+ }
92
95
  return track.duration;
93
96
  }
94
97
 
@@ -102,6 +105,9 @@ export class SyncTrack implements SubAssetSync<CreateISOBMFFTrackResult> {
102
105
  const track = this.track;
103
106
  const isoFile = this.isoFile;
104
107
 
108
+ if (track.codec_type === "data") {
109
+ throw new Error(`Unsupported codec type: ${track.codec_type}`);
110
+ }
105
111
  const createPayload: CreateISOBMFFTrackPayload =
106
112
  track.codec_type === "audio"
107
113
  ? {