@fluxo-dev/api-client-base 26.2.3 → 26.2.4

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/index.cjs.js +15 -3
  2. package/package.json +2 -2
package/index.cjs.js CHANGED
@@ -4720,13 +4720,25 @@ class BaseCommonService {
4720
4720
  return HttpClient$1.Instance().client.post(`/${this._baseApiPath}`, entity);
4721
4721
  }
4722
4722
  update(id, entity) {
4723
- return HttpClient$1.Instance().client.put(`/${this._baseApiPath}/${encodeURIComponent(id)}`, entity);
4723
+ return HttpClient$1.Instance().client.put(`/${this._baseApiPath}/${encodeURIComponent(id)}`, entity, {
4724
+ headers: {
4725
+ 'korebi-decode-path-params': 'all'
4726
+ }
4727
+ });
4724
4728
  }
4725
4729
  delete(entityId) {
4726
- return HttpClient$1.Instance().client.delete(`/${this._baseApiPath}/${encodeURIComponent(entityId)}`);
4730
+ return HttpClient$1.Instance().client.delete(`/${this._baseApiPath}/${encodeURIComponent(entityId)}`, {
4731
+ headers: {
4732
+ 'korebi-decode-path-params': 'all'
4733
+ }
4734
+ });
4727
4735
  }
4728
4736
  get(id, include) {
4729
- return HttpClient$1.Instance().client.get(`/${this._baseApiPath}/${encodeURIComponent(id)}${include ? `?includes=${encodeURIComponent(include)}` : ''}`);
4737
+ return HttpClient$1.Instance().client.get(`/${this._baseApiPath}/${encodeURIComponent(id)}${include ? `?includes=${encodeURIComponent(include)}` : ''}`, {
4738
+ headers: {
4739
+ 'korebi-decode-path-params': 'all'
4740
+ }
4741
+ });
4730
4742
  }
4731
4743
  }
4732
4744
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxo-dev/api-client-base",
3
- "version": "26.2.3",
3
+ "version": "26.2.4",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "react": "^18.3.1",
@@ -8,7 +8,7 @@
8
8
  "react-router-dom": "^6.11.2",
9
9
  "react-redux": "^8.0.5",
10
10
  "@reduxjs/toolkit": "^1.9.1",
11
- "@fluxo-dev/state": "^26.2.3"
11
+ "@fluxo-dev/state": "^26.2.4"
12
12
  },
13
13
  "main": "./index.cjs.js",
14
14
  "types": "./index.cjs.d.ts"