@easbot/utils 0.2.39 → 0.2.40
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/index.cjs +46 -54
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.mjs +46 -54
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -42,7 +42,6 @@ declare namespace Encode {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
declare namespace TruncateContent {
|
|
45
|
-
const DIR: string;
|
|
46
45
|
const DEFAULT_MAX_CHARS = 4000;
|
|
47
46
|
const DIRECTION: "head";
|
|
48
47
|
type Result = {
|
|
@@ -63,8 +62,7 @@ declare namespace TruncateContent {
|
|
|
63
62
|
dir?: string;
|
|
64
63
|
sourcePath?: string;
|
|
65
64
|
}
|
|
66
|
-
function truncate(content: string, options?: Options): Result
|
|
67
|
-
function truncateAndSave(content: string, options?: Options): Promise<Result>;
|
|
65
|
+
function truncate(content: string, options?: Options): Promise<Result>;
|
|
68
66
|
function formatHint(result: Result): string;
|
|
69
67
|
}
|
|
70
68
|
|
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,6 @@ declare namespace Encode {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
declare namespace TruncateContent {
|
|
45
|
-
const DIR: string;
|
|
46
45
|
const DEFAULT_MAX_CHARS = 4000;
|
|
47
46
|
const DIRECTION: "head";
|
|
48
47
|
type Result = {
|
|
@@ -63,8 +62,7 @@ declare namespace TruncateContent {
|
|
|
63
62
|
dir?: string;
|
|
64
63
|
sourcePath?: string;
|
|
65
64
|
}
|
|
66
|
-
function truncate(content: string, options?: Options): Result
|
|
67
|
-
function truncateAndSave(content: string, options?: Options): Promise<Result>;
|
|
65
|
+
function truncate(content: string, options?: Options): Promise<Result>;
|
|
68
66
|
function formatHint(result: Result): string;
|
|
69
67
|
}
|
|
70
68
|
|