@arena-ui/services 1.0.0 → 1.0.1

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import get_service from "./get_service";
2
- import load_services from "./load_services";
3
- import post_request from "./post_request";
1
+ import get_service from "./get_service.js";
2
+ import load_services from "./load_services.js";
3
+ import post_request from "./post_request.js";
4
4
 
5
5
  export { post_request, get_service, load_services };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arena-ui/services",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Savvy",
package/post_request.js CHANGED
@@ -1,4 +1,3 @@
1
- import { PROD } from "@env";
2
1
  import get_service from "./get_service.js";
3
2
 
4
3
  const post_request = async (url, body) => {
@@ -10,9 +9,7 @@ const post_request = async (url, body) => {
10
9
 
11
10
  let config = get_service(url[0]);
12
11
 
13
- let domain = config.url || {};
14
-
15
- domain = domain[PROD ? "prod" : "dev"];
12
+ let domain = config?.url;
16
13
 
17
14
  if (!domain) {
18
15
  return {