@nhtio/validation 0.1.0-master-ebe86e9e → 0.1.0-master-cd50e735

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
@@ -101593,9 +101593,6 @@ const phone = function(joi) {
101593
101593
  const as = schema.$_getFlag("as") || "e164";
101594
101594
  let formattedValue;
101595
101595
  switch (as) {
101596
- case "e164":
101597
- formattedValue = pObj.e164;
101598
- break;
101599
101596
  case "international":
101600
101597
  formattedValue = pObj.international;
101601
101598
  break;
@@ -109110,7 +109107,7 @@ const encode = (schema) => {
109110
109107
  });
109111
109108
  }
109112
109109
  const json$1 = JSON.stringify({
109113
- version: "0.1.0-master-ebe86e9e",
109110
+ version: "0.1.0-master-cd50e735",
109114
109111
  schema: description$1
109115
109112
  }, (_, value) => {
109116
109113
  if (typeof value === "bigint") return value.toString();
@@ -109126,9 +109123,9 @@ const decode = (base64) => {
109126
109123
  const description$1 = JSON.parse(json$1);
109127
109124
  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");
109128
109125
  const { version: schemaVersion, schema } = description$1;
109129
- if (import_semver.valid("0.1.0-master-ebe86e9e")) {
109126
+ if (import_semver.valid("0.1.0-master-cd50e735")) {
109130
109127
  if (!import_semver.valid(import_semver.coerce(schemaVersion))) throw new TypeError(`Invalid schema version: ${schemaVersion}`);
109131
- if (import_semver.gt(import_semver.coerce(schemaVersion), "0.1.0-master-ebe86e9e")) throw new TypeError(`Schema version ${schemaVersion} is not compatible with current version 0.1.0-master-ebe86e9e`);
109128
+ if (import_semver.gt(import_semver.coerce(schemaVersion), "0.1.0-master-cd50e735")) throw new TypeError(`Schema version ${schemaVersion} is not compatible with current version 0.1.0-master-cd50e735`);
109132
109129
  }
109133
109130
  return validator.build(schema);
109134
109131
  };
@@ -112394,7 +112391,7 @@ const tlds = new Set(TLDS.map((tld) => tld.toLowerCase()));
112394
112391
  var import_lib = __toESM(require_lib$1());
112395
112392
  var import_lib$1 = __toESM(require_lib());
112396
112393
  var import_lib$2 = __toESM(require_lib$2());
112397
- const version = "0.1.0-master-ebe86e9e";
112394
+ const version = "0.1.0-master-cd50e735";
112398
112395
  var ValidationError = import_lib$2.ValidationError;
112399
112396
  var location = import_lib$1.location;
112400
112397
  export { ValidationError, esm_exports as address, decode, encode, import_lib as formula, location, tlds, validator, version };