@digipair/skill-http 0.45.2 → 0.45.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.
package/index.cjs.js CHANGED
@@ -53,7 +53,7 @@ let HttpService = class HttpService {
53
53
  }
54
54
  async upload(params, _pinsSettingsList, _context) {
55
55
  const { path, parameters, method = 'POST', headers = {} } = params;
56
- const formData = typeof window !== 'undefined' ? new FormData() : new (require('form-data')).default();
56
+ const formData = typeof window !== 'undefined' ? new FormData() : new (require('form-data'))();
57
57
  // Ajout des paramètres au FormData
58
58
  parameters.forEach((param)=>{
59
59
  if (!Array.isArray(param.value)) {
package/index.esm.js CHANGED
@@ -49,7 +49,7 @@ let HttpService = class HttpService {
49
49
  }
50
50
  async upload(params, _pinsSettingsList, _context) {
51
51
  const { path, parameters, method = 'POST', headers = {} } = params;
52
- const formData = typeof window !== 'undefined' ? new FormData() : new (require('form-data')).default();
52
+ const formData = typeof window !== 'undefined' ? new FormData() : new (require('form-data'))();
53
53
  // Ajout des paramètres au FormData
54
54
  parameters.forEach((param)=>{
55
55
  if (!Array.isArray(param.value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-http",
3
- "version": "0.45.2",
3
+ "version": "0.45.4",
4
4
  "dependencies": {
5
5
  "form-data": "4.0.1"
6
6
  },