Package not found. Please check the package name and try again.
@editframe/cli 0.17.6-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 +1 -1
- package/package.json +5 -5
- 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/dist/VERSION.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.18.3-beta.0";
|
package/dist/VERSION.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const VERSION = "0.
|
|
1
|
+
const VERSION = "0.18.3-beta.0";
|
|
2
2
|
export { VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editframe/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.3-beta.0",
|
|
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.
|
|
27
|
-
"@editframe/assets": "0.
|
|
28
|
-
"@editframe/elements": "0.
|
|
29
|
-
"@editframe/vite-plugin": "0.
|
|
26
|
+
"@editframe/api": "0.18.3-beta.0",
|
|
27
|
+
"@editframe/assets": "0.18.3-beta.0",
|
|
28
|
+
"@editframe/elements": "0.18.3-beta.0",
|
|
29
|
+
"@editframe/vite-plugin": "0.18.3-beta.0",
|
|
30
30
|
"@inquirer/prompts": "^5.3.8",
|
|
31
31
|
"axios": "^1.6.8",
|
|
32
32
|
"chalk": "^5.3.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { describe, expect, test } from "vitest";
|
|
1
|
+
import { setupServer } from "msw/node";
|
|
2
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
|
|
3
3
|
import { fixture, withFixtures } from "../../../test-fixtures/fixture.js";
|
|
4
4
|
import {
|
|
5
5
|
mockCreateCaptionFile,
|
|
@@ -8,8 +8,17 @@ import {
|
|
|
8
8
|
mockUploadCaptionFile,
|
|
9
9
|
} from "../../../test-fixtures/network.js";
|
|
10
10
|
import { SyncCaption } from "./SyncCaption.js";
|
|
11
|
+
|
|
12
|
+
const server = setupServer();
|
|
13
|
+
|
|
11
14
|
describe("SyncCaption", async () => {
|
|
12
|
-
|
|
15
|
+
beforeAll(() => {
|
|
16
|
+
server.listen();
|
|
17
|
+
process.env.EF_TOKEN = "ef_SECRET_TOKEN";
|
|
18
|
+
process.env.EF_HOST = "http://localhost:3000";
|
|
19
|
+
});
|
|
20
|
+
afterAll(() => server.close());
|
|
21
|
+
afterEach(() => server.resetHandlers());
|
|
13
22
|
await withFixtures(
|
|
14
23
|
[fixture("test.mp4", "test.mp4")],
|
|
15
24
|
async ({ files: [video], generateCaptions }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { describe, expect, test } from "vitest";
|
|
1
|
+
import { setupServer } from "msw/node";
|
|
2
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
|
|
3
3
|
import { fixture, withFixtures } from "../../../test-fixtures/fixture.js";
|
|
4
4
|
import {
|
|
5
5
|
mockCreateIsobmffFile,
|
|
@@ -9,8 +9,16 @@ import {
|
|
|
9
9
|
} from "../../../test-fixtures/network.js";
|
|
10
10
|
import { SyncFragmentIndex } from "./SyncFragmentIndex.js";
|
|
11
11
|
|
|
12
|
+
const server = setupServer();
|
|
13
|
+
|
|
12
14
|
describe("SyncFragmentIndex", async () => {
|
|
13
|
-
|
|
15
|
+
beforeAll(() => {
|
|
16
|
+
server.listen();
|
|
17
|
+
process.env.EF_TOKEN = "ef_SECRET_TOKEN";
|
|
18
|
+
process.env.EF_HOST = "http://localhost:3000";
|
|
19
|
+
});
|
|
20
|
+
afterAll(() => server.close());
|
|
21
|
+
afterEach(() => server.resetHandlers());
|
|
14
22
|
await withFixtures(
|
|
15
23
|
[fixture("test.mp4", "test.mp4")],
|
|
16
24
|
async ({ files: [video], generateTrackFragmentIndex }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { describe, expect, test } from "vitest";
|
|
1
|
+
import { setupServer } from "msw/node";
|
|
2
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
|
|
3
3
|
import { fixture, withFixtures } from "../../../test-fixtures/fixture.js";
|
|
4
4
|
import {
|
|
5
5
|
mockCreateImageFile,
|
|
@@ -8,8 +8,17 @@ import {
|
|
|
8
8
|
mockLookupImageFileByMd5NotFound,
|
|
9
9
|
} from "../../../test-fixtures/network.js";
|
|
10
10
|
import { SyncImage } from "./SyncImage.js";
|
|
11
|
+
|
|
12
|
+
const server = setupServer();
|
|
13
|
+
|
|
11
14
|
describe("SyncImage", async () => {
|
|
12
|
-
|
|
15
|
+
beforeAll(() => {
|
|
16
|
+
server.listen();
|
|
17
|
+
process.env.EF_TOKEN = "ef_SECRET_TOKEN";
|
|
18
|
+
process.env.EF_HOST = "http://localhost:3000";
|
|
19
|
+
});
|
|
20
|
+
afterAll(() => server.close());
|
|
21
|
+
afterEach(() => server.resetHandlers());
|
|
13
22
|
await withFixtures(
|
|
14
23
|
[fixture("test.png", "test.png")],
|
|
15
24
|
async ({ files: [image], cacheImage }) => {
|
|
@@ -4,8 +4,8 @@ import path, { basename } from "node:path";
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
type CreateImageFileResult,
|
|
7
|
-
type LookupImageFileByMd5Result,
|
|
8
7
|
createImageFile,
|
|
8
|
+
type LookupImageFileByMd5Result,
|
|
9
9
|
lookupImageFileByMd5,
|
|
10
10
|
uploadImageFile,
|
|
11
11
|
} from "@editframe/api";
|
|
@@ -81,7 +81,8 @@ export class SyncImage implements SubAssetSync<CreateImageFileResult> {
|
|
|
81
81
|
| "image/jpeg"
|
|
82
82
|
| "image/png"
|
|
83
83
|
| "image/jpg"
|
|
84
|
-
| "image/webp"
|
|
84
|
+
| "image/webp"
|
|
85
|
+
| "image/svg+xml",
|
|
85
86
|
byte_size: byteSize,
|
|
86
87
|
});
|
|
87
88
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { describe, expect, test } from "vitest";
|
|
1
|
+
import { setupServer } from "msw/node";
|
|
2
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
|
|
3
3
|
import { fixture, withFixtures } from "../../../test-fixtures/fixture.js";
|
|
4
4
|
import {
|
|
5
5
|
mockCreateIsobmffFile,
|
|
@@ -10,8 +10,16 @@ import {
|
|
|
10
10
|
} from "../../../test-fixtures/network.js";
|
|
11
11
|
import { SyncTrack } from "./SyncTrack.js";
|
|
12
12
|
|
|
13
|
+
const server = setupServer();
|
|
14
|
+
|
|
13
15
|
describe("SyncTrack", async () => {
|
|
14
|
-
|
|
16
|
+
beforeAll(() => {
|
|
17
|
+
server.listen();
|
|
18
|
+
process.env.EF_TOKEN = "ef_SECRET_TOKEN";
|
|
19
|
+
process.env.EF_HOST = "http://localhost:3000";
|
|
20
|
+
});
|
|
21
|
+
afterAll(() => server.close());
|
|
22
|
+
afterEach(() => server.resetHandlers());
|
|
15
23
|
await withFixtures(
|
|
16
24
|
[fixture("test.mp4", "test.mp4")],
|
|
17
25
|
async ({ files: [video], generateTrack }) => {
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useMSW } from "TEST/useMSW.js";
|
|
1
|
+
import { setupServer } from "msw/node";
|
|
2
|
+
import { afterAll, afterEach, beforeAll, describe, it } from "vitest";
|
|
4
3
|
import { fixture, withFixtures } from "../../test-fixtures/fixture.js";
|
|
5
4
|
import {
|
|
6
5
|
mockCreateImageFile,
|
|
7
6
|
mockCreateIsobmffFile,
|
|
8
7
|
mockCreateIsobmffTrack,
|
|
9
8
|
mockGetUploadImageFile,
|
|
10
|
-
mockLookupISOBMFFFileByMd5NotFound,
|
|
11
9
|
mockLookupImageFileByMd5NotFound,
|
|
10
|
+
mockLookupISOBMFFFileByMd5NotFound,
|
|
12
11
|
mockUploadIsobmffFileIndex,
|
|
13
12
|
} from "../../test-fixtures/network.js";
|
|
14
13
|
|
|
14
|
+
const server = setupServer();
|
|
15
|
+
|
|
15
16
|
describe("syncAssetsDirectory", () => {
|
|
16
|
-
|
|
17
|
+
beforeAll(() => {
|
|
18
|
+
server.listen();
|
|
19
|
+
process.env.EF_TOKEN = "ef_SECRET_TOKEN";
|
|
20
|
+
process.env.EF_HOST = "http://localhost:3000";
|
|
21
|
+
});
|
|
22
|
+
afterAll(() => server.close());
|
|
23
|
+
afterEach(() => server.resetHandlers());
|
|
17
24
|
|
|
18
25
|
describe("Image sync", () => {
|
|
19
26
|
it("Syncs assets directory when file is already uploaded", async () => {
|