@justins-home/http-client 1.0.4 → 1.0.5

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,5 +1,5 @@
1
1
 
2
- > @justins-home/http-client@1.0.4 build /home/runner/work/justins-home-platform-ui/justins-home-platform-ui/packages/http-client
2
+ > @justins-home/http-client@1.0.5 build /home/runner/work/justins-home-platform-ui/justins-home-platform-ui/packages/http-client
3
3
  > tsup src/index.ts --format esm,cjs
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,7 +8,7 @@
8
8
  CLI Target: es2023
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 1.87 KB
12
- ESM ⚡️ Build success in 40ms
13
- CJS dist/index.js 3.81 KB
14
- CJS ⚡️ Build success in 41ms
11
+ CJS dist/index.js 3.76 KB
12
+ CJS ⚡️ Build success in 57ms
13
+ ESM dist/index.mjs 1.82 KB
14
+ ESM ⚡️ Build success in 58ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @justins-home/http-client
2
2
 
3
+ ## 1.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - updated env variable name
8
+
3
9
  ## 1.0.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -42,9 +42,9 @@ module.exports = __toCommonJS(index_exports);
42
42
 
43
43
  // src/clients/publicClient.ts
44
44
  var import_axios = __toESM(require("axios"));
45
- var baseURL = process.env.NEXT_PUBLIC_API_URL;
45
+ var baseURL = process.env.API_URL;
46
46
  if (!baseURL) {
47
- throw new Error("NEXT_PUBLIC_API_URL is not defined");
47
+ throw new Error("API_URL is not defined");
48
48
  }
49
49
  var publicClient = import_axios.default.create({
50
50
  baseURL,
@@ -55,9 +55,9 @@ var publicClient = import_axios.default.create({
55
55
 
56
56
  // src/clients/authClient.ts
57
57
  var import_axios2 = __toESM(require("axios"));
58
- var baseURL2 = process.env.NEXT_PUBLIC_API_URL;
58
+ var baseURL2 = process.env.API_URL;
59
59
  if (!baseURL2) {
60
- throw new Error("NEXT_PUBLIC_API_URL is not defined");
60
+ throw new Error("API_URL is not defined");
61
61
  }
62
62
  var authClient = import_axios2.default.create({
63
63
  baseURL: baseURL2,
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  // src/clients/publicClient.ts
2
2
  import axios from "axios";
3
- var baseURL = process.env.NEXT_PUBLIC_API_URL;
3
+ var baseURL = process.env.API_URL;
4
4
  if (!baseURL) {
5
- throw new Error("NEXT_PUBLIC_API_URL is not defined");
5
+ throw new Error("API_URL is not defined");
6
6
  }
7
7
  var publicClient = axios.create({
8
8
  baseURL,
@@ -13,9 +13,9 @@ var publicClient = axios.create({
13
13
 
14
14
  // src/clients/authClient.ts
15
15
  import axios2 from "axios";
16
- var baseURL2 = process.env.NEXT_PUBLIC_API_URL;
16
+ var baseURL2 = process.env.API_URL;
17
17
  if (!baseURL2) {
18
- throw new Error("NEXT_PUBLIC_API_URL is not defined");
18
+ throw new Error("API_URL is not defined");
19
19
  }
20
20
  var authClient = axios2.create({
21
21
  baseURL: baseURL2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/http-client",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "main": "src/index.ts",
6
6
  "dependencies": {
@@ -1,9 +1,9 @@
1
1
  import axios from 'axios';
2
2
 
3
- const baseURL = process.env.NEXT_PUBLIC_API_URL;
3
+ const baseURL = process.env.API_URL;
4
4
 
5
5
  if (!baseURL) {
6
- throw new Error('NEXT_PUBLIC_API_URL is not defined');
6
+ throw new Error('API_URL is not defined');
7
7
  }
8
8
 
9
9
  export const authClient = axios.create({
@@ -1,9 +1,9 @@
1
1
  import axios from 'axios';
2
2
 
3
- const baseURL = process.env.NEXT_PUBLIC_API_URL;
3
+ const baseURL = process.env.API_URL;
4
4
 
5
5
  if (!baseURL) {
6
- throw new Error('NEXT_PUBLIC_API_URL is not defined');
6
+ throw new Error('API_URL is not defined');
7
7
  }
8
8
 
9
9
  export const publicClient = axios.create({