@justins-home/api-services 1.1.8 → 1.2.0

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.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { operations } from '@justins-home/types/generated/api-types';
2
- export { initApiToken as setupAuth } from '@justins-home/http-client';
2
+ export { initApiToken as setupAuth, configureHttpClient as setupClient } from '@justins-home/http-client';
3
3
 
4
4
  declare class ApiError<T = unknown> extends Error {
5
5
  status?: number;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { operations } from '@justins-home/types/generated/api-types';
2
- export { initApiToken as setupAuth } from '@justins-home/http-client';
2
+ export { initApiToken as setupAuth, configureHttpClient as setupClient } from '@justins-home/http-client';
3
3
 
4
4
  declare class ApiError<T = unknown> extends Error {
5
5
  status?: number;
package/dist/index.js CHANGED
@@ -40,6 +40,7 @@ __export(index_exports, {
40
40
  plan: () => plan,
41
41
  review: () => review,
42
42
  setupAuth: () => import_http_client2.initApiToken,
43
+ setupClient: () => import_http_client2.configureHttpClient,
43
44
  tenancy: () => tenancy,
44
45
  tenant: () => tenant,
45
46
  userverification: () => userverification,
@@ -681,6 +682,7 @@ var wishlist = {
681
682
  plan,
682
683
  review,
683
684
  setupAuth,
685
+ setupClient,
684
686
  tenancy,
685
687
  tenant,
686
688
  userverification,
package/dist/index.mjs CHANGED
@@ -51,7 +51,10 @@ var api = {
51
51
  };
52
52
 
53
53
  // src/helpers/authTokenInit.ts
54
- import { initApiToken } from "@justins-home/http-client";
54
+ import {
55
+ configureHttpClient,
56
+ initApiToken
57
+ } from "@justins-home/http-client";
55
58
 
56
59
  // src/generated/admin.ts
57
60
  var admin = {
@@ -631,6 +634,7 @@ export {
631
634
  plan,
632
635
  review,
633
636
  initApiToken as setupAuth,
637
+ configureHttpClient as setupClient,
634
638
  tenancy,
635
639
  tenant,
636
640
  userverification,
package/package.json CHANGED
@@ -1,16 +1,23 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.js",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
8
15
  "files": [
9
16
  "dist"
10
17
  ],
11
18
  "dependencies": {
12
- "@justins-home/http-client": "1.0.6",
13
- "@justins-home/types": "1.0.1"
19
+ "@justins-home/http-client": "1.1.0",
20
+ "@justins-home/types": "1.1.0"
14
21
  },
15
22
  "publishConfig": {
16
23
  "access": "public"