@js-smart/react-kit 5.12.0 → 5.13.0-beta.1

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.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Tiny fetch wrapper for making HTTP requests with TypeScript support.
3
+ * @template T - The expected response type.
4
+ * @param {string} url - The URL to request.
5
+ * @param {RequestInit} [options] - Options for the fetch request.
6
+ * @returns {Promise<T>} - A promise that resolves to the JSON response of type T.
7
+ * @throws {Error} - Throws an isError if the response is not OK.
8
+ *
9
+ * @author Pavan Kumar Jadda
10
+ * @since 1.0.3
11
+ */
12
+ export declare function fetchClient<T>(url: string, options?: RequestInit): Promise<T>;
package/package.json CHANGED
@@ -1,46 +1,45 @@
1
1
  {
2
- "name": "@js-smart/react-kit",
3
- "private": false,
4
- "version": "5.12.0",
5
- "main": "./index.js",
6
- "types": "./index.d.ts",
7
- "type": "module",
8
- "publishConfig": {
9
- "access": "public"
10
- },
11
- "peerDependencies": {
12
- "@emotion/react": "^11.14.0",
13
- "@emotion/styled": "^11.14.1",
14
- "@mui/icons-material": "^7.2.0",
15
- "@mui/material": "^7.2.0",
16
- "date-fns": "^4.1.0",
17
- "react": "^18.3.1 || ^19.0.0",
18
- "react-dom": "^18.3.1 || ^19.0.0",
19
- "react-router-dom": "^7.6.3"
20
- },
21
- "exports": {
22
- ".": {
23
- "import": "./index.mjs",
24
- "require": "./index.js"
25
- }
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/js-smart/react-kit"
30
- },
31
- "author": {
32
- "name": "Pavan Kumar Jadda",
33
- "email": "contact@pavankjadda.dev"
34
- },
35
- "keywords": [
36
- "react",
37
- "react-kit",
38
- "react-components",
39
- "react-utils",
40
- "typescript"
41
- ],
42
- "license": "MIT",
43
- "bugs": {
44
- "url": "https://github.com/js-smart/react-kit/issues"
45
- }
2
+ "name": "@js-smart/react-kit",
3
+ "private": false,
4
+ "version": "5.13.0-beta.1",
5
+ "main": "./index.js",
6
+ "types": "./index.d.ts",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "peerDependencies": {
11
+ "@emotion/react": "^11.14.0",
12
+ "@emotion/styled": "^11.14.1",
13
+ "@mui/icons-material": "^7.3.1",
14
+ "@mui/material": "^7.3.1",
15
+ "date-fns": "^4.1.0",
16
+ "react": "^18.3.1 || ^19.0.0",
17
+ "react-dom": "^18.3.1 || ^19.0.0",
18
+ "react-router-dom": "^7.8.0"
19
+ },
20
+ "exports": {
21
+ ".": {
22
+ "import": "./index.mjs",
23
+ "require": "./index.js"
24
+ }
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/js-smart/react-kit"
29
+ },
30
+ "author": {
31
+ "name": "Pavan Kumar Jadda",
32
+ "email": "contact@pavankjadda.dev"
33
+ },
34
+ "keywords": [
35
+ "react",
36
+ "react-kit",
37
+ "react-components",
38
+ "react-utils",
39
+ "typescript"
40
+ ],
41
+ "license": "MIT",
42
+ "bugs": {
43
+ "url": "https://github.com/js-smart/react-kit/issues"
44
+ }
46
45
  }