@appscode/design-system 1.0.43-alpha.216 → 1.0.43-alpha.217
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/package.json +4 -2
- package/plugins/caching.ts +3 -9
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appscode/design-system",
|
|
3
|
-
"version": "1.0.43-alpha.
|
|
3
|
+
"version": "1.0.43-alpha.217",
|
|
4
4
|
"description": "A design system for Appscode websites and dashboards made using Bulma",
|
|
5
5
|
"main": "main.scss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@appscode/design-system-images": "^0.0.13"
|
|
10
|
+
"@appscode/design-system-images": "^0.0.13",
|
|
11
|
+
"crypto-js": "^4.1.1",
|
|
12
|
+
"fast-json-stable-stringify": "^2.1.0"
|
|
11
13
|
},
|
|
12
14
|
"repository": {
|
|
13
15
|
"type": "git",
|
package/plugins/caching.ts
CHANGED
|
@@ -7,9 +7,7 @@ const resourceListApiRgx =
|
|
|
7
7
|
const usermenuUpdateApiRgx =
|
|
8
8
|
/^\/clusters\/([^/]+)\/([^/]+)\/proxy\/meta\.k8s\.appscode\.com\/([^/]+)\/usermenus\/cluster$/;
|
|
9
9
|
|
|
10
|
-
function getRequestInterceptor(
|
|
11
|
-
config: AxiosRequestConfig & { _recurringCall: boolean }
|
|
12
|
-
) {
|
|
10
|
+
function getRequestInterceptor(config: AxiosRequestConfig) {
|
|
13
11
|
// get call
|
|
14
12
|
const { url, _recurringCall, params } = config;
|
|
15
13
|
const matchListApi = url?.match(resourceListApiRgx);
|
|
@@ -37,9 +35,7 @@ function getRequestInterceptor(
|
|
|
37
35
|
function getResponseInterceptor(resp: AxiosResponse) {
|
|
38
36
|
// get call
|
|
39
37
|
const { config, headers } = resp;
|
|
40
|
-
const { url, _recurringCall, params } = config
|
|
41
|
-
_recurringCall: boolean;
|
|
42
|
-
};
|
|
38
|
+
const { url, _recurringCall, params } = config;
|
|
43
39
|
const matchListApi = url?.match(resourceListApiRgx);
|
|
44
40
|
if (matchListApi) {
|
|
45
41
|
// url matches list / render api call
|
|
@@ -162,9 +158,7 @@ export function handleCacheFromYamls(
|
|
|
162
158
|
};
|
|
163
159
|
}
|
|
164
160
|
|
|
165
|
-
export async function requestInterceptor(
|
|
166
|
-
config: AxiosRequestConfig & { _recurringCall: boolean }
|
|
167
|
-
) {
|
|
161
|
+
export async function requestInterceptor(config: AxiosRequestConfig) {
|
|
168
162
|
// parse the request url
|
|
169
163
|
const { method, params } = config;
|
|
170
164
|
|