eservices-core 1.0.591 → 1.0.592

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.591
2
+ * eservices-core v1.0.592
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -5085,7 +5085,7 @@ processWizardService.url = '/close-api/views/process-wizard';
5085
5085
 
5086
5086
  class metadataService {
5087
5087
  static get url() {
5088
- return `/close-api/metadata/`;
5088
+ return `/close-api/metadata`;
5089
5089
  }
5090
5090
  static get(entity, criteria, id) {
5091
5091
  return __awaiter(this, void 0, void 0, function* () {
@@ -5094,13 +5094,13 @@ class metadataService {
5094
5094
  query.append('criteria', criteria);
5095
5095
  if (id)
5096
5096
  query.append('id', String(id));
5097
- return yield fetch(this.url + `${entity}?${query.toString()}`, {
5097
+ return yield fetch(this.url + `/${entity}?${query.toString()}`, {
5098
5098
  method: "GET",
5099
5099
  }).then(res => res.json());
5100
5100
  });
5101
5101
  }
5102
5102
  static getById(entity, id) {
5103
- return Request(this.url + `${entity}/${id}`);
5103
+ return Request([this.url, entity, id].join('/'));
5104
5104
  }
5105
5105
  static getByMaster(entity, masterEntities) {
5106
5106
  const query = new URLSearchParams(masterEntities.map(config => [config.entity, String(config.id)]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.591",
3
+ "version": "1.0.592",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {