@editframe/cli 0.16.8-beta.0 → 0.18.3-beta.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.
- package/dist/VERSION.d.ts +1 -1
- package/dist/VERSION.js +2 -4
- package/dist/commands/auth.js +16 -25
- package/dist/commands/check.js +81 -108
- package/dist/commands/mux.d.ts +1 -0
- package/dist/commands/preview.js +4 -1
- package/dist/commands/process-file.js +18 -34
- package/dist/commands/process.js +28 -31
- package/dist/commands/render.js +117 -157
- package/dist/commands/sync.js +3 -5
- package/dist/commands/webhook.js +48 -52
- package/dist/index.js +3 -7
- package/dist/operations/processRenderInfo.js +25 -31
- package/dist/operations/syncAssetsDirectory/SubAssetSync.js +11 -18
- package/dist/operations/syncAssetsDirectory/SyncCaption.js +46 -73
- package/dist/operations/syncAssetsDirectory/SyncFragmentIndex.js +53 -83
- package/dist/operations/syncAssetsDirectory/SyncImage.js +72 -99
- package/dist/operations/syncAssetsDirectory/SyncStatus.js +30 -37
- package/dist/operations/syncAssetsDirectory/SyncTrack.js +107 -143
- package/dist/operations/syncAssetsDirectory/doAssetSync.js +42 -46
- package/dist/operations/syncAssetsDirectory.js +55 -78
- package/dist/utils/createReadableStreamFromReadable.js +61 -78
- package/dist/utils/index.js +10 -16
- package/dist/utils/launchBrowserAndWaitForSDK.js +31 -43
- package/dist/utils/startDevServer.d.ts +1 -1
- package/dist/utils/startPreviewServer.d.ts +1 -1
- package/dist/utils/startPreviewServer.js +28 -34
- package/dist/utils/validateVideoResolution.js +19 -23
- package/dist/utils/withSpinner.js +10 -12
- package/package.json +8 -8
- package/src/commands/check.ts +2 -2
- package/src/commands/mux.ts +10 -0
- package/src/operations/syncAssetsDirectory/SyncCaption.test.ts +12 -3
- package/src/operations/syncAssetsDirectory/SyncFragmentIndex.test.ts +11 -3
- package/src/operations/syncAssetsDirectory/SyncImage.test.ts +12 -3
- package/src/operations/syncAssetsDirectory/SyncImage.ts +3 -2
- package/src/operations/syncAssetsDirectory/SyncTrack.test.ts +11 -3
- package/src/operations/syncAssetsDirectory.test.ts +12 -5
- package/src/utils/createReadableStreamFromReadable.ts +3 -7
- package/src/utils/startDevServer.ts +5 -5
- package/src/utils/startPreviewServer.ts +1 -1
- package/test-fixtures/network.ts +38 -9
package/test-fixtures/network.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpResponse, http } from "msw";
|
|
2
2
|
import type { Fixture } from "./fixture.js";
|
|
3
3
|
|
|
4
4
|
export const mockCreateImageFile = ({
|
|
5
5
|
complete = true,
|
|
6
6
|
id = "123",
|
|
7
|
-
}: {
|
|
7
|
+
}: {
|
|
8
|
+
complete?: boolean;
|
|
9
|
+
id?: string;
|
|
10
|
+
filename?: string;
|
|
11
|
+
fixture: Fixture;
|
|
12
|
+
}) =>
|
|
8
13
|
http.post(
|
|
9
14
|
"http://localhost:3000/api/v1/image_files",
|
|
10
15
|
async () => {
|
|
@@ -18,7 +23,12 @@ export const mockCreateImageFile = ({
|
|
|
18
23
|
|
|
19
24
|
export const mockLookupImageFileByMd5 = ({
|
|
20
25
|
md5 = "test-md5",
|
|
21
|
-
}: {
|
|
26
|
+
}: {
|
|
27
|
+
complete?: boolean;
|
|
28
|
+
id?: string;
|
|
29
|
+
md5?: string;
|
|
30
|
+
fixture: Fixture;
|
|
31
|
+
}) =>
|
|
22
32
|
http.get(`http://localhost:3000/api/v1/image_files/md5/${md5}`, async () => {
|
|
23
33
|
return HttpResponse.json({
|
|
24
34
|
id: "123",
|
|
@@ -28,7 +38,9 @@ export const mockLookupImageFileByMd5 = ({
|
|
|
28
38
|
|
|
29
39
|
export const mockLookupImageFileByMd5NotFound = ({
|
|
30
40
|
md5 = "test-md5",
|
|
31
|
-
}: {
|
|
41
|
+
}: {
|
|
42
|
+
md5?: string;
|
|
43
|
+
}) =>
|
|
32
44
|
http.get(`http://localhost:3000/api/v1/image_files/md5/${md5}`, async () => {
|
|
33
45
|
return HttpResponse.json({}, { status: 404 });
|
|
34
46
|
});
|
|
@@ -37,7 +49,12 @@ export const mockGetUploadImageFile = ({
|
|
|
37
49
|
complete = true,
|
|
38
50
|
id = "123",
|
|
39
51
|
filename = "test.png",
|
|
40
|
-
}: {
|
|
52
|
+
}: {
|
|
53
|
+
complete?: boolean;
|
|
54
|
+
id?: string;
|
|
55
|
+
filename?: string;
|
|
56
|
+
fixture: Fixture;
|
|
57
|
+
}) =>
|
|
41
58
|
http.get(
|
|
42
59
|
`http://localhost:3000/api/v1/image_files/${id}/upload`,
|
|
43
60
|
async () => {
|
|
@@ -91,7 +108,9 @@ export const mockLookupISOBMFFFileByMd5 = ({
|
|
|
91
108
|
|
|
92
109
|
export const mockLookupISOBMFFFileByMd5NotFound = ({
|
|
93
110
|
md5 = "test-md5",
|
|
94
|
-
}: {
|
|
111
|
+
}: {
|
|
112
|
+
md5?: string;
|
|
113
|
+
}) =>
|
|
95
114
|
http.get(
|
|
96
115
|
`http://localhost:3000/api/v1/isobmff_files/md5/${md5}`,
|
|
97
116
|
async () => {
|
|
@@ -146,7 +165,10 @@ export const mockGetIsobmffTrackUpload = ({
|
|
|
146
165
|
export const mockUploadIsobmffFileIndex = ({
|
|
147
166
|
complete = true,
|
|
148
167
|
id = "123",
|
|
149
|
-
}: {
|
|
168
|
+
}: {
|
|
169
|
+
complete?: boolean;
|
|
170
|
+
id?: string;
|
|
171
|
+
}) =>
|
|
150
172
|
http.post(
|
|
151
173
|
"http://localhost:3000/api/v1/isobmff_files/123/index/upload",
|
|
152
174
|
async () => {
|
|
@@ -162,7 +184,12 @@ export const mockLookupCaptionFileByMd5 = ({
|
|
|
162
184
|
complete = true,
|
|
163
185
|
id = "123",
|
|
164
186
|
md5 = "test-md5",
|
|
165
|
-
}: {
|
|
187
|
+
}: {
|
|
188
|
+
complete?: boolean;
|
|
189
|
+
id?: string;
|
|
190
|
+
md5?: string;
|
|
191
|
+
fixture: Fixture;
|
|
192
|
+
}) =>
|
|
166
193
|
http.get(
|
|
167
194
|
`http://localhost:3000/api/v1/caption_files/md5/${md5}`,
|
|
168
195
|
async () => {
|
|
@@ -175,7 +202,9 @@ export const mockLookupCaptionFileByMd5 = ({
|
|
|
175
202
|
|
|
176
203
|
export const mockLookupCaptionFileByMd5NotFound = ({
|
|
177
204
|
md5 = "test-md5",
|
|
178
|
-
}: {
|
|
205
|
+
}: {
|
|
206
|
+
md5?: string;
|
|
207
|
+
}) =>
|
|
179
208
|
http.get(
|
|
180
209
|
`http://localhost:3000/api/v1/caption_files/md5/${md5}`,
|
|
181
210
|
async () => {
|