@fluxo-dev/api-client-base 26.2.1 → 26.2.3
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.cjs.js +3 -3
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -4720,13 +4720,13 @@ 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}/${id}`, entity);
|
|
4723
|
+
return HttpClient$1.Instance().client.put(`/${this._baseApiPath}/${encodeURIComponent(id)}`, entity);
|
|
4724
4724
|
}
|
|
4725
4725
|
delete(entityId) {
|
|
4726
|
-
return HttpClient$1.Instance().client.delete(`/${this._baseApiPath}/${entityId}`);
|
|
4726
|
+
return HttpClient$1.Instance().client.delete(`/${this._baseApiPath}/${encodeURIComponent(entityId)}`);
|
|
4727
4727
|
}
|
|
4728
4728
|
get(id, include) {
|
|
4729
|
-
return HttpClient$1.Instance().client.get(`/${this._baseApiPath}/${id}${include ? `?includes=${encodeURIComponent(include)}` : ''}`);
|
|
4729
|
+
return HttpClient$1.Instance().client.get(`/${this._baseApiPath}/${encodeURIComponent(id)}${include ? `?includes=${encodeURIComponent(include)}` : ''}`);
|
|
4730
4730
|
}
|
|
4731
4731
|
}
|
|
4732
4732
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/api-client-base",
|
|
3
|
-
"version": "26.2.
|
|
3
|
+
"version": "26.2.3",
|
|
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.
|
|
11
|
+
"@fluxo-dev/state": "^26.2.3"
|
|
12
12
|
},
|
|
13
13
|
"main": "./index.cjs.js",
|
|
14
14
|
"types": "./index.cjs.d.ts"
|