andoncloud-sdk 1.4.15 → 1.4.16

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.
package/dist/index.d.ts CHANGED
@@ -78,6 +78,7 @@ declare module "andoncloud-sdk" {
78
78
  export interface Session {
79
79
  user: UserData;
80
80
  accessToken: string;
81
+ refreshToken: string;
81
82
  }
82
83
 
83
84
  interface LoginProps {
@@ -97,8 +98,10 @@ declare module "andoncloud-sdk" {
97
98
  authResponse?: {
98
99
  user: UserData;
99
100
  accessToken: string;
101
+ refreshToken: string;
100
102
  tokenType: string;
101
- expiresIn: string;
103
+ createdAt: number;
104
+ expiresIn: number;
102
105
  };
103
106
  }
104
107
 
@@ -109,4 +112,6 @@ declare module "andoncloud-sdk" {
109
112
  export const setLocale: (lang: string) => void;
110
113
 
111
114
  export const notify: typeof toast;
115
+
116
+ export const fetch: typeof global.fetch;
112
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "andoncloud-sdk",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "source": "src/index.js",
@@ -40,27 +40,27 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@babel/cli": "^7.19.3",
43
- "@emotion/react": "^11.10.4",
44
- "@emotion/styled": "^11.10.4",
45
- "@mui/icons-material": "^5.10.6",
46
- "@mui/lab": "^5.0.0-alpha.102",
47
- "@mui/material": "^5.10.8",
48
- "@testing-library/dom": "^8.18.1",
43
+ "@emotion/react": "^11.10.5",
44
+ "@emotion/styled": "^11.10.5",
45
+ "@mui/icons-material": "^5.10.16",
46
+ "@mui/lab": "^5.0.0-alpha.110",
47
+ "@mui/material": "^5.10.16",
48
+ "@testing-library/dom": "^8.19.0",
49
49
  "@testing-library/jest-dom": "^5.16.5",
50
50
  "@testing-library/react": "^13.4.0",
51
- "@types/react": "^18.0.21",
52
- "@types/react-dom": "^18.0.6",
51
+ "@types/react": "^18.0.25",
52
+ "@types/react-dom": "^18.0.9",
53
53
  "andoncloud-library-scripts": "^1.0.3",
54
54
  "babel-preset-react-app": "^10.0.1",
55
55
  "copyfiles": "^2.4.1",
56
56
  "cross-env": "^7.0.3",
57
57
  "microbundle-crl": "^0.13.11",
58
- "mobx": "^6.6.2",
58
+ "mobx": "^6.7.0",
59
59
  "mobx-react-lite": "^3.4.0",
60
60
  "npm-run-all": "^4.1.5",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
- "react-router-dom": "^6.4.2",
63
+ "react-router-dom": "^6.4.3",
64
64
  "react-scripts": "^5.0.1"
65
65
  },
66
66
  "peerDependencies": {