@lls/offline 24.36.0-b4de2c87 → 24.36.0-c31a817a
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { AnyFunction } from '@lls/typings/utils';
|
|
2
|
-
export declare const tryCatch: (fn: (...args: any[]) => Promise<unknown>) => (resolve: AnyFunction
|
|
2
|
+
export declare const tryCatch: (fn: (...args: any[]) => Promise<unknown>) => (resolve: AnyFunction) => Promise<void> | undefined;
|
package/lib/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { useCallback, useEffect, useState } from "react";
|
|
|
3
3
|
|
|
4
4
|
// src/utils/error.ts
|
|
5
5
|
var tryCatch = (fn) => {
|
|
6
|
-
return (resolve
|
|
6
|
+
return (resolve) => {
|
|
7
7
|
try {
|
|
8
8
|
return fn().then(resolve);
|
|
9
9
|
} catch (e) {
|
|
10
|
-
|
|
10
|
+
console.error(e);
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lls/offline",
|
|
3
|
-
"version": "24.36.0-
|
|
3
|
+
"version": "24.36.0-c31a817a",
|
|
4
4
|
"description": "offline",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"react": "18.3.1",
|
|
50
50
|
"react-dom": "18.3.1",
|
|
51
51
|
"redux": "5.0.1",
|
|
52
|
-
"typescript": "5.
|
|
52
|
+
"typescript": "5.9.3",
|
|
53
53
|
"vite": "npm:rolldown-vite@7.2.10",
|
|
54
54
|
"vite-tsconfig-paths": "5.1.4",
|
|
55
55
|
"zod": "3.25.50",
|
|
56
|
-
"@lls/vitescripts": "24.36.0-
|
|
56
|
+
"@lls/vitescripts": "24.36.0-c31a817a"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"redux-persist": "6.0.0"
|