hamzus-ui 0.0.219 → 0.0.221

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": "hamzus-ui",
3
- "version": "0.0.219",
3
+ "version": "0.0.221",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -59,6 +59,10 @@
59
59
  if (value === "") {
60
60
  return "selectionner une date"
61
61
  }
62
+ if (!value) {
63
+ value = ""
64
+ return "selectionner une date"
65
+ }
62
66
 
63
67
  const dateData = value.split("-")
64
68
 
@@ -80,6 +80,10 @@
80
80
  if (value === '') {
81
81
  return 'selectionner une date';
82
82
  }
83
+ if (!value) {
84
+ value = ""
85
+ return "selectionner une date"
86
+ }
83
87
 
84
88
  const dateTimeData = value.split(" ");
85
89
 
@@ -102,6 +102,8 @@
102
102
  const xhr = new XMLHttpRequest();
103
103
  xhr.open('POST', scriptPath, true);
104
104
 
105
+ xhr.withCredentials = config.requestWithCredentials || false;
106
+
105
107
  xhr.onload = function () {
106
108
  sending = false;
107
109