@lls/offline 24.36.0-a20816bd → 24.36.0-b41b307d

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,10 +1,10 @@
1
1
  // src/utils/error.ts
2
2
  var tryCatch = (fn) => {
3
- return (resolve, reject) => {
3
+ return (resolve) => {
4
4
  try {
5
5
  return fn().then(resolve);
6
6
  } catch (e) {
7
- return reject(e);
7
+ console.error(e);
8
8
  }
9
9
  };
10
10
  };
@@ -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, reject: AnyFunction) => void | Promise<void>;
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, reject) => {
6
+ return (resolve) => {
7
7
  try {
8
8
  return fn().then(resolve);
9
9
  } catch (e) {
10
- return reject(e);
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-a20816bd",
3
+ "version": "24.36.0-b41b307d",
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.8.3",
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-a20816bd"
56
+ "@lls/vitescripts": "24.36.0-b41b307d"
57
57
  },
58
58
  "dependencies": {
59
59
  "redux-persist": "6.0.0"