@axinom/mosaic-id-link-be 0.15.0-rc.5 → 0.15.0-rc.6

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,CAC7B,KAAK,EAAE,OAAO,KACX,OAAO,CAAC,KAAK,IAAI,UAMrB,CAAC"}
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,UAUrB,CAAC"}
@@ -9,7 +9,11 @@ const mosaic_service_common_1 = require("@axinom/mosaic-service-common");
9
9
  */
10
10
  const assertAxiosError = (error) => {
11
11
  if (!error.isAxiosError) {
12
- throw new mosaic_service_common_1.GeneralError(`A caught error is not an AxiosError.`, { error });
12
+ throw new mosaic_service_common_1.MosaicError({
13
+ message: 'A caught error is not an AxiosError.',
14
+ code: 'NOT_AXIOS_ERROR',
15
+ details: { error },
16
+ });
13
17
  }
14
18
  };
15
19
  exports.assertAxiosError = assertAxiosError;
@@ -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,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"}
1
+ {"version":3,"file":"assert-axios-error.js","sourceRoot":"","sources":["../../src/common/assert-axios-error.ts"],"names":[],"mappings":";;;AAAA,yEAA4D;AAG5D;;;;GAIG;AACI,MAAM,gBAAgB,GAEM,CACjC,KAAc,EACe,EAAE;IAC/B,IAAI,CAAE,KAAoB,CAAC,YAAY,EAAE;QACvC,MAAM,IAAI,mCAAW,CAAC;YACpB,OAAO,EAAE,sCAAsC;YAC/C,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,EAAE,KAAK,EAAE;SACnB,CAAC,CAAC;KACJ;AACH,CAAC,CAAC;AAZW,QAAA,gBAAgB,oBAY3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-id-link-be",
3
- "version": "0.15.0-rc.5",
3
+ "version": "0.15.0-rc.6",
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.14-rc.5",
36
- "@axinom/mosaic-id-utils": "^0.15.11-rc.5",
37
- "@axinom/mosaic-service-common": "^0.43.0-rc.5",
35
+ "@axinom/mosaic-core": "^0.4.14-rc.6",
36
+ "@axinom/mosaic-id-utils": "^0.15.11-rc.6",
37
+ "@axinom/mosaic-service-common": "^0.43.0-rc.6",
38
38
  "axios": "1.6.3",
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": "6f103880206b41eb793b69a31c83e99dcf3b128d"
55
+ "gitHead": "ca05604aba530bf74ad298b542b6fd1596f839c2"
56
56
  }
@@ -1,4 +1,4 @@
1
- import { GeneralError } from '@axinom/mosaic-service-common';
1
+ import { MosaicError } from '@axinom/mosaic-service-common';
2
2
  import { AxiosError } from 'axios';
3
3
 
4
4
  /**
@@ -12,6 +12,10 @@ export const assertAxiosError: (
12
12
  error: unknown,
13
13
  ): asserts error is AxiosError => {
14
14
  if (!(error as AxiosError).isAxiosError) {
15
- throw new GeneralError(`A caught error is not an AxiosError.`, { error });
15
+ throw new MosaicError({
16
+ message: 'A caught error is not an AxiosError.',
17
+ code: 'NOT_AXIOS_ERROR',
18
+ details: { error },
19
+ });
16
20
  }
17
21
  };