@levo-so/core 0.1.7 → 0.1.9

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.
@@ -5,12 +5,14 @@ var LevoError = class extends Error {
5
5
  code;
6
6
  title;
7
7
  message;
8
+ status;
8
9
  constructor(data) {
9
- super(data.message || data.description);
10
- this.name = "LevoMembershipError";
11
- this.code = data.code;
12
- this.message = data.message || data.description;
13
- this.title = data.title;
10
+ super(data?.message || data?.description);
11
+ this.name = "Levo Request Error";
12
+ this.status = data?.status;
13
+ this.code = data?.code;
14
+ this.message = data?.message || data?.description;
15
+ this.title = data?.title;
14
16
  }
15
17
  };
16
18
  var getLevoError = (error) => {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { LevoError, getLevoError } from './chunk-WOD3VIYR.js';
1
+ export { LevoError, getLevoError } from './chunk-LBBL2IWF.js';
2
2
  export { LevoOAuthProviderList } from './chunk-ZLLCLSGE.js';
3
3
  export { LevoPlugin } from './chunk-QJSKNLTV.js';
4
4
  import wretch from 'wretch';
@@ -1,4 +1,4 @@
1
- import { getLevoError } from '../chunk-WOD3VIYR.js';
1
+ import { getLevoError } from '../chunk-LBBL2IWF.js';
2
2
  import { LevoPlugin } from '../chunk-QJSKNLTV.js';
3
3
  import { onUserActivity } from '@analytics/activity-utils';
4
4
  import { getVisitorSource } from '@analytics/visitor-source';
@@ -1,7 +1,7 @@
1
1
  export type ILevoError = {
2
2
  description: string;
3
3
  code: string;
4
- status: number;
4
+ status: string;
5
5
  title: string;
6
6
  message?: string;
7
7
  type?: string;
@@ -10,6 +10,7 @@ export declare class LevoError extends Error {
10
10
  code: string;
11
11
  title: string;
12
12
  message: string;
13
+ status: string;
13
14
  constructor(data: ILevoError);
14
15
  }
15
16
  //# sourceMappingURL=LevoError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LevoError.d.ts","sourceRoot":"","sources":["../../src/utils/LevoError.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,qBAAa,SAAU,SAAQ,KAAK;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;gBAEJ,IAAI,EAAE,UAAU;CAQ7B"}
1
+ {"version":3,"file":"LevoError.d.ts","sourceRoot":"","sources":["../../src/utils/LevoError.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,qBAAa,SAAU,SAAQ,KAAK;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;gBAEH,IAAI,EAAE,UAAU;CAS7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/core",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo common utilities",
6
6
  "type": "module",