m4k 0.3.0 → 0.3.1

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.
@@ -1,7 +1,7 @@
1
1
  import {} from "@m4k/common";
2
2
  import { mkdir } from "node:fs/promises";
3
3
  import { createQueue } from "tasque";
4
- import { getExtension, processFfmpeg } from "../util/ffmpeg-processor";
4
+ import { getExtension, processFfmpeg } from "../util/ffmpeg-processor.js";
5
5
  /**
6
6
  * Process an audio file.
7
7
  * @param input - The input audio file. Can be a file path, a stream or a blob.
@@ -2,7 +2,7 @@ import { ProcessedFile } from "@m4k/common";
2
2
  import { createReadStream } from "node:fs";
3
3
  import sharp from "sharp";
4
4
  import { createQueue } from "tasque";
5
- import { exhaustAsyncIterableToWritable } from "../util/streams";
5
+ import { exhaustAsyncIterableToWritable } from "../util/streams.js";
6
6
  /**
7
7
  * Process an image.
8
8
  * @param input - The input image. Can be a file path, a stream or a blob.
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ProcessedFile, type AudioOptions, type ImageOptions, type ProcessingError, type Progress, type QueuePosition, type VideoOptions } from "@m4k/common";
2
- export { audioQueue, processAudio } from "./audio/audio-processor";
3
- export { imageQueue, processImage } from "./images/image-processor";
4
- export { getExtension } from "./util/ffmpeg-processor";
5
- export { mimeTypes } from "./util/mime";
6
- export { processVideo, videoQueue } from "./videos/video-processor";
2
+ export { audioQueue, processAudio } from "./audio/audio-processor.js";
3
+ export { imageQueue, processImage } from "./images/image-processor.js";
4
+ export { getExtension } from "./util/ffmpeg-processor.js";
5
+ export { mimeTypes } from "./util/mime.js";
6
+ export { processVideo, videoQueue } from "./videos/video-processor.js";
7
7
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ProcessedFile } from "@m4k/common";
2
- export { audioQueue, processAudio } from "./audio/audio-processor";
3
- export { imageQueue, processImage } from "./images/image-processor";
4
- export { getExtension } from "./util/ffmpeg-processor";
5
- export { mimeTypes } from "./util/mime";
6
- export { processVideo, videoQueue } from "./videos/video-processor";
2
+ export { audioQueue, processAudio } from "./audio/audio-processor.js";
3
+ export { imageQueue, processImage } from "./images/image-processor.js";
4
+ export { getExtension } from "./util/ffmpeg-processor.js";
5
+ export { mimeTypes } from "./util/mime.js";
6
+ export { processVideo, videoQueue } from "./videos/video-processor.js";
7
7
  //# sourceMappingURL=index.js.map
@@ -4,8 +4,8 @@ import { getRandomValues } from "node:crypto";
4
4
  import { createWriteStream } from "node:fs";
5
5
  import { rm } from "node:fs/promises";
6
6
  import {} from "tasque";
7
- import { mimeTypes } from "../util/mime";
8
- import { exhaustAsyncIterableToWritable } from "../util/streams";
7
+ import { mimeTypes } from "../util/mime.js";
8
+ import { exhaustAsyncIterableToWritable } from "../util/streams.js";
9
9
  /**
10
10
  * Process a video.
11
11
  * @param input - The input video. Can be a file path, a stream or a blob.
@@ -1,7 +1,7 @@
1
1
  import {} from "@m4k/common";
2
2
  import { mkdir } from "node:fs/promises";
3
3
  import { createQueue } from "tasque";
4
- import { getExtension, processFfmpeg } from "../util/ffmpeg-processor";
4
+ import { getExtension, processFfmpeg } from "../util/ffmpeg-processor.js";
5
5
  /**
6
6
  * Process a video.
7
7
  * @param input - The input video. Can be a file path, a stream or a blob.
package/package.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "m4k",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "module": "./lib/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/index.d.ts",
11
+ "import": "./lib/index.js"
12
+ }
13
+ },
8
14
  "license": "MIT",
9
15
  "description": "Media toolkit for node, bun, and deno",
10
16
  "keywords": [