5 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,24 @@ export type OutputOptions = {
22
22
readonly rerunInterval ?: number ;
23
23
} ;
24
24
25
+ // eslint-disable-next-line unicorn/prevent-abbreviations
25
26
export type CacheConfGetOptions = {
26
27
/**
27
28
Get the item for the key provided without taking the `maxAge` of the item into account.
28
29
*/
29
30
readonly ignoreMaxAge ?: boolean ;
30
31
} ;
31
32
33
+ // eslint-disable-next-line unicorn/prevent-abbreviations
32
34
export type CacheConfSetOptions = {
33
35
/**
34
36
Number of milliseconds the cached value is valid.
35
37
*/
36
38
readonly maxAge ?: number ;
37
39
} ;
38
40
41
+ // TODO: Rename this in the next major version.
42
+ // eslint-disable-next-line unicorn/prevent-abbreviations
39
43
export type CacheConf < T extends Record < string , any > = Record < string , unknown > > = {
40
44
isExpired : ( key : keyof T ) => boolean ;
41
45
Original file line number Diff line number Diff line change @@ -118,11 +118,6 @@ alfy.fetch = async (url, options) => {
118
118
...options ,
119
119
} ;
120
120
121
- // TODO: Remove this in 2024.
122
- if ( options . query ) {
123
- throw new Error ( 'The `query` option was renamed to `searchParams`.' ) ;
124
- }
125
-
126
121
if ( typeof url !== 'string' ) {
127
122
throw new TypeError ( `Expected \`url\` to be a \`string\`, got \`${ typeof url } \`` ) ;
128
123
}
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import {readPackageUp} from 'read-package-up';
2
2
import alfredNotifier from 'alfred-notifier' ;
3
3
4
4
export default async function updateNotification ( ) {
5
- const { package : pkg } = await readPackageUp ( ) ;
6
- const alfy = ( pkg || { } ) . alfy || { } ;
5
+ const { package : package_ } = await readPackageUp ( ) ;
6
+ const alfy = package_ ? .alfy ?? { } ;
7
7
8
8
if ( alfy . updateNotification !== false ) {
9
9
alfredNotifier ( ) ;
Original file line number Diff line number Diff line change 4
4
"description" : " Create Alfred workflows with ease" ,
5
5
"license" : " MIT" ,
6
6
"repository" : " sindresorhus/alfy" ,
7
+ "funding" : " https://github.com/sponsors/sindresorhus" ,
7
8
"type" : " module" ,
8
9
"bin" : {
9
10
"run-node" : " ./run-node.sh" ,
14
15
"types" : " ./index.d.ts" ,
15
16
"default" : " ./index.js"
16
17
},
18
+ "sideEffects" : false ,
17
19
"engines" : {
18
20
"node" : " >=18"
19
21
},
45
47
"alfred-notifier" : " ^0.2.3" ,
46
48
"cache-conf" : " ^0.6.0" ,
47
49
"clean-stack" : " ^5.2.0" ,
48
- "conf" : " ^12 .0.0 " ,
49
- "dot-prop" : " ^8 .0.2 " ,
50
- "execa" : " ^8.0.1 " ,
51
- "got" : " ^13.0.0 " ,
50
+ "conf" : " ^13 .0.1 " ,
51
+ "dot-prop" : " ^9 .0.0 " ,
52
+ "execa" : " ^9.3.0 " ,
53
+ "got" : " ^14.4.2 " ,
52
54
"hook-std" : " ^3.0.0" ,
53
55
"loud-rejection" : " ^2.2.0" ,
54
56
"read-package-up" : " ^11.0.0"
55
57
},
56
58
"devDependencies" : {
57
- "ava" : " ^5.3.1 " ,
59
+ "ava" : " ^6.1.3 " ,
58
60
"delay" : " ^6.0.0" ,
59
- "nock" : " ^13.3.8 " ,
61
+ "nock" : " ^13.5.4 " ,
60
62
"tempfile" : " ^5.0.0" ,
61
- "tsd" : " ^0.29.0 " ,
62
- "xo" : " ^0.56.0 "
63
+ "tsd" : " ^0.31.1 " ,
64
+ "xo" : " ^0.59.2 "
63
65
},
64
66
"tsd" : {
65
67
"compilerOptions" : {
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ By adding `alfy-init` as `postinstall` and `alfy-cleanup` as `preuninstall` scri
103
103
"author" : {
104
104
"name" : " Sindre Sorhus" ,
105
105
"email" : " sindresorhus@gmail.com" ,
106
- "url" : " sindresorhus.com"
106
+ "url" : " https:// sindresorhus.com"
107
107
},
108
108
"scripts" : {
109
109
"postinstall" : " alfy-init" ,
0 commit comments