discord-message-transcript-base 1.3.2-dev.1.50 → 1.3.2-dev.1.51
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/core/markdown.d.ts +1 -1
- package/dist/core/output.d.ts +2 -2
- package/dist/core/sanitizer.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/internalIndex.d.ts +1 -1
- package/dist/internalIndex.js +1 -1
- package/dist/renderers/html/html.d.ts +1 -1
- package/dist/renderers/html/html.js +1 -1
- package/package.json +1 -1
package/dist/core/markdown.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArrayMentions } from "
|
|
1
|
+
import { ArrayMentions } from "../types/internal/util.js";
|
|
2
2
|
export declare function markdownToHTML(text: string, mentions: ArrayMentions, everyone: boolean, dateFormat: Intl.DateTimeFormat): string;
|
package/dist/core/output.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Stream from 'stream';
|
|
2
|
-
import { JsonData } from '
|
|
3
|
-
import { Uploadable } from '
|
|
2
|
+
import { JsonData } from '../types/internal/message/messageItens.js';
|
|
3
|
+
import { Uploadable } from '../types/internal/util.js';
|
|
4
4
|
export declare function output(json: JsonData): Promise<string | Stream | Buffer | Uploadable>;
|
package/dist/core/sanitizer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hexColor } from "
|
|
1
|
+
import { hexColor } from "../types/internal/util.js";
|
|
2
2
|
export declare const FALLBACK_PIXEL = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
|
|
3
3
|
export declare function sanitize(text: string): string;
|
|
4
4
|
export declare function isValidHexColor(colorInput: string, canReturnNull: false): hexColor;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OutputType } from "
|
|
2
|
-
import { ReturnType } from "
|
|
3
|
-
import { ConvertTranscriptOptions } from "
|
|
4
|
-
export * from '
|
|
1
|
+
import { OutputType } from "./types/internal/parse.js";
|
|
2
|
+
import { ReturnType } from "./types/public/return.js";
|
|
3
|
+
import { ConvertTranscriptOptions } from "./types/public/transcript.js";
|
|
4
|
+
export * from './types/public/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Converts a JSON transcript string into an HTML transcript.
|
|
7
7
|
* Depending on the `returnType` option, this function can return a `string`, a `Buffer`, a `Stream`, or an `Uploadable` object.
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CustomError } from "./core/customMessages.js";
|
|
2
2
|
import { output } from "./core/output.js";
|
|
3
|
-
import { ReturnFormat } from "
|
|
4
|
-
import { ReturnType } from "
|
|
5
|
-
export * from '
|
|
3
|
+
import { ReturnFormat } from "./types/internal/return.js";
|
|
4
|
+
import { ReturnType } from "./types/public/return.js";
|
|
5
|
+
export * from './types/public/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Converts a JSON transcript string into an HTML transcript.
|
|
8
8
|
* Depending on the `returnType` option, this function can return a `string`, a `Buffer`, a `Stream`, or an `Uploadable` object.
|
package/dist/internalIndex.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { CustomError, CustomWarn } from "./core/customMessages.js";
|
|
2
2
|
export { output as outputBase } from "./core/output.js";
|
|
3
3
|
export { FALLBACK_PIXEL, isValidHexColor, sanitize } from "./core/sanitizer.js";
|
|
4
|
-
export * from "
|
|
4
|
+
export * from "./types/internal/index.js";
|
package/dist/internalIndex.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { CustomError, CustomWarn } from "./core/customMessages.js";
|
|
2
2
|
export { output as outputBase } from "./core/output.js";
|
|
3
3
|
export { FALLBACK_PIXEL, isValidHexColor, sanitize } from "./core/sanitizer.js";
|
|
4
|
-
export * from "
|
|
4
|
+
export * from "./types/internal/index.js";
|
|
@@ -5,7 +5,7 @@ import packageJson from "package.json" with { type: 'json' };
|
|
|
5
5
|
import { sanitize } from "../../core/sanitizer.js";
|
|
6
6
|
import highlightHash from "../../assets/highlightJsHash.json" with { type: 'json' };
|
|
7
7
|
import transcriptHash from "../../assets/transcriptHash.json" with { type: 'json' };
|
|
8
|
-
import { JsonComponentType, JsonButtonStyle } from "
|
|
8
|
+
import { JsonComponentType, JsonButtonStyle } from "../../types/internal/message/enum.js";
|
|
9
9
|
const FILE_SIZE_UNIT = ["KB", "MB", "GB", "TB"];
|
|
10
10
|
const FILE_SIZE_THRESHOLD = 512;
|
|
11
11
|
const BUTTON_COLORS = {
|