@8ms/helpers 3.0.7 → 3.0.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.
- package/dist/emsApi/awsTs/get.cjs +2 -2
- package/dist/emsApi/awsTs/get.d.cts +1 -1
- package/dist/emsApi/awsTs/get.d.mts +1 -1
- package/dist/emsApi/awsTs/get.mjs +2 -2
- package/dist/emsApi/awsTs/post.cjs +1 -1
- package/dist/emsApi/awsTs/post.mjs +1 -1
- package/dist/emsApi/vercel/get.cjs +2 -2
- package/dist/emsApi/vercel/get.d.cts +1 -1
- package/dist/emsApi/vercel/get.d.mts +1 -1
- package/dist/emsApi/vercel/get.mjs +2 -2
- package/dist/emsApi/vercel/post.cjs +1 -1
- package/dist/emsApi/vercel/post.mjs +1 -1
- package/package.json +1 -1
|
@@ -2,11 +2,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_api_get = require("../../api/get.cjs");
|
|
3
3
|
const require_emsApi_awsTs_endpoint = require("./endpoint.cjs");
|
|
4
4
|
//#region src/emsApi/awsTs/get.ts
|
|
5
|
-
const getAwsTs = async (path,
|
|
5
|
+
const getAwsTs = async (path, config = {}) => {
|
|
6
6
|
return require_api_get.get(`${require_emsApi_awsTs_endpoint.getAwsTsEndpoint()}${path}`, {
|
|
7
7
|
...config,
|
|
8
8
|
headers: {
|
|
9
|
-
"x-api-key": process.env?.
|
|
9
|
+
"x-api-key": process.env?.SERVER_EMS_API_KEY ?? process.env?.NEXT_PUBLIC_CLIENT_EMS_API_KEY ?? "",
|
|
10
10
|
...config?.headers ?? {}
|
|
11
11
|
}
|
|
12
12
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
|
|
2
2
|
import { Config } from "../../api/config.cjs";
|
|
3
3
|
//#region src/emsApi/awsTs/get.d.ts
|
|
4
|
-
declare const getAwsTs: (path: string,
|
|
4
|
+
declare const getAwsTs: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { getAwsTs };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
|
|
2
2
|
import { Config } from "../../api/config.mjs";
|
|
3
3
|
//#region src/emsApi/awsTs/get.d.ts
|
|
4
|
-
declare const getAwsTs: (path: string,
|
|
4
|
+
declare const getAwsTs: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { getAwsTs };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { get } from "../../api/get.mjs";
|
|
2
2
|
import { getAwsTsEndpoint } from "./endpoint.mjs";
|
|
3
3
|
//#region src/emsApi/awsTs/get.ts
|
|
4
|
-
const getAwsTs = async (path,
|
|
4
|
+
const getAwsTs = async (path, config = {}) => {
|
|
5
5
|
return get(`${getAwsTsEndpoint()}${path}`, {
|
|
6
6
|
...config,
|
|
7
7
|
headers: {
|
|
8
|
-
"x-api-key": process.env?.
|
|
8
|
+
"x-api-key": process.env?.SERVER_EMS_API_KEY ?? process.env?.NEXT_PUBLIC_CLIENT_EMS_API_KEY ?? "",
|
|
9
9
|
...config?.headers ?? {}
|
|
10
10
|
}
|
|
11
11
|
});
|
|
@@ -6,7 +6,7 @@ const postAwsTs = async (path, data = {}, config = {}) => {
|
|
|
6
6
|
return require_api_post.post(`${require_emsApi_awsTs_endpoint.getAwsTsEndpoint()}${path}`, data, {
|
|
7
7
|
...config,
|
|
8
8
|
headers: {
|
|
9
|
-
"x-api-key": process.env?.
|
|
9
|
+
"x-api-key": process.env?.SERVER_EMS_API_KEY ?? process.env?.NEXT_PUBLIC_CLIENT_EMS_API_KEY ?? "",
|
|
10
10
|
...config?.headers ?? {}
|
|
11
11
|
}
|
|
12
12
|
});
|
|
@@ -5,7 +5,7 @@ const postAwsTs = async (path, data = {}, config = {}) => {
|
|
|
5
5
|
return post(`${getAwsTsEndpoint()}${path}`, data, {
|
|
6
6
|
...config,
|
|
7
7
|
headers: {
|
|
8
|
-
"x-api-key": process.env?.
|
|
8
|
+
"x-api-key": process.env?.SERVER_EMS_API_KEY ?? process.env?.NEXT_PUBLIC_CLIENT_EMS_API_KEY ?? "",
|
|
9
9
|
...config?.headers ?? {}
|
|
10
10
|
}
|
|
11
11
|
});
|
|
@@ -2,11 +2,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_api_get = require("../../api/get.cjs");
|
|
3
3
|
const require_emsApi_vercel_endpoint = require("./endpoint.cjs");
|
|
4
4
|
//#region src/emsApi/vercel/get.ts
|
|
5
|
-
const getVercel = async (path,
|
|
5
|
+
const getVercel = async (path, config = {}) => {
|
|
6
6
|
return require_api_get.get(`${require_emsApi_vercel_endpoint.getVercelEndpoint()}${path}`, {
|
|
7
7
|
...config,
|
|
8
8
|
headers: {
|
|
9
|
-
"x-api-key": process.env?.
|
|
9
|
+
"x-api-key": process.env?.SERVER_EMS_API_KEY ?? process.env?.NEXT_PUBLIC_CLIENT_EMS_API_KEY ?? "",
|
|
10
10
|
...config?.headers ?? {}
|
|
11
11
|
}
|
|
12
12
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
|
|
2
2
|
import { Config } from "../../api/config.cjs";
|
|
3
3
|
//#region src/emsApi/vercel/get.d.ts
|
|
4
|
-
declare const getVercel: (path: string,
|
|
4
|
+
declare const getVercel: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { getVercel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
|
|
2
2
|
import { Config } from "../../api/config.mjs";
|
|
3
3
|
//#region src/emsApi/vercel/get.d.ts
|
|
4
|
-
declare const getVercel: (path: string,
|
|
4
|
+
declare const getVercel: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { getVercel };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { get } from "../../api/get.mjs";
|
|
2
2
|
import { getVercelEndpoint } from "./endpoint.mjs";
|
|
3
3
|
//#region src/emsApi/vercel/get.ts
|
|
4
|
-
const getVercel = async (path,
|
|
4
|
+
const getVercel = async (path, config = {}) => {
|
|
5
5
|
return get(`${getVercelEndpoint()}${path}`, {
|
|
6
6
|
...config,
|
|
7
7
|
headers: {
|
|
8
|
-
"x-api-key": process.env?.
|
|
8
|
+
"x-api-key": process.env?.SERVER_EMS_API_KEY ?? process.env?.NEXT_PUBLIC_CLIENT_EMS_API_KEY ?? "",
|
|
9
9
|
...config?.headers ?? {}
|
|
10
10
|
}
|
|
11
11
|
});
|
|
@@ -6,7 +6,7 @@ const postVercel = async (path, data = {}, config = {}) => {
|
|
|
6
6
|
return require_api_post.post(`${require_emsApi_vercel_endpoint.getVercelEndpoint()}${path}`, data, {
|
|
7
7
|
...config,
|
|
8
8
|
headers: {
|
|
9
|
-
"x-api-key": process.env?.
|
|
9
|
+
"x-api-key": process.env?.SERVER_EMS_API_KEY ?? process.env?.NEXT_PUBLIC_CLIENT_EMS_API_KEY ?? "",
|
|
10
10
|
...config?.headers ?? {}
|
|
11
11
|
}
|
|
12
12
|
});
|
|
@@ -5,7 +5,7 @@ const postVercel = async (path, data = {}, config = {}) => {
|
|
|
5
5
|
return post(`${getVercelEndpoint()}${path}`, data, {
|
|
6
6
|
...config,
|
|
7
7
|
headers: {
|
|
8
|
-
"x-api-key": process.env?.
|
|
8
|
+
"x-api-key": process.env?.SERVER_EMS_API_KEY ?? process.env?.NEXT_PUBLIC_CLIENT_EMS_API_KEY ?? "",
|
|
9
9
|
...config?.headers ?? {}
|
|
10
10
|
}
|
|
11
11
|
});
|