@autobusal/utilities 1.7.0 → 1.8.0

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.
Files changed (2) hide show
  1. package/notify.ts +4 -2
  2. package/package.json +1 -1
package/notify.ts CHANGED
@@ -28,8 +28,10 @@ export const error = (message: string, id: string = message): void => {
28
28
  toast.error(message, { id });
29
29
  };
30
30
 
31
- export const notify = (message: string): void => {
32
- toast(message);
31
+ // Claude - 2026-11-05: a longer stay for news the visitor must not miss
32
+ // while the page moves on (a refund that went to the manual queue)
33
+ export const notify = (message: string, duration?: number): void => {
34
+ toast(message, duration ? { duration } : undefined);
33
35
  };
34
36
 
35
37
  export const success = (message: string): void => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/utilities",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts",