@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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +6 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/clients/authClient.ts +2 -2
- package/src/clients/publicClient.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @justins-home/http-client@1.0.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2023
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m3.76 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 57ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m1.82 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 58ms
|
package/CHANGELOG.md
CHANGED
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.
|
|
45
|
+
var baseURL = process.env.API_URL;
|
|
46
46
|
if (!baseURL) {
|
|
47
|
-
throw new Error("
|
|
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.
|
|
58
|
+
var baseURL2 = process.env.API_URL;
|
|
59
59
|
if (!baseURL2) {
|
|
60
|
-
throw new Error("
|
|
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.
|
|
3
|
+
var baseURL = process.env.API_URL;
|
|
4
4
|
if (!baseURL) {
|
|
5
|
-
throw new Error("
|
|
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.
|
|
16
|
+
var baseURL2 = process.env.API_URL;
|
|
17
17
|
if (!baseURL2) {
|
|
18
|
-
throw new Error("
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
|
|
3
|
-
const baseURL = process.env.
|
|
3
|
+
const baseURL = process.env.API_URL;
|
|
4
4
|
|
|
5
5
|
if (!baseURL) {
|
|
6
|
-
throw new Error('
|
|
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.
|
|
3
|
+
const baseURL = process.env.API_URL;
|
|
4
4
|
|
|
5
5
|
if (!baseURL) {
|
|
6
|
-
throw new Error('
|
|
6
|
+
throw new Error('API_URL is not defined');
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export const publicClient = axios.create({
|