@axinom/mosaic-id-link-be 0.13.0-rc.10 → 0.13.0-rc.12
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-axios-error.d.ts","sourceRoot":"","sources":["../../src/common/assert-axios-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"assert-axios-error.d.ts","sourceRoot":"","sources":["../../src/common/assert-axios-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,CAC7B,KAAK,EAAE,OAAO,KACX,OAAO,CAAC,KAAK,IAAI,UAMrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-axios-error.js","sourceRoot":"","sources":["../../src/common/assert-axios-error.ts"],"names":[],"mappings":";;;AAAA,yEAA6D;AAG7D;;;;GAIG;AACI,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"assert-axios-error.js","sourceRoot":"","sources":["../../src/common/assert-axios-error.ts"],"names":[],"mappings":";;;AAAA,yEAA6D;AAG7D;;;;GAIG;AACI,MAAM,gBAAgB,GAEM,CACjC,KAAc,EACe,EAAE;IAC/B,IAAI,CAAE,KAAoB,CAAC,YAAY,EAAE;QACvC,MAAM,IAAI,oCAAY,CAAC,sCAAsC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;KAC3E;AACH,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-id-link-be",
|
|
3
|
-
"version": "0.13.0-rc.
|
|
3
|
+
"version": "0.13.0-rc.12",
|
|
4
4
|
"description": "Integration utilities from id-service for Axinom Mosaic services",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@apollo/client": "^3.7.9",
|
|
35
|
-
"@axinom/mosaic-core": "^0.4.3-rc.
|
|
36
|
-
"@axinom/mosaic-id-utils": "^0.15.0-rc.
|
|
37
|
-
"@axinom/mosaic-service-common": "^0.31.0-rc.
|
|
35
|
+
"@axinom/mosaic-core": "^0.4.3-rc.20",
|
|
36
|
+
"@axinom/mosaic-id-utils": "^0.15.0-rc.20",
|
|
37
|
+
"@axinom/mosaic-service-common": "^0.31.0-rc.12",
|
|
38
38
|
"axios": "^0.19.2",
|
|
39
39
|
"cross-fetch": "^3.0.4",
|
|
40
40
|
"graphql": "^15.4.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "83f5a66d30621d45c3657750d1cdc6478846d0b5"
|
|
56
56
|
}
|
|
@@ -6,9 +6,12 @@ import { AxiosError } from 'axios';
|
|
|
6
6
|
*
|
|
7
7
|
* @param error error object of type unknown
|
|
8
8
|
*/
|
|
9
|
-
export const assertAxiosError: (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
export const assertAxiosError: (
|
|
10
|
+
error: unknown,
|
|
11
|
+
) => asserts error is AxiosError = (
|
|
12
|
+
error: unknown,
|
|
13
|
+
): asserts error is AxiosError => {
|
|
14
|
+
if (!(error as AxiosError).isAxiosError) {
|
|
15
|
+
throw new GeneralError(`A caught error is not an AxiosError.`, { error });
|
|
16
|
+
}
|
|
17
|
+
};
|