zod 3.25.1 → 3.25.3

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.
@@ -201,7 +201,6 @@ exports.$ZodURL = core.$constructor("$ZodURL", (inst, def) => {
201
201
  inst._zod.check = (payload) => {
202
202
  try {
203
203
  const url = new URL(payload.value);
204
- console.log(url);
205
204
  regexes.hostname.lastIndex = 0;
206
205
  if (!regexes.hostname.test(url.hostname)) {
207
206
  payload.issues.push({
@@ -242,7 +241,6 @@ exports.$ZodURL = core.$constructor("$ZodURL", (inst, def) => {
242
241
  return;
243
242
  }
244
243
  catch (_) {
245
- console.dir("FAILED", { depth: null });
246
244
  payload.issues.push({
247
245
  code: "invalid_format",
248
246
  format: "url",
@@ -618,7 +618,7 @@ class JSONSchemaGenerator {
618
618
  result.$schema = "https://json-schema.org/draft-2020-12/schema";
619
619
  }
620
620
  else if (this.target === "draft-7") {
621
- result.$schema = "http://json-schema.org/draft-07/schema";
621
+ result.$schema = "https://json-schema.org/draft-07/schema";
622
622
  }
623
623
  else {
624
624
  console.warn(`Invalid target: ${this.target}`);
@@ -160,7 +160,6 @@ export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) =>
160
160
  inst._zod.check = (payload) => {
161
161
  try {
162
162
  const url = new URL(payload.value);
163
- console.log(url);
164
163
  regexes.hostname.lastIndex = 0;
165
164
  if (!regexes.hostname.test(url.hostname)) {
166
165
  payload.issues.push({
@@ -201,7 +200,6 @@ export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) =>
201
200
  return;
202
201
  }
203
202
  catch (_) {
204
- console.dir("FAILED", { depth: null });
205
203
  payload.issues.push({
206
204
  code: "invalid_format",
207
205
  format: "url",
@@ -614,7 +614,7 @@ export class JSONSchemaGenerator {
614
614
  result.$schema = "https://json-schema.org/draft-2020-12/schema";
615
615
  }
616
616
  else if (this.target === "draft-7") {
617
- result.$schema = "http://json-schema.org/draft-07/schema";
617
+ result.$schema = "https://json-schema.org/draft-07/schema";
618
618
  }
619
619
  else {
620
620
  console.warn(`Invalid target: ${this.target}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "3.25.1",
3
+ "version": "3.25.3",
4
4
  "type": "module",
5
5
  "author": "Colin McDonnell <zod@colinhacks.com>",
6
6
  "description": "TypeScript-first schema declaration and validation library with static type inference",
@@ -426,7 +426,6 @@ export const $ZodURL: core.$constructor<$ZodURL> = /*@__PURE__*/ core.$construct
426
426
  inst._zod.check = (payload) => {
427
427
  try {
428
428
  const url = new URL(payload.value);
429
- console.log(url);
430
429
 
431
430
  regexes.hostname.lastIndex = 0;
432
431
  if (!regexes.hostname.test(url.hostname)) {
@@ -470,7 +469,6 @@ export const $ZodURL: core.$constructor<$ZodURL> = /*@__PURE__*/ core.$construct
470
469
 
471
470
  return;
472
471
  } catch (_) {
473
- console.dir("FAILED", { depth: null });
474
472
  payload.issues.push({
475
473
  code: "invalid_format",
476
474
  format: "url",
@@ -722,7 +722,7 @@ export class JSONSchemaGenerator {
722
722
  if (this.target === "draft-2020-12") {
723
723
  result.$schema = "https://json-schema.org/draft-2020-12/schema";
724
724
  } else if (this.target === "draft-7") {
725
- result.$schema = "http://json-schema.org/draft-07/schema";
725
+ result.$schema = "https://json-schema.org/draft-07/schema";
726
726
  } else {
727
727
  console.warn(`Invalid target: ${this.target}`);
728
728
  }