From 2ae923b73e27aff537b070516e4e433967a81ba8 Mon Sep 17 00:00:00 2001 From: mshwed Date: Sat, 15 Feb 2025 23:03:05 -0500 Subject: [PATCH] Updated category and fixed imports --- src/core/config/Categories.json | 3 ++- src/core/operations/MIMEDecoding.mjs | 10 +++++----- tests/operations/index.mjs | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/core/config/Categories.json b/src/core/config/Categories.json index 1f309d82..de3ea882 100644 --- a/src/core/config/Categories.json +++ b/src/core/config/Categories.json @@ -76,7 +76,8 @@ "Rison Encode", "Rison Decode", "To Modhex", - "From Modhex" + "From Modhex", + "MIME Decoding" ] }, { diff --git a/src/core/operations/MIMEDecoding.mjs b/src/core/operations/MIMEDecoding.mjs index 2d7eac99..7b52fbdd 100644 --- a/src/core/operations/MIMEDecoding.mjs +++ b/src/core/operations/MIMEDecoding.mjs @@ -4,12 +4,12 @@ * @license Apache-2.0 */ -import Operation from "../Operation"; -import OperationError from "../errors/OperationError"; -import Utils from "../Utils"; +import Operation from "../Operation.mjs"; +import OperationError from "../errors/OperationError.mjs"; +import Utils from "../Utils.mjs"; import { fromHex } from "../lib/Hex.mjs"; -import { fromBase64 } from "../lib/Base64"; -import cptable from "../vendor/js-codepage/cptable.js"; +import { fromBase64 } from "../lib/Base64.mjs"; +import cptable from "codepage"; /** * MIME Decoding operation diff --git a/tests/operations/index.mjs b/tests/operations/index.mjs index 0f61fd90..a82bc874 100644 --- a/tests/operations/index.mjs +++ b/tests/operations/index.mjs @@ -104,7 +104,7 @@ import "./tests/LZNT1Decompress.mjs"; import "./tests/LZString.mjs"; import "./tests/Magic.mjs"; import "./tests/Media.mjs"; -import "./tests/MIMEDecoding"; +import "./tests/MIMEDecoding.mjs"; import "./tests/Modhex.mjs"; import "./tests/MorseCode.mjs"; import "./tests/MS.mjs";