@communecter/cocolight-api-client 1.0.93 → 1.0.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@communecter/cocolight-api-client",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "Client Axios simplifié pour l'API cocolight",
5
5
  "repository": {
6
6
  "type": "git",
package/src/ApiClient.ts CHANGED
@@ -1047,7 +1047,7 @@ export default class ApiClient extends EventEmitter {
1047
1047
  }
1048
1048
 
1049
1049
  if (obj instanceof Date) {
1050
- return obj.toISOString();
1050
+ return obj.toISOString().replace(/\.\d{3}Z$/, "+0000");
1051
1051
  }
1052
1052
 
1053
1053
  if (Array.isArray(obj)) {
@@ -1673,9 +1673,7 @@ export default class ApiClient extends EventEmitter {
1673
1673
 
1674
1674
  // Si la clé correspond à un champ de date, on applique la normalisation de date.
1675
1675
  if (this._dateFields.includes(key)) {
1676
- console.log(key, value);
1677
1676
  value = this._normalizeDate(value);
1678
- console.log("Date", key, value);
1679
1677
  }
1680
1678
 
1681
1679
  // Si la clé correspond à un champ d'image, on applique la normalisation d'image.