@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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import vitePluginRequire_1761578616325_60647063 from "knex";
1
+ import vitePluginRequire_1761578864126_82450610 from "knex";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -40,7 +40,7 @@ const messages = {
40
40
  };
41
41
  var knexClientCache = /* @__PURE__ */ new WeakMap();
42
42
  var resolveKnex = (connection) => {
43
- const db = vitePluginRequire_1761578616325_60647063;
43
+ const db = vitePluginRequire_1761578864126_82450610;
44
44
  if ("function" !== typeof connection && !("object" === typeof connection && connection !== null && !Array.isArray(connection))) throw new Error("Invalid Knex connection or QueryClientContract instance");
45
45
  if ("function" === typeof connection.getReadClient) return connection.getReadClient();
46
46
  if ("function" === typeof connection.ref) return connection;
@@ -108063,7 +108063,7 @@ var backToDateTime = (value) => {
108063
108063
  var toDateTime = (value, format) => {
108064
108064
  if (isLuxonDateTime(value)) return value instanceof DateTime ? value : backToDateTime(value);
108065
108065
  if (isInstanceOf(value, "Date", Date)) return DateTime.fromJSDate(value);
108066
- if (isInstanceOf(value, "Dayjs", import_dayjs_min.Dayjs) || import_dayjs_min.default.isDayjs(value)) return DateTime.fromJSDate(value.toDate());
108066
+ if (isInstanceOf(value, "Dayjs") || import_dayjs_min.default.isDayjs(value)) return DateTime.fromJSDate(value.toDate());
108067
108067
  if (isDateObjectUnits(value)) return DateTime.fromObject(value, { zone: "utc" });
108068
108068
  if (typeof value === "number") {
108069
108069
  const day = (0, import_dayjs_min.default)(value);
@@ -111658,7 +111658,7 @@ const encode = (schema) => {
111658
111658
  }
111659
111659
  /* v8 ignore stop */
111660
111660
  return utoa(JSON.stringify({
111661
- version: "0.1.0-master-fb686bf1",
111661
+ version: "0.1.0-master-d7a77552",
111662
111662
  schema: description$1
111663
111663
  }, (_, value) => {
111664
111664
  if (typeof value === "bigint") return value.toString();
@@ -111674,9 +111674,9 @@ const decode = (base64) => {
111674
111674
  const description$1 = JSON.parse(json$1);
111675
111675
  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");
111676
111676
  const { version: schemaVersion, schema } = description$1;
111677
- if (import_semver.valid("0.1.0-master-fb686bf1")) {
111677
+ if (import_semver.valid("0.1.0-master-d7a77552")) {
111678
111678
  if (!import_semver.valid(import_semver.coerce(schemaVersion))) throw new TypeError(`Invalid schema version: ${schemaVersion}`);
111679
- 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`);
111679
+ 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`);
111680
111680
  }
111681
111681
  return validator.build(schema);
111682
111682
  };
@@ -113126,7 +113126,7 @@ const tlds = new Set([
113126
113126
  ].map((tld) => tld.toLowerCase()));
113127
113127
  var import_lib$2 = /* @__PURE__ */ __toESM(require_lib());
113128
113128
  /* v8 ignore next */
113129
- const version = "0.1.0-master-fb686bf1";
113129
+ const version = "0.1.0-master-d7a77552";
113130
113130
  var ValidationError = import_lib$2.ValidationError;
113131
113131
  var location = import_lib$1.location;
113132
113132
  export { ValidationError, esm_exports as address, decode, encode, import_lib as formula, location, tlds, validator, version };