typebox 1.3.11 → 1.3.13

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.
Files changed (91) hide show
  1. package/build/format/date.d.mts +1 -1
  2. package/build/format/date.mjs +1 -1
  3. package/build/format/date_time.d.mts +2 -2
  4. package/build/format/date_time.mjs +3 -3
  5. package/build/format/email.d.mts +1 -1
  6. package/build/format/email.mjs +2 -2
  7. package/build/format/hostname.mjs +2 -10
  8. package/build/format/idn_email.d.mts +1 -1
  9. package/build/format/idn_email.mjs +3 -3
  10. package/build/format/idn_hostname.d.mts +1 -0
  11. package/build/format/idn_hostname.mjs +3 -11
  12. package/build/format/idna/format/bidi.d.mts +3 -0
  13. package/build/format/idna/format/bidi.mjs +98 -0
  14. package/build/format/idna/format/puny.d.mts +3 -0
  15. package/build/format/idna/format/puny.mjs +144 -0
  16. package/build/format/idna/hostname.d.mts +1 -0
  17. package/build/format/idna/hostname.mjs +16 -0
  18. package/build/format/idna/idn-hostname.d.mts +1 -0
  19. package/build/format/idna/idn-hostname.mjs +23 -0
  20. package/build/format/idna/index.d.mts +2 -0
  21. package/build/format/idna/index.mjs +2 -0
  22. package/build/format/idna/label/ascii.d.mts +1 -0
  23. package/build/format/idna/label/ascii.mjs +9 -0
  24. package/build/format/idna/label/puny.d.mts +1 -0
  25. package/build/format/idna/label/puny.mjs +28 -0
  26. package/build/format/idna/label/unicode.d.mts +1 -0
  27. package/build/format/idna/label/unicode.mjs +106 -0
  28. package/build/format/idna/pattern/pattern.d.mts +30 -0
  29. package/build/format/idna/pattern/pattern.mjs +70 -0
  30. package/build/format/ipv4.d.mts +0 -1
  31. package/build/format/ipv4.mjs +2 -32
  32. package/build/format/ipv6.mjs +2 -61
  33. package/build/format/iri.d.mts +1 -1
  34. package/build/format/iri.mjs +2 -8
  35. package/build/format/iri_reference.d.mts +2 -2
  36. package/build/format/iri_reference.mjs +9 -55
  37. package/build/format/regex.d.mts +1 -2
  38. package/build/format/regex.mjs +2 -6
  39. package/build/format/time.d.mts +2 -2
  40. package/build/format/time.mjs +19 -14
  41. package/build/format/uri.mjs +2 -129
  42. package/build/format/uri_template.d.mts +0 -1
  43. package/build/format/uri_template.mjs +1 -2
  44. package/build/format/url.d.mts +2 -2
  45. package/build/format/url.mjs +3 -4
  46. package/build/guard/guard.mjs +2 -2
  47. package/build/guard/string.d.mts +2 -2
  48. package/build/guard/string.mjs +7 -7
  49. package/build/schema/engine/_regexp.d.mts +2 -0
  50. package/build/schema/engine/_regexp.mjs +4 -0
  51. package/build/schema/engine/_stack.mjs +1 -1
  52. package/build/schema/engine/additionalProperties.mjs +4 -3
  53. package/build/schema/engine/pattern.mjs +3 -2
  54. package/build/schema/engine/patternProperties.mjs +4 -3
  55. package/build/schema/engine/schema.mjs +13 -4
  56. package/build/schema/resolve/ref.d.mts +1 -0
  57. package/build/schema/resolve/ref.mjs +13 -3
  58. package/build/schema/types/index.d.mts +0 -2
  59. package/build/schema/types/index.mjs +0 -2
  60. package/build/system/memory/clone.mjs +1 -1
  61. package/build/system/memory/discard.mjs +2 -1
  62. package/build/type/engine/evaluate/broaden.d.mts +5 -5
  63. package/build/type/engine/evaluate/broaden.mjs +20 -26
  64. package/build/type/engine/evaluate/compare.d.mts +6 -10
  65. package/build/type/engine/evaluate/compare.mjs +9 -13
  66. package/build/type/engine/evaluate/composite.d.mts +7 -4
  67. package/build/type/engine/evaluate/composite.mjs +12 -19
  68. package/build/type/engine/evaluate/distribute.d.mts +4 -20
  69. package/build/type/engine/evaluate/distribute.mjs +8 -20
  70. package/build/type/engine/evaluate/evaluate.d.mts +4 -4
  71. package/build/type/engine/evaluate/evaluate.mjs +11 -8
  72. package/build/type/engine/evaluate/flatten.d.mts +1 -1
  73. package/build/type/engine/evaluate/flatten.mjs +3 -4
  74. package/build/type/engine/evaluate/narrow.d.mts +17 -2
  75. package/build/type/engine/evaluate/narrow.mjs +26 -6
  76. package/build/type/engine/exclude/operation.mjs +3 -4
  77. package/build/type/engine/extract/operation.d.mts +1 -1
  78. package/build/type/engine/extract/operation.mjs +3 -4
  79. package/build/type/engine/priority/priority.d.mts +2 -2
  80. package/build/type/engine/priority/priority.mjs +3 -4
  81. package/build/type/script/parser.mjs +8 -1
  82. package/package.json +1 -1
  83. package/readme.md +3 -4
  84. package/build/format/_idna.d.mts +0 -2
  85. package/build/format/_idna.mjs +0 -246
  86. package/build/format/_puny.d.mts +0 -1
  87. package/build/format/_puny.mjs +0 -77
  88. package/build/schema/types/contentEncoding.d.mts +0 -9
  89. package/build/schema/types/contentEncoding.mjs +0 -13
  90. package/build/schema/types/contentMediaType.d.mts +0 -9
  91. package/build/schema/types/contentMediaType.mjs +0 -13
@@ -1,13 +0,0 @@
1
- // deno-fmt-ignore-file
2
- import { Guard } from '../../guard/index.mjs';
3
- // ------------------------------------------------------------------
4
- // Guard
5
- // ------------------------------------------------------------------
6
- /**
7
- * Returns true if the schema contains a valid contentMediaType property
8
- * @specification Json Schema 7
9
- */
10
- export function IsContentMediaType(schema) {
11
- return Guard.HasPropertyKey(schema, 'contentMediaType')
12
- && Guard.IsString(schema.contentMediaType);
13
- }