From 7d55052fe329c6d8cdbfad758c01d6dd63ec63e3 Mon Sep 17 00:00:00 2001 From: ismaelcompsci <117225959+ismaelcompsci@users.noreply.github.com> Date: Fri, 27 Dec 2024 14:39:37 -0600 Subject: [PATCH 1/3] works with my project --- packages/ffmpeg/src/classes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/ffmpeg/src/classes.ts b/packages/ffmpeg/src/classes.ts index bec0354fb35..b8cc805b480 100644 --- a/packages/ffmpeg/src/classes.ts +++ b/packages/ffmpeg/src/classes.ts @@ -190,9 +190,7 @@ export class FFmpeg { ): Promise => { if (!this.#worker) { this.#worker = classWorkerURL ? - new Worker(new URL(classWorkerURL, import.meta.url), { - type: "module", - }) : + new Worker(classWorkerURL) : // We need to duplicated the code here to enable webpack // to bundle worekr.js here. new Worker(new URL("./worker.js", import.meta.url), { From 97361ee847c3e6de24390fa78678bcabfd53b7f8 Mon Sep 17 00:00:00 2001 From: ismaelcompsci Date: Fri, 27 Dec 2024 14:51:10 -0600 Subject: [PATCH 2/3] Rename packages and update repository URLs to reflect new ownership --- packages/core-mt/package.json | 8 ++++---- packages/core/package.json | 8 ++++---- packages/ffmpeg/src/classes.ts | 20 ++++++++++++-------- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/packages/core-mt/package.json b/packages/core-mt/package.json index a3d1092f115..c3c1ce5cd21 100644 --- a/packages/core-mt/package.json +++ b/packages/core-mt/package.json @@ -1,5 +1,5 @@ { - "name": "@ffmpeg/core-mt", + "name": "@ismaelcompsci/core-mt", "version": "0.12.8", "description": "FFmpeg WebAssembly version (multi thread)", "main": "./dist/umd/ffmpeg-core.js", @@ -18,7 +18,7 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/ffmpegwasm/ffmpeg.wasm.git" + "url": "git+https://github.com/ismaelcompsci/ffmpeg.wasm.git" }, "keywords": [ "ffmpeg", @@ -30,12 +30,12 @@ "author": "Jerome Wu ", "license": "GPL-2.0-or-later", "bugs": { - "url": "https://github.com/ffmpegwasm/ffmpeg.wasm/issues" + "url": "https://github.com/ismaelcompsci/ffmpeg.wasm/issues" }, "engines": { "node": ">=16.x" }, - "homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme", + "homepage": "https://github.com/ismaelcompsci/ffmpeg.wasm#readme", "publishConfig": { "access": "public" } diff --git a/packages/core/package.json b/packages/core/package.json index 08e5d7c7b5c..5e8c4948940 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,5 +1,5 @@ { - "name": "@ffmpeg/core", + "name": "@ismaelcompsci/core", "version": "0.12.8", "description": "FFmpeg WebAssembly version (single thread)", "main": "./dist/umd/ffmpeg-core.js", @@ -18,7 +18,7 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/ffmpegwasm/ffmpeg.wasm.git" + "url": "git+https://github.com/ismaelcompsci/ffmpeg.wasm.git" }, "keywords": [ "ffmpeg", @@ -30,12 +30,12 @@ "author": "Jerome Wu ", "license": "GPL-2.0-or-later", "bugs": { - "url": "https://github.com/ffmpegwasm/ffmpeg.wasm/issues" + "url": "https://github.com/ismaelcompsci/ffmpeg.wasm/issues" }, "engines": { "node": ">=16.x" }, - "homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme", + "homepage": "https://github.com/ismaelcompsci/ffmpeg.wasm#readme", "publishConfig": { "access": "public" } diff --git a/packages/ffmpeg/src/classes.ts b/packages/ffmpeg/src/classes.ts index b8cc805b480..8f539abc27a 100644 --- a/packages/ffmpeg/src/classes.ts +++ b/packages/ffmpeg/src/classes.ts @@ -189,13 +189,13 @@ export class FFmpeg { { signal }: FFMessageOptions = {} ): Promise => { if (!this.#worker) { - this.#worker = classWorkerURL ? - new Worker(classWorkerURL) : - // We need to duplicated the code here to enable webpack - // to bundle worekr.js here. - new Worker(new URL("./worker.js", import.meta.url), { - type: "module", - }); + this.#worker = classWorkerURL + ? new Worker(classWorkerURL) + : // We need to duplicated the code here to enable webpack + // to bundle worekr.js here. + new Worker(new URL("./worker.js", import.meta.url), { + type: "module", + }); this.#registerHandlers(); } return this.#send( @@ -338,7 +338,11 @@ export class FFmpeg { ) as Promise; }; - public mount = (fsType: FFFSType, options: FFFSMountOptions, mountPoint: FFFSPath, ): Promise => { + public mount = ( + fsType: FFFSType, + options: FFFSMountOptions, + mountPoint: FFFSPath + ): Promise => { const trans: Transferable[] = []; return this.#send( { From 94cb2314f98415a08adb97770bcf2c7f312ee488 Mon Sep 17 00:00:00 2001 From: ismaelcompsci Date: Fri, 27 Dec 2024 14:52:58 -0600 Subject: [PATCH 3/3] url --- packages/ffmpeg/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ffmpeg/package.json b/packages/ffmpeg/package.json index d8b5089939e..2b6919c696f 100644 --- a/packages/ffmpeg/package.json +++ b/packages/ffmpeg/package.json @@ -1,5 +1,5 @@ { - "name": "@ffmpeg/ffmpeg", + "name": "@ismaelcompsci/ffmpeg", "version": "0.12.13", "description": "FFmpeg WebAssembly version for browser", "main": "./dist/umd/ffmpeg.js", @@ -29,7 +29,7 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/ffmpegwasm/ffmpeg.wasm.git" + "url": "git+https://github.com/ismaelcompsci/ffmpeg.wasm.git" }, "keywords": [ "ffmpeg", @@ -41,12 +41,12 @@ "author": "Jerome Wu ", "license": "MIT", "bugs": { - "url": "https://github.com/ffmpegwasm/ffmpeg.wasm/issues" + "url": "https://github.com/ismaelcompsci/ffmpeg.wasm/issues" }, "engines": { "node": ">=18.x" }, - "homepage": "https://github.com/ffmpegwasm/ffmpeg.wasm#readme", + "homepage": "https://github.com/ismaelcompsci/ffmpeg.wasm#readme", "publishConfig": { "access": "public" },