File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,20 +22,24 @@ export type OutputOptions = {
2222 readonly rerunInterval ?: number ;
2323} ;
2424
25+ // eslint-disable-next-line unicorn/prevent-abbreviations
2526export type CacheConfGetOptions = {
2627 /**
2728 Get the item for the key provided without taking the `maxAge` of the item into account.
2829 */
2930 readonly ignoreMaxAge ?: boolean ;
3031} ;
3132
33+ // eslint-disable-next-line unicorn/prevent-abbreviations
3234export type CacheConfSetOptions = {
3335 /**
3436 Number of milliseconds the cached value is valid.
3537 */
3638 readonly maxAge ?: number ;
3739} ;
3840
41+ // TODO: Rename this in the next major version.
42+ // eslint-disable-next-line unicorn/prevent-abbreviations
3943export type CacheConf < T extends Record < string , any > = Record < string , unknown > > = {
4044 isExpired : ( key : keyof T ) => boolean ;
4145
Original file line number Diff line number Diff line change @@ -118,11 +118,6 @@ alfy.fetch = async (url, options) => {
118118 ...options ,
119119 } ;
120120
121- // TODO: Remove this in 2024.
122- if ( options . query ) {
123- throw new Error ( 'The `query` option was renamed to `searchParams`.' ) ;
124- }
125-
126121 if ( typeof url !== 'string' ) {
127122 throw new TypeError ( `Expected \`url\` to be a \`string\`, got \`${ typeof url } \`` ) ;
128123 }
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import {readPackageUp} from 'read-package-up';
22import alfredNotifier from 'alfred-notifier' ;
33
44export 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 ?? { } ;
77
88 if ( alfy . updateNotification !== false ) {
99 alfredNotifier ( ) ;
Original file line number Diff line number Diff line change 44 "description" : " Create Alfred workflows with ease" ,
55 "license" : " MIT" ,
66 "repository" : " sindresorhus/alfy" ,
7+ "funding" : " https://github.com/sponsors/sindresorhus" ,
78 "type" : " module" ,
89 "bin" : {
910 "run-node" : " ./run-node.sh" ,
1415 "types" : " ./index.d.ts" ,
1516 "default" : " ./index.js"
1617 },
18+ "sideEffects" : false ,
1719 "engines" : {
1820 "node" : " >=18"
1921 },
4547 "alfred-notifier" : " ^0.2.3" ,
4648 "cache-conf" : " ^0.6.0" ,
4749 "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 " ,
5254 "hook-std" : " ^3.0.0" ,
5355 "loud-rejection" : " ^2.2.0" ,
5456 "read-package-up" : " ^11.0.0"
5557 },
5658 "devDependencies" : {
57- "ava" : " ^5.3.1 " ,
59+ "ava" : " ^6.1.3 " ,
5860 "delay" : " ^6.0.0" ,
59- "nock" : " ^13.3.8 " ,
61+ "nock" : " ^13.5.4 " ,
6062 "tempfile" : " ^5.0.0" ,
61- "tsd" : " ^0.29.0 " ,
62- "xo" : " ^0.56.0 "
63+ "tsd" : " ^0.31.1 " ,
64+ "xo" : " ^0.59.2 "
6365 },
6466 "tsd" : {
6567 "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
103103 "author" : {
104104 "name" : " Sindre Sorhus" ,
105105 "email" : " sindresorhus@gmail.com" ,
106- "url" : " sindresorhus.com"
106+ "url" : " https:// sindresorhus.com"
107107 },
108108 "scripts" : {
109109 "postinstall" : " alfy-init" ,
You can’t perform that action at this time.
0 commit comments