inferred-types 0.51.6 → 0.51.7

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/dist/index.cjs CHANGED
@@ -4771,7 +4771,10 @@ var isNewsUrl = (val) => {
4771
4771
 
4772
4772
  // src/runtime/type-guards/date-time/isDateTime.ts
4773
4773
  var isIsoDateTime = (val) => {
4774
- return isString(val) && val.includes(":") && val.includes("-") && val.split("-").length === 3 && val.split(":").length > 1;
4774
+ if (isString(val)) {
4775
+ return isString(val) && val.includes(":") && val.includes("-") && val.split("-").length === 3 && val.split(":").length > 1 && (!val.includes("Z") || isNumberLike(val.slice(-1)) || val.endsWith("Z")) && (!val.includes("Z") || ["+", "-"].includes(stripUntil(val, "Z").slice(1, 2)) || val.endsWith("Z"));
4776
+ }
4777
+ return false;
4775
4778
  };
4776
4779
 
4777
4780
  // src/runtime/type-guards/date-time/isIsoTime.ts
package/dist/index.js CHANGED
@@ -4160,7 +4160,10 @@ var isNewsUrl = (val) => {
4160
4160
 
4161
4161
  // src/runtime/type-guards/date-time/isDateTime.ts
4162
4162
  var isIsoDateTime = (val) => {
4163
- return isString(val) && val.includes(":") && val.includes("-") && val.split("-").length === 3 && val.split(":").length > 1;
4163
+ if (isString(val)) {
4164
+ return isString(val) && val.includes(":") && val.includes("-") && val.split("-").length === 3 && val.split(":").length > 1 && (!val.includes("Z") || isNumberLike(val.slice(-1)) || val.endsWith("Z")) && (!val.includes("Z") || ["+", "-"].includes(stripUntil(val, "Z").slice(1, 2)) || val.endsWith("Z"));
4165
+ }
4166
+ return false;
4164
4167
  };
4165
4168
 
4166
4169
  // src/runtime/type-guards/date-time/isIsoTime.ts