File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
- import type { NtfyMessageOptions , NtfyMessagePriority } from './types.js' ;
1
+ import type { NtfyMessageOptions } from './types.js' ;
2
2
/**
3
3
* The default ntfy server to use.
4
4
*/
@@ -10,11 +10,11 @@ export declare const DEFAULT_SERVER = "https://ntfy.sh";
10
10
/**
11
11
* The default priority to use when sending a message.
12
12
*/
13
- export declare const DEFAULT_NTFY_PRIORITY : NtfyMessagePriority ;
13
+ export declare const DEFAULT_NTFY_PRIORITY : "3" ;
14
14
/**
15
15
* @deprecated Use `DEFAULT_NTFY_PRIORITY` instead.
16
16
*/
17
- export declare const DEFAULT_PRIORITY : "default " ;
17
+ export declare const DEFAULT_PRIORITY : "3 " ;
18
18
/**
19
19
* Send a message through an ntfy server.
20
20
* @param ntfyMessage The message to post.
Original file line number Diff line number Diff line change 1
1
import fs from 'node:fs/promises' ;
2
+ import { ntfyMessagePriorityDefault } from './priorities.js' ;
2
3
/**
3
4
* The default ntfy server to use.
4
5
*/
@@ -10,7 +11,7 @@ export const DEFAULT_SERVER = DEFAULT_NTFY_SERVER;
10
11
/**
11
12
* The default priority to use when sending a message.
12
13
*/
13
- export const DEFAULT_NTFY_PRIORITY = 'default' ;
14
+ export const DEFAULT_NTFY_PRIORITY = ntfyMessagePriorityDefault ;
14
15
/**
15
16
* @deprecated Use `DEFAULT_NTFY_PRIORITY` instead.
16
17
*/
Original file line number Diff line number Diff line change 1
1
import fs from 'node:fs/promises'
2
2
3
- import type {
4
- FetchHeaders ,
5
- NtfyMessageOptions ,
6
- NtfyMessagePriority
7
- } from './types.js'
3
+ import { ntfyMessagePriorityDefault } from './priorities.js'
4
+ import type { FetchHeaders , NtfyMessageOptions } from './types.js'
8
5
9
6
/**
10
7
* The default ntfy server to use.
@@ -19,7 +16,7 @@ export const DEFAULT_SERVER = DEFAULT_NTFY_SERVER
19
16
/**
20
17
* The default priority to use when sending a message.
21
18
*/
22
- export const DEFAULT_NTFY_PRIORITY : NtfyMessagePriority = 'default'
19
+ export const DEFAULT_NTFY_PRIORITY = ntfyMessagePriorityDefault
23
20
24
21
/**
25
22
* @deprecated Use `DEFAULT_NTFY_PRIORITY` instead.
You can’t perform that action at this time.
0 commit comments