@ovencord/formatters 0.6.1 → 0.6.2
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/package.json +1 -3
- package/src/formatters.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@ovencord/formatters",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"description": "A set of functions to format strings for Discord.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "bun test",
|
|
@@ -34,8 +34,6 @@
|
|
|
34
34
|
"discord-api-types": "^0.38.36"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@ovencord/api-extractor": "^7.52.7",
|
|
38
|
-
"@ovencord/scripts": "^0.1.0",
|
|
39
37
|
"@favware/cliff-jumper": "^6.0.0",
|
|
40
38
|
"@vitest/coverage-v8": "^4.0.15",
|
|
41
39
|
"cross-env": "^10.1.0",
|
package/src/formatters.ts
CHANGED
|
@@ -687,7 +687,7 @@ export function email<Email extends string>(
|
|
|
687
687
|
export function email<Email extends string>(email: Email, headers?: Record<string, string | readonly string[]>) {
|
|
688
688
|
if (headers) {
|
|
689
689
|
const searchParams = new URLSearchParams(
|
|
690
|
-
Object.fromEntries(Object.entries(headers).map(([key, value]) => [key.toLowerCase(), value])),
|
|
690
|
+
Object.fromEntries(Object.entries(headers).map(([key, value]) => [key.toLowerCase(), value])) as Record<string, string>,
|
|
691
691
|
);
|
|
692
692
|
|
|
693
693
|
return `<${email}?${searchParams.toString()}>` as const;
|