@editframe/assets 0.12.0-beta.15 → 0.12.0-beta.18
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/Probe.d.ts +2 -1
- package/dist/index.d.ts +9 -9
- package/dist/mp4FileWritable.d.ts +1 -1
- package/dist/tasks/cacheImage.d.ts +1 -1
- package/dist/tasks/findOrCreateCaptions.d.ts +1 -1
- package/dist/tasks/generateTrack.d.ts +2 -2
- package/dist/tasks/generateTrackFragmentIndex.d.ts +2 -2
- package/package.json +15 -8
- package/src/tasks/cacheImage.ts +1 -1
- package/src/tasks/findOrCreateCaptions.ts +1 -1
- package/src/tasks/generateTrack.ts +4 -4
- package/src/tasks/generateTrackFragmentIndex.ts +4 -4
package/dist/Probe.d.ts
CHANGED
|
@@ -533,6 +533,7 @@ declare const ProbeSchema: z.ZodObject<{
|
|
|
533
533
|
bit_rate?: string | undefined;
|
|
534
534
|
})[];
|
|
535
535
|
}>;
|
|
536
|
+
export type ProbeSchema = z.infer<typeof ProbeSchema>;
|
|
536
537
|
export interface TrackSegment {
|
|
537
538
|
cts: number;
|
|
538
539
|
dts: number;
|
|
@@ -574,7 +575,7 @@ export interface VideoTrackFragmentIndex {
|
|
|
574
575
|
export type TrackFragmentIndex = AudioTrackFragmentIndex | VideoTrackFragmentIndex;
|
|
575
576
|
export declare class Probe {
|
|
576
577
|
private absolutePath;
|
|
577
|
-
data:
|
|
578
|
+
data: ProbeSchema;
|
|
578
579
|
static probePath(absolutePath: string): Promise<Probe>;
|
|
579
580
|
static probeStream(stream: Readable): Promise<Probe>;
|
|
580
581
|
constructor(absolutePath: string, rawData: any);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type { StreamSchema, AudioStreamSchema, VideoStreamSchema, TrackSegment, TrackFragmentIndex, AudioTrackFragmentIndex, VideoTrackFragmentIndex, } from './Probe.
|
|
2
|
-
export { Probe } from './Probe.
|
|
3
|
-
export { md5FilePath, md5Directory, md5ReadStream, md5Buffer } from './md5.
|
|
4
|
-
export { generateTrackFragmentIndex, generateTrackFragmentIndexFromPath, } from './tasks/generateTrackFragmentIndex.
|
|
5
|
-
export { generateTrack, generateTrackFromPath } from './tasks/generateTrack.
|
|
6
|
-
export { findOrCreateCaptions, generateCaptionDataFromPath, } from './tasks/findOrCreateCaptions.
|
|
7
|
-
export { cacheImage } from './tasks/cacheImage.
|
|
8
|
-
export type { TaskResult } from './idempotentTask.
|
|
9
|
-
export { VideoRenderOptions } from './VideoRenderOptions.
|
|
1
|
+
export type { StreamSchema, AudioStreamSchema, VideoStreamSchema, TrackSegment, TrackFragmentIndex, AudioTrackFragmentIndex, VideoTrackFragmentIndex, } from './Probe.js';
|
|
2
|
+
export { Probe } from './Probe.js';
|
|
3
|
+
export { md5FilePath, md5Directory, md5ReadStream, md5Buffer } from './md5.js';
|
|
4
|
+
export { generateTrackFragmentIndex, generateTrackFragmentIndexFromPath, } from './tasks/generateTrackFragmentIndex.js';
|
|
5
|
+
export { generateTrack, generateTrackFromPath } from './tasks/generateTrack.js';
|
|
6
|
+
export { findOrCreateCaptions, generateCaptionDataFromPath, } from './tasks/findOrCreateCaptions.js';
|
|
7
|
+
export { cacheImage } from './tasks/cacheImage.js';
|
|
8
|
+
export type { TaskResult } from './idempotentTask.js';
|
|
9
|
+
export { VideoRenderOptions } from './VideoRenderOptions.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const cacheImage: (cacheRoot: string, absolutePath: string) => Promise<import('../idempotentTask.
|
|
1
|
+
export declare const cacheImage: (cacheRoot: string, absolutePath: string) => Promise<import('../idempotentTask.js').TaskResult>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const generateCaptionDataFromPath: (absolutePath: string) => Promise<string>;
|
|
2
|
-
export declare const findOrCreateCaptions: (cacheRoot: string, absolutePath: string) => Promise<import('../idempotentTask.
|
|
2
|
+
export declare const findOrCreateCaptions: (cacheRoot: string, absolutePath: string) => Promise<import('../idempotentTask.js').TaskResult>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PassThrough } from 'node:stream';
|
|
2
2
|
export declare const generateTrackFromPath: (absolutePath: string, trackId: number) => Promise<PassThrough>;
|
|
3
|
-
export declare const generateTrackTask: (rootDir: string, absolutePath: string, trackId: number) => Promise<import('../idempotentTask.
|
|
4
|
-
export declare const generateTrack: (cacheRoot: string, absolutePath: string, url: string) => Promise<import('../idempotentTask.
|
|
3
|
+
export declare const generateTrackTask: (rootDir: string, absolutePath: string, trackId: number) => Promise<import('../idempotentTask.js').TaskResult>;
|
|
4
|
+
export declare const generateTrack: (cacheRoot: string, absolutePath: string, url: string) => Promise<import('../idempotentTask.js').TaskResult>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TrackFragmentIndex } from '../Probe.
|
|
1
|
+
import { TrackFragmentIndex } from '../Probe.js';
|
|
2
2
|
export declare const generateTrackFragmentIndexFromPath: (absolutePath: string) => Promise<Record<number, TrackFragmentIndex>>;
|
|
3
|
-
export declare const generateTrackFragmentIndex: (cacheRoot: string, absolutePath: string) => Promise<import('../idempotentTask.
|
|
3
|
+
export declare const generateTrackFragmentIndex: (cacheRoot: string, absolutePath: string) => Promise<import('../idempotentTask.js').TaskResult>;
|
package/package.json
CHANGED
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editframe/assets",
|
|
3
|
-
"version": "0.12.0-beta.
|
|
3
|
+
"version": "0.12.0-beta.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"
|
|
8
|
-
|
|
7
|
+
"import": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
}
|
|
9
11
|
},
|
|
10
12
|
"./EncodedAsset.js": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/EncodedAsset.d.ts",
|
|
15
|
+
"default": "./dist/EncodedAsset.js"
|
|
16
|
+
}
|
|
13
17
|
},
|
|
14
18
|
"./MP4File.js": {
|
|
15
|
-
"
|
|
16
|
-
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/MP4File.d.ts",
|
|
21
|
+
"default": "./dist/MP4File.js"
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
24
|
},
|
|
19
25
|
"type": "module",
|
|
20
26
|
"scripts": {
|
|
21
27
|
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
|
|
22
28
|
"build": "vite build",
|
|
23
|
-
"build:watch": "vite build --watch"
|
|
29
|
+
"build:watch": "vite build --watch",
|
|
30
|
+
"typedoc": "typedoc --json ../../docs/assets.json --plugin typedoc-plugin-zod --excludeExternals ./src"
|
|
24
31
|
},
|
|
25
32
|
"author": "",
|
|
26
33
|
"license": "UNLICENSED",
|
package/src/tasks/cacheImage.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { idempotentTask } from "../idempotentTask.
|
|
2
|
-
import { MP4File } from "../MP4File.
|
|
1
|
+
import { idempotentTask } from "../idempotentTask.js";
|
|
2
|
+
import { MP4File } from "../MP4File.js";
|
|
3
3
|
import debug from "debug";
|
|
4
|
-
import { mp4FileWritable } from "../mp4FileWritable.
|
|
4
|
+
import { mp4FileWritable } from "../mp4FileWritable.js";
|
|
5
5
|
import { PassThrough } from "node:stream";
|
|
6
6
|
import { basename } from "node:path";
|
|
7
|
-
import { Probe } from "../Probe.
|
|
7
|
+
import { Probe } from "../Probe.js";
|
|
8
8
|
|
|
9
9
|
export const generateTrackFromPath = async (
|
|
10
10
|
absolutePath: string,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { idempotentTask } from "../idempotentTask.
|
|
2
|
-
import { MP4File } from "../MP4File.
|
|
1
|
+
import { idempotentTask } from "../idempotentTask.js";
|
|
2
|
+
import { MP4File } from "../MP4File.js";
|
|
3
3
|
import debug from "debug";
|
|
4
|
-
import { mp4FileWritable } from "../mp4FileWritable.
|
|
4
|
+
import { mp4FileWritable } from "../mp4FileWritable.js";
|
|
5
5
|
import { basename } from "node:path";
|
|
6
|
-
import { Probe, type TrackFragmentIndex } from "../Probe.
|
|
6
|
+
import { Probe, type TrackFragmentIndex } from "../Probe.js";
|
|
7
7
|
|
|
8
8
|
export const generateTrackFragmentIndexFromPath = async (
|
|
9
9
|
absolutePath: string,
|