@nhtio/validation 0.1.0-master-fb686bf1 → 0.1.0-master-d7a77552

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 CHANGED
@@ -108089,7 +108089,7 @@ var backToDateTime = (value) => {
108089
108089
  var toDateTime = (value, format) => {
108090
108090
  if (isLuxonDateTime(value)) return value instanceof DateTime ? value : backToDateTime(value);
108091
108091
  if (isInstanceOf(value, "Date", Date)) return DateTime.fromJSDate(value);
108092
- if (isInstanceOf(value, "Dayjs", import_dayjs_min.Dayjs) || import_dayjs_min.default.isDayjs(value)) return DateTime.fromJSDate(value.toDate());
108092
+ if (isInstanceOf(value, "Dayjs") || import_dayjs_min.default.isDayjs(value)) return DateTime.fromJSDate(value.toDate());
108093
108093
  if (isDateObjectUnits(value)) return DateTime.fromObject(value, { zone: "utc" });
108094
108094
  if (typeof value === "number") {
108095
108095
  const day = (0, import_dayjs_min.default)(value);
@@ -111685,7 +111685,7 @@ const encode = (schema) => {
111685
111685
  }
111686
111686
  /* v8 ignore stop */
111687
111687
  return utoa(JSON.stringify({
111688
- version: "0.1.0-master-fb686bf1",
111688
+ version: "0.1.0-master-d7a77552",
111689
111689
  schema: description$1
111690
111690
  }, (_, value) => {
111691
111691
  if (typeof value === "bigint") return value.toString();
@@ -111701,9 +111701,9 @@ const decode = (base64) => {
111701
111701
  const description$1 = JSON.parse(json$1);
111702
111702
  if (!isPlainObject(description$1) || !("version" in description$1) || !("schema" in description$1) || typeof description$1.version !== "string" || !isPlainObject(description$1.schema)) throw new TypeError("Not a valid encoded schema");
111703
111703
  const { version: schemaVersion, schema } = description$1;
111704
- if (import_semver.valid("0.1.0-master-fb686bf1")) {
111704
+ if (import_semver.valid("0.1.0-master-d7a77552")) {
111705
111705
  if (!import_semver.valid(import_semver.coerce(schemaVersion))) throw new TypeError(`Invalid schema version: ${schemaVersion}`);
111706
- if (import_semver.gt(import_semver.coerce(schemaVersion), "0.1.0-master-fb686bf1")) throw new TypeError(`Schema version ${schemaVersion} is not compatible with current version 0.1.0-master-fb686bf1`);
111706
+ if (import_semver.gt(import_semver.coerce(schemaVersion), "0.1.0-master-d7a77552")) throw new TypeError(`Schema version ${schemaVersion} is not compatible with current version 0.1.0-master-d7a77552`);
111707
111707
  }
111708
111708
  return validator.build(schema);
111709
111709
  };
@@ -113154,7 +113154,7 @@ const TLDS = [
113154
113154
  const tlds = new Set(TLDS.map((tld) => tld.toLowerCase()));
113155
113155
  var import_lib$2 = /* @__PURE__ */ __toESM(require_lib());
113156
113156
  /* v8 ignore next */
113157
- const version = "0.1.0-master-fb686bf1";
113157
+ const version = "0.1.0-master-d7a77552";
113158
113158
  Object.defineProperty(exports, "ValidationError", {
113159
113159
  enumerable: true,
113160
113160
  get: function() {