@depup/typebox 1.1.20-depup.0 → 1.1.23-depup.0

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 (216) hide show
  1. package/README.md +2 -2
  2. package/build/compile/compile.mjs +1 -0
  3. package/build/compile/validator.mjs +1 -1
  4. package/build/error/errors.mjs +1 -0
  5. package/build/format/email.d.mts +1 -1
  6. package/build/format/email.mjs +3 -24
  7. package/build/format/idn-email.d.mts +1 -1
  8. package/build/format/idn-email.mjs +3 -3
  9. package/build/format/iri-reference.mjs +1 -0
  10. package/build/format/uri-reference.mjs +1 -0
  11. package/build/guard/globals.d.mts +3 -3
  12. package/build/guard/guard.d.mts +1 -1
  13. package/build/schema/build.mjs +3 -3
  14. package/build/schema/engine/_functions.mjs +1 -1
  15. package/build/schema/engine/_guard.d.mts +3 -3
  16. package/build/schema/engine/_guard.mjs +3 -3
  17. package/build/schema/engine/_refine.d.mts +3 -3
  18. package/build/schema/engine/_refine.mjs +3 -3
  19. package/build/schema/engine/additionalProperties.d.mts +2 -2
  20. package/build/schema/engine/additionalProperties.mjs +2 -2
  21. package/build/schema/engine/anyOf.mjs +1 -1
  22. package/build/schema/engine/boolean.d.mts +2 -2
  23. package/build/schema/engine/boolean.mjs +2 -2
  24. package/build/schema/engine/const.d.mts +2 -2
  25. package/build/schema/engine/const.mjs +2 -2
  26. package/build/schema/engine/dependentRequired.d.mts +3 -3
  27. package/build/schema/engine/dependentRequired.mjs +3 -3
  28. package/build/schema/engine/enum.d.mts +2 -2
  29. package/build/schema/engine/enum.mjs +2 -2
  30. package/build/schema/engine/exclusiveMaximum.d.mts +2 -2
  31. package/build/schema/engine/exclusiveMaximum.mjs +2 -2
  32. package/build/schema/engine/exclusiveMinimum.d.mts +2 -2
  33. package/build/schema/engine/exclusiveMinimum.mjs +2 -2
  34. package/build/schema/engine/format.d.mts +2 -2
  35. package/build/schema/engine/format.mjs +2 -2
  36. package/build/schema/engine/maxItems.d.mts +2 -2
  37. package/build/schema/engine/maxItems.mjs +2 -2
  38. package/build/schema/engine/maxLength.d.mts +2 -2
  39. package/build/schema/engine/maxLength.mjs +2 -2
  40. package/build/schema/engine/maxProperties.d.mts +2 -2
  41. package/build/schema/engine/maxProperties.mjs +2 -2
  42. package/build/schema/engine/maximum.d.mts +2 -2
  43. package/build/schema/engine/maximum.mjs +2 -2
  44. package/build/schema/engine/minItems.d.mts +2 -2
  45. package/build/schema/engine/minItems.mjs +2 -2
  46. package/build/schema/engine/minLength.d.mts +2 -2
  47. package/build/schema/engine/minLength.mjs +2 -2
  48. package/build/schema/engine/minProperties.d.mts +2 -2
  49. package/build/schema/engine/minProperties.mjs +2 -2
  50. package/build/schema/engine/minimum.d.mts +2 -2
  51. package/build/schema/engine/minimum.mjs +2 -2
  52. package/build/schema/engine/multipleOf.d.mts +2 -2
  53. package/build/schema/engine/multipleOf.mjs +2 -2
  54. package/build/schema/engine/pattern.d.mts +2 -2
  55. package/build/schema/engine/pattern.mjs +2 -2
  56. package/build/schema/engine/recursiveRef.d.mts +1 -1
  57. package/build/schema/engine/recursiveRef.mjs +1 -1
  58. package/build/schema/engine/ref.d.mts +1 -1
  59. package/build/schema/engine/ref.mjs +1 -1
  60. package/build/schema/engine/required.d.mts +3 -3
  61. package/build/schema/engine/required.mjs +3 -3
  62. package/build/schema/engine/type.mjs +2 -2
  63. package/build/schema/engine/uniqueItems.d.mts +3 -3
  64. package/build/schema/engine/uniqueItems.mjs +3 -3
  65. package/build/schema/resolve/ref.mjs +1 -1
  66. package/build/schema/static/additionalProperties.mjs +1 -0
  67. package/build/schema/static/ref.mjs +1 -0
  68. package/build/schema/static/required.mjs +1 -0
  69. package/build/schema/static/static.mjs +1 -0
  70. package/build/schema/static/type.mjs +1 -0
  71. package/build/schema/static/unevaluatedProperties.mjs +1 -0
  72. package/build/system/environment/environment.d.mts +1 -1
  73. package/build/system/environment/environment.mjs +1 -1
  74. package/build/system/environment/evaluate.d.mts +9 -0
  75. package/build/system/environment/evaluate.mjs +37 -0
  76. package/build/system/memory/assign.mjs +1 -0
  77. package/build/system/memory/create.mjs +2 -1
  78. package/build/system/memory/discard.mjs +1 -0
  79. package/build/type/action/awaited.mjs +1 -0
  80. package/build/type/action/capitalize.mjs +1 -0
  81. package/build/type/action/conditional.mjs +1 -0
  82. package/build/type/action/constructor-parameters.mjs +1 -0
  83. package/build/type/action/evaluate.mjs +1 -0
  84. package/build/type/action/exclude.mjs +1 -0
  85. package/build/type/action/extract.mjs +1 -0
  86. package/build/type/action/indexed.mjs +1 -0
  87. package/build/type/action/instance-type.mjs +1 -0
  88. package/build/type/action/interface.mjs +1 -0
  89. package/build/type/action/keyof.mjs +1 -0
  90. package/build/type/action/lowercase.mjs +1 -0
  91. package/build/type/action/mapped.mjs +1 -0
  92. package/build/type/action/module.mjs +1 -0
  93. package/build/type/action/non-nullable.mjs +1 -0
  94. package/build/type/action/omit.mjs +1 -0
  95. package/build/type/action/options.mjs +1 -0
  96. package/build/type/action/parameters.mjs +1 -0
  97. package/build/type/action/partial.mjs +1 -0
  98. package/build/type/action/pick.mjs +1 -0
  99. package/build/type/action/readonly-type.mjs +1 -0
  100. package/build/type/action/required.mjs +1 -0
  101. package/build/type/action/return-type.mjs +1 -0
  102. package/build/type/action/uncapitalize.mjs +1 -0
  103. package/build/type/action/uppercase.mjs +1 -0
  104. package/build/type/engine/constructor-parameters/instantiate.mjs +1 -0
  105. package/build/type/engine/cyclic/extends.mjs +4 -4
  106. package/build/type/engine/cyclic/instantiate.mjs +1 -0
  107. package/build/type/engine/evaluate/broaden.mjs +1 -1
  108. package/build/type/engine/evaluate/compare.mjs +1 -0
  109. package/build/type/engine/exclude/instantiate.mjs +1 -0
  110. package/build/type/engine/extract/instantiate.mjs +1 -0
  111. package/build/type/engine/helpers/union.mjs +1 -0
  112. package/build/type/engine/indexed/from-array.mjs +1 -0
  113. package/build/type/engine/indexed/from-tuple.mjs +1 -0
  114. package/build/type/engine/interface/instantiate.mjs +1 -1
  115. package/build/type/engine/mapped/instantiate.mjs +1 -0
  116. package/build/type/engine/module/instantiate.mjs +1 -0
  117. package/build/type/engine/non-nullable/instantiate.mjs +1 -0
  118. package/build/type/engine/object/from-intersect.mjs +1 -0
  119. package/build/type/engine/object/from-type.mjs +1 -0
  120. package/build/type/engine/parameters/instantiate.mjs +1 -0
  121. package/build/type/engine/partial/from-type.mjs +1 -0
  122. package/build/type/engine/pick/instantiate.mjs +1 -0
  123. package/build/type/engine/record/from-key-integer.d.mts +2 -2
  124. package/build/type/engine/record/from-key-integer.mjs +1 -1
  125. package/build/type/engine/record/from-key-number.d.mts +1 -1
  126. package/build/type/engine/record/from-key-number.mjs +1 -1
  127. package/build/type/engine/required/from-type.mjs +1 -0
  128. package/build/type/engine/template-literal/encode.mjs +1 -1
  129. package/build/type/engine/template-literal/is-finite.mjs +1 -1
  130. package/build/type/engine/tuple/to-object.mjs +1 -0
  131. package/build/type/extends/extends-right.d.mts +1 -1
  132. package/build/type/extends/extends-right.mjs +1 -1
  133. package/build/type/extends/inference.mjs +1 -0
  134. package/build/type/extends/object.mjs +1 -0
  135. package/build/type/types/_codec.d.mts +1 -1
  136. package/build/type/types/_codec.mjs +1 -0
  137. package/build/type/types/base.d.mts +2 -2
  138. package/build/type/types/base.mjs +2 -2
  139. package/build/type/types/call.mjs +1 -0
  140. package/build/type/types/never.mjs +1 -0
  141. package/build/type/types/properties.mjs +0 -1
  142. package/build/type/types/record.mjs +1 -0
  143. package/build/type/types/ref.mjs +1 -0
  144. package/build/value/clean/from-base.d.mts +1 -1
  145. package/build/value/clean/from-base.mjs +1 -1
  146. package/build/value/codec/callback.mjs +2 -2
  147. package/build/value/codec/from-union.mjs +1 -1
  148. package/build/value/convert/from-array.mjs +3 -4
  149. package/build/value/convert/from-base.d.mts +1 -1
  150. package/build/value/convert/from-base.mjs +1 -1
  151. package/build/value/convert/from-bigint.d.mts +1 -1
  152. package/build/value/convert/from-bigint.mjs +1 -4
  153. package/build/value/convert/from-boolean.d.mts +1 -1
  154. package/build/value/convert/from-boolean.mjs +1 -4
  155. package/build/value/convert/from-integer.d.mts +1 -1
  156. package/build/value/convert/from-integer.mjs +1 -4
  157. package/build/value/convert/from-literal.mjs +4 -4
  158. package/build/value/convert/from-null.d.mts +1 -1
  159. package/build/value/convert/from-null.mjs +1 -4
  160. package/build/value/convert/from-number.d.mts +1 -1
  161. package/build/value/convert/from-number.mjs +1 -4
  162. package/build/value/convert/from-string.d.mts +1 -1
  163. package/build/value/convert/from-string.mjs +1 -4
  164. package/build/value/convert/from-type.d.mts +2 -2
  165. package/build/value/convert/from-type.mjs +21 -21
  166. package/build/value/convert/from-undefined.d.mts +1 -1
  167. package/build/value/convert/from-undefined.mjs +1 -4
  168. package/build/value/convert/from-void.d.mts +1 -1
  169. package/build/value/convert/from-void.mjs +1 -4
  170. package/build/value/convert/try/try-array.d.mts +2 -0
  171. package/build/value/convert/try/try-array.mjs +6 -0
  172. package/build/value/convert/try/try-bigint.mjs +4 -33
  173. package/build/value/convert/try/try-boolean.mjs +3 -26
  174. package/build/value/convert/try/try-null.mjs +2 -19
  175. package/build/value/convert/try/try-number.mjs +6 -38
  176. package/build/value/convert/try/try-result.mjs +0 -1
  177. package/build/value/convert/try/try-string.mjs +6 -50
  178. package/build/value/convert/try/try-undefined.mjs +2 -19
  179. package/build/value/convert/try/try.d.mts +1 -0
  180. package/build/value/convert/try/try.mjs +1 -0
  181. package/build/value/create/from-async-iterator.d.mts +1 -1
  182. package/build/value/create/from-async-iterator.mjs +1 -1
  183. package/build/value/create/from-base.d.mts +1 -1
  184. package/build/value/create/from-base.mjs +1 -1
  185. package/build/value/create/from-bigint.d.mts +1 -1
  186. package/build/value/create/from-bigint.mjs +1 -1
  187. package/build/value/create/from-boolean.d.mts +1 -1
  188. package/build/value/create/from-boolean.mjs +1 -1
  189. package/build/value/create/from-default.d.mts +1 -1
  190. package/build/value/create/from-default.mjs +1 -1
  191. package/build/value/create/from-integer.d.mts +1 -1
  192. package/build/value/create/from-integer.mjs +1 -1
  193. package/build/value/create/from-iterator.d.mts +1 -1
  194. package/build/value/create/from-iterator.mjs +1 -1
  195. package/build/value/create/from-literal.d.mts +1 -1
  196. package/build/value/create/from-literal.mjs +1 -1
  197. package/build/value/create/from-never.d.mts +1 -1
  198. package/build/value/create/from-never.mjs +1 -1
  199. package/build/value/create/from-null.d.mts +1 -1
  200. package/build/value/create/from-null.mjs +1 -1
  201. package/build/value/create/from-number.d.mts +1 -1
  202. package/build/value/create/from-number.mjs +1 -1
  203. package/build/value/create/from-record.d.mts +1 -1
  204. package/build/value/create/from-record.mjs +1 -1
  205. package/build/value/create/from-string.d.mts +1 -1
  206. package/build/value/create/from-string.mjs +1 -1
  207. package/build/value/create/from-symbol.d.mts +1 -1
  208. package/build/value/create/from-symbol.mjs +1 -1
  209. package/build/value/create/from-undefined.d.mts +1 -1
  210. package/build/value/create/from-undefined.mjs +1 -1
  211. package/build/value/create/from-void.d.mts +1 -1
  212. package/build/value/create/from-void.mjs +1 -1
  213. package/changes.json +1 -1
  214. package/package.json +32 -32
  215. package/build/system/environment/can-evaluate.d.mts +0 -2
  216. package/build/system/environment/can-evaluate.mjs +0 -26
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/typebox
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [typebox](https://www.npmjs.com/package/typebox) @ 1.1.20 |
17
- | Processed | 2026-04-08 |
16
+ | Original | [typebox](https://www.npmjs.com/package/typebox) @ 1.1.23 |
17
+ | Processed | 2026-04-09 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
@@ -1,3 +1,4 @@
1
+ // deno-lint-ignore-file ban-types
1
2
  // deno-fmt-ignore-file
2
3
  import { Arguments } from '../system/arguments/index.mjs';
3
4
  import { Validator } from './validator.mjs';
@@ -70,7 +70,7 @@ export class Validator extends Base {
70
70
  }
71
71
  /** Inspects a value and returns a detailed list of validation errors. */
72
72
  Errors(value) {
73
- if (Environment.CanAccelerate() && this.check(value))
73
+ if (Environment.CanEvaluate() && this.check(value))
74
74
  return [];
75
75
  return Errors(this.context, this.type, value);
76
76
  }
@@ -1,3 +1,4 @@
1
+ // deno-lint-ignore-file ban-types
1
2
  import { Guard } from '../guard/index.mjs';
2
3
  export function IsValidationError(value) {
3
4
  return Guard.IsObject(value) &&
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Returns true if the value is an Email
3
- * @specification Json Schema 2020-12
3
+ * @specification ajv-formats
4
4
  */
5
5
  export declare function IsEmail(value: string): boolean;
@@ -1,29 +1,8 @@
1
- import { IsIPv4Internal } from './ipv4.mjs';
1
+ const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;
2
2
  /**
3
3
  * Returns true if the value is an Email
4
- * @specification Json Schema 2020-12
4
+ * @specification ajv-formats
5
5
  */
6
6
  export function IsEmail(value) {
7
- const dot = value.indexOf('.');
8
- const at = value.indexOf('@');
9
- const quoted = value[0] === '"' && value[at - 1] === '"';
10
- const ipLiteral = value[at + 1] === '[' && value[value.length - 1] === ']';
11
- const ipv6 = ipLiteral && value.indexOf(':', at) !== -1;
12
- const ipv4 = ipLiteral && !ipv6 && IsIPv4Internal(value, at + 2, value.length - 1);
13
- return (at > 0 && at < value.length - 1) &&
14
- !(
15
- // .test@example.com
16
- (!quoted && dot === 0) ||
17
- // te..st@example.com
18
- (!quoted && dot !== -1 && value.indexOf('.', dot + 1) === dot + 1) ||
19
- // test.@example.com
20
- (dot !== -1 && value.indexOf('@', dot) === dot + 1) ||
21
- // joe bloggs@example.com
22
- (!quoted && value.indexOf(' ') !== -1) ||
23
- // user1@oceania.org, user2@oceania.org
24
- (value.indexOf(',') !== -1) ||
25
- // joe.bloggs@[127.0.0.300]
26
- (ipLiteral && !ipv4 && !ipv6) ||
27
- // joe.bloggs@invalid=domain.com
28
- (value.indexOf('=', at) !== -1));
7
+ return Email.test(value);
29
8
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Returns true if the value is an IdnEmail
3
- * @specification Json Schema 2020-12
3
+ * @specification ajv-formats (unicode-extension)
4
4
  */
5
5
  export declare function IsIdnEmail(value: string): boolean;
@@ -1,8 +1,8 @@
1
- import { IsEmail } from './email.mjs';
1
+ const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;
2
2
  /**
3
3
  * Returns true if the value is an IdnEmail
4
- * @specification Json Schema 2020-12
4
+ * @specification ajv-formats (unicode-extension)
5
5
  */
6
6
  export function IsIdnEmail(value) {
7
- return IsEmail(value);
7
+ return IdnEmail.test(value);
8
8
  }
@@ -1,3 +1,4 @@
1
+ // deno-lint-ignore-file no-control-regex
1
2
  // deno-coverage-ignore-start
2
3
  function TryUrl(value) {
3
4
  try {
@@ -1,3 +1,4 @@
1
+ // deno-lint-ignore-file no-control-regex
1
2
  const UriReference = /^(?!.*[^\x00-\x7F])(?!.*\\)(?:(?:[a-z][a-z0-9+\-.]*:)?(?:\/\/[^\s[\]{}<>^`|]*)?|[^\s[\]{}<>^`|]*)(?:\?[^\s[\]{}<>^`|]*)?(?:#[^\s[\]{}<>^`|]*)?$/i;
2
3
  /**
3
4
  * Returns true if the value is a valid URI Reference.
@@ -1,6 +1,6 @@
1
- export declare function IsBoolean(value: unknown): value is Boolean;
2
- export declare function IsNumber(value: unknown): value is Number;
3
- export declare function IsString(value: unknown): value is String;
1
+ export declare function IsBoolean(value: unknown): value is globalThis.Boolean;
2
+ export declare function IsNumber(value: unknown): value is globalThis.Number;
3
+ export declare function IsString(value: unknown): value is globalThis.String;
4
4
  export type TTypeArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
5
5
  export declare function IsTypeArray(value: unknown): value is TTypeArray;
6
6
  /** Returns true if the value is a Int8Array */
@@ -9,7 +9,7 @@ export declare function IsBoolean(value: unknown): value is boolean;
9
9
  /** Returns true if this value is a constructor */
10
10
  export declare function IsConstructor(value: unknown): value is new (...args: never[]) => unknown;
11
11
  /** Returns true if this value is a function */
12
- export declare function IsFunction(value: unknown): value is Function;
12
+ export declare function IsFunction(value: unknown): value is globalThis.Function;
13
13
  /** Returns true if this value is integer */
14
14
  export declare function IsInteger(value: unknown): value is number;
15
15
  /** Returns true if this value is an iterator */
@@ -20,7 +20,7 @@ function CreateCode(build) {
20
20
  // CreateEvaluatedCheck
21
21
  // ------------------------------------------------------------------
22
22
  function CreateEvaluatedCheck(build, code) {
23
- const factory = new globalThis.Function('CheckContext', 'Guard', 'Format', 'Hashing', build.External().identifier, code);
23
+ const factory = Environment.Evaluate('CheckContext', 'Guard', 'Format', 'Hashing', build.External().identifier, code);
24
24
  return factory(Engine.CheckContext, Guard, Format, Hashing, build.External().variables);
25
25
  }
26
26
  // ------------------------------------------------------------------
@@ -35,7 +35,7 @@ function CreateDynamicCheck(build) {
35
35
  // CreateCheck
36
36
  // ------------------------------------------------------------------
37
37
  function CreateCheck(build, code) {
38
- return Environment.CanAccelerate()
38
+ return Environment.CanEvaluate()
39
39
  ? CreateEvaluatedCheck(build, code)
40
40
  : CreateDynamicCheck(build);
41
41
  }
@@ -79,7 +79,7 @@ export class BuildResult {
79
79
  Evaluate() {
80
80
  const Code = CreateCode(this);
81
81
  const Check = CreateCheck(this, Code);
82
- return { IsAccelerated: Environment.CanAccelerate(), Code, Check };
82
+ return { IsAccelerated: Environment.CanEvaluate(), Code, Check };
83
83
  }
84
84
  }
85
85
  /** Builds a schema into a optimized runtime validator */
@@ -7,7 +7,7 @@ const functions = new Map();
7
7
  // ------------------------------------------------------------------
8
8
  // CreateCallExpression
9
9
  // ------------------------------------------------------------------
10
- function CreateCallExpression(context, schema, hash, value) {
10
+ function CreateCallExpression(context, _schema, hash, value) {
11
11
  return context.UseUnevaluated()
12
12
  ? E.Call(`check_${hash}`, ['context', value])
13
13
  : E.Call(`check_${hash}`, [value]);
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildGuard(stack: Stack, context: BuildContext, schema: Schema.XGuard, value: string): string;
5
- export declare function CheckGuard(stack: Stack, context: CheckContext, schema: Schema.XGuard, value: unknown): boolean;
6
- export declare function ErrorGuard(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XGuard, value: unknown): boolean;
4
+ export declare function BuildGuard(_stack: Stack, _context: BuildContext, schema: Schema.XGuard, value: string): string;
5
+ export declare function CheckGuard(_stack: Stack, _context: CheckContext, schema: Schema.XGuard, value: unknown): boolean;
6
+ export declare function ErrorGuard(_stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XGuard, value: unknown): boolean;
@@ -4,19 +4,19 @@ import { EmitGuard as E } from '../../guard/index.mjs';
4
4
  // ------------------------------------------------------------------
5
5
  // Build
6
6
  // ------------------------------------------------------------------
7
- export function BuildGuard(stack, context, schema, value) {
7
+ export function BuildGuard(_stack, _context, schema, value) {
8
8
  return E.Call(E.Member(E.Member(Externals.CreateVariable(schema), '~guard'), 'check'), [value]);
9
9
  }
10
10
  // ------------------------------------------------------------------
11
11
  // Check
12
12
  // ------------------------------------------------------------------
13
- export function CheckGuard(stack, context, schema, value) {
13
+ export function CheckGuard(_stack, _context, schema, value) {
14
14
  return schema['~guard'].check(value);
15
15
  }
16
16
  // ------------------------------------------------------------------
17
17
  // Error
18
18
  // ------------------------------------------------------------------
19
- export function ErrorGuard(stack, context, schemaPath, instancePath, schema, value) {
19
+ export function ErrorGuard(_stack, context, schemaPath, instancePath, schema, value) {
20
20
  return schema['~guard'].check(value) || context.AddError({
21
21
  keyword: '~guard',
22
22
  schemaPath,
@@ -1,6 +1,6 @@
1
1
  import * as S from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildRefine(stack: Stack, context: BuildContext, schema: S.XRefine, value: string): string;
5
- export declare function CheckRefine(stack: Stack, context: CheckContext, schema: S.XRefine, value: unknown): boolean;
6
- export declare function ErrorRefine(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: S.XRefine, value: unknown): boolean;
4
+ export declare function BuildRefine(_stack: Stack, _context: BuildContext, schema: S.XRefine, value: string): string;
5
+ export declare function CheckRefine(_stack: Stack, _context: CheckContext, schema: S.XRefine, value: unknown): boolean;
6
+ export declare function ErrorRefine(_stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: S.XRefine, value: unknown): boolean;
@@ -4,20 +4,20 @@ import { EmitGuard as E, Guard as G } from '../../guard/index.mjs';
4
4
  // ------------------------------------------------------------------
5
5
  // Build
6
6
  // ------------------------------------------------------------------
7
- export function BuildRefine(stack, context, schema, value) {
7
+ export function BuildRefine(_stack, _context, schema, value) {
8
8
  const refinements = V.CreateVariable(schema['~refine'].map((refinement) => refinement));
9
9
  return E.Every(refinements, E.Constant(0), ['refinement', '_'], E.Call(E.Member('refinement', 'refine'), [value]));
10
10
  }
11
11
  // ------------------------------------------------------------------
12
12
  // Check
13
13
  // ------------------------------------------------------------------
14
- export function CheckRefine(stack, context, schema, value) {
14
+ export function CheckRefine(_stack, _context, schema, value) {
15
15
  return G.Every(schema['~refine'], 0, (refinement, _) => refinement.refine(value));
16
16
  }
17
17
  // ------------------------------------------------------------------
18
18
  // Error
19
19
  // ------------------------------------------------------------------
20
- export function ErrorRefine(stack, context, schemaPath, instancePath, schema, value) {
20
+ export function ErrorRefine(_stack, context, schemaPath, instancePath, schema, value) {
21
21
  return G.EveryAll(schema['~refine'], 0, (refinement, index) => {
22
22
  return refinement.refine(value) || context.AddError({
23
23
  keyword: '~refine',
@@ -1,8 +1,8 @@
1
1
  import * as S from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function CanAdditionalPropertiesFast(context: BuildContext, schema: S.XAdditionalProperties, value: string): schema is S.XAdditionalProperties & S.XRequired;
5
- export declare function BuildAdditionalPropertiesFast(context: BuildContext, schema: S.XAdditionalProperties & S.XRequired, value: string): string;
4
+ export declare function CanAdditionalPropertiesFast(_context: BuildContext, schema: S.XAdditionalProperties, _value: string): schema is S.XAdditionalProperties & S.XRequired;
5
+ export declare function BuildAdditionalPropertiesFast(_context: BuildContext, schema: S.XAdditionalProperties & S.XRequired, value: string): string;
6
6
  export declare function BuildAdditionalPropertiesStandard(stack: Stack, context: BuildContext, schema: S.XAdditionalProperties, value: string): string;
7
7
  export declare function BuildAdditionalProperties(stack: Stack, context: BuildContext, schema: S.XAdditionalProperties, value: string): string;
8
8
  export declare function CheckAdditionalProperties(stack: Stack, context: CheckContext, schema: S.XAdditionalProperties, value: Record<PropertyKey, unknown>): boolean;
@@ -43,14 +43,14 @@ function GetPropertiesPattern(schema) {
43
43
  // we can generate a simplified and efficient runtime check.
44
44
  //
45
45
  // ------------------------------------------------------------------
46
- export function CanAdditionalPropertiesFast(context, schema, value) {
46
+ export function CanAdditionalPropertiesFast(_context, schema, _value) {
47
47
  return S.IsRequired(schema)
48
48
  && S.IsProperties(schema)
49
49
  && !S.IsPatternProperties(schema)
50
50
  && G.IsEqual(schema.additionalProperties, false)
51
51
  && G.IsEqual(G.Keys(schema.properties).length, schema.required.length);
52
52
  }
53
- export function BuildAdditionalPropertiesFast(context, schema, value) {
53
+ export function BuildAdditionalPropertiesFast(_context, schema, value) {
54
54
  return E.IsEqual(E.Member(E.Call(E.Member('Object', 'getOwnPropertyNames'), [value]), 'length'), E.Constant(schema.required.length));
55
55
  }
56
56
  // ------------------------------------------------------------------
@@ -21,7 +21,7 @@ export function BuildAnyOf(stack, context, schema, value) {
21
21
  // Check
22
22
  // ------------------------------------------------------------------
23
23
  export function CheckAnyOf(stack, context, schema, value) {
24
- const results = schema.anyOf.reduce((result, schema, index) => {
24
+ const results = schema.anyOf.reduce((result, schema) => {
25
25
  const nextContext = new CheckContext();
26
26
  return CheckSchema(stack, nextContext, schema, value) ? [...result, nextContext] : result;
27
27
  }, []);
@@ -1,5 +1,5 @@
1
1
  import { Stack } from './_stack.mjs';
2
2
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
3
- export declare function BuildBooleanSchema(stack: Stack, context: BuildContext, schema: boolean, value: string): string;
4
- export declare function CheckBooleanSchema(stack: Stack, context: CheckContext, schema: boolean, value: unknown): boolean;
3
+ export declare function BuildBooleanSchema(_stack: Stack, _context: BuildContext, schema: boolean, _value: string): string;
4
+ export declare function CheckBooleanSchema(_stack: Stack, _context: CheckContext, schema: boolean, _value: unknown): boolean;
5
5
  export declare function ErrorBooleanSchema(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: boolean, value: unknown): boolean;
@@ -3,13 +3,13 @@ import { EmitGuard as E } from '../../guard/index.mjs';
3
3
  // ------------------------------------------------------------------
4
4
  // Build
5
5
  // ------------------------------------------------------------------
6
- export function BuildBooleanSchema(stack, context, schema, value) {
6
+ export function BuildBooleanSchema(_stack, _context, schema, _value) {
7
7
  return schema ? E.Constant(true) : E.Constant(false);
8
8
  }
9
9
  // ------------------------------------------------------------------
10
10
  // Check
11
11
  // ------------------------------------------------------------------
12
- export function CheckBooleanSchema(stack, context, schema, value) {
12
+ export function CheckBooleanSchema(_stack, _context, schema, _value) {
13
13
  return schema;
14
14
  }
15
15
  // ------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildConst(stack: Stack, context: BuildContext, schema: Schema.XConst, value: string): string;
5
- export declare function CheckConst(stack: Stack, context: CheckContext, schema: Schema.XConst, value: unknown): boolean;
4
+ export declare function BuildConst(_stack: Stack, _context: BuildContext, schema: Schema.XConst, value: string): string;
5
+ export declare function CheckConst(_stack: Stack, _context: CheckContext, schema: Schema.XConst, value: unknown): boolean;
6
6
  export declare function ErrorConst(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XConst, value: unknown): boolean;
@@ -4,7 +4,7 @@ import { EmitGuard as E, Guard as G } from '../../guard/index.mjs';
4
4
  // ------------------------------------------------------------------
5
5
  // Build
6
6
  // ------------------------------------------------------------------
7
- export function BuildConst(stack, context, schema, value) {
7
+ export function BuildConst(_stack, _context, schema, value) {
8
8
  return G.IsValueLike(schema.const)
9
9
  ? E.IsEqual(value, E.Constant(schema.const))
10
10
  : E.IsDeepEqual(value, Externals.CreateVariable(schema.const));
@@ -12,7 +12,7 @@ export function BuildConst(stack, context, schema, value) {
12
12
  // ------------------------------------------------------------------
13
13
  // Check
14
14
  // ------------------------------------------------------------------
15
- export function CheckConst(stack, context, schema, value) {
15
+ export function CheckConst(_stack, _context, schema, value) {
16
16
  return G.IsValueLike(schema.const)
17
17
  ? G.IsEqual(value, schema.const)
18
18
  : G.IsDeepEqual(value, schema.const);
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildDependentRequired(stack: Stack, context: BuildContext, schema: Schema.XDependentRequired, value: string): string;
5
- export declare function CheckDependentRequired(stack: Stack, context: CheckContext, schema: Schema.XDependentRequired, value: Record<PropertyKey, unknown>): boolean;
6
- export declare function ErrorDependentRequired(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XDependentRequired, value: Record<PropertyKey, unknown>): boolean;
4
+ export declare function BuildDependentRequired(_stack: Stack, _context: BuildContext, schema: Schema.XDependentRequired, value: string): string;
5
+ export declare function CheckDependentRequired(_stack: Stack, _context: CheckContext, schema: Schema.XDependentRequired, value: Record<PropertyKey, unknown>): boolean;
6
+ export declare function ErrorDependentRequired(_stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XDependentRequired, value: Record<PropertyKey, unknown>): boolean;
@@ -3,7 +3,7 @@ import { EmitGuard as E, Guard as G } from '../../guard/index.mjs';
3
3
  // ------------------------------------------------------------------
4
4
  // Build
5
5
  // ------------------------------------------------------------------
6
- export function BuildDependentRequired(stack, context, schema, value) {
6
+ export function BuildDependentRequired(_stack, _context, schema, value) {
7
7
  const isLength = E.IsEqual(E.Member(E.Keys(value), 'length'), E.Constant(0));
8
8
  const isEvery = E.ReduceAnd(G.Entries(schema.dependentRequired).map(([key, keys]) => {
9
9
  const notKey = E.Not(E.HasPropertyKey(value, E.Constant(key)));
@@ -15,7 +15,7 @@ export function BuildDependentRequired(stack, context, schema, value) {
15
15
  // ------------------------------------------------------------------
16
16
  // Check
17
17
  // ------------------------------------------------------------------
18
- export function CheckDependentRequired(stack, context, schema, value) {
18
+ export function CheckDependentRequired(_stack, _context, schema, value) {
19
19
  const isLength = G.IsEqual(G.Keys(value).length, 0);
20
20
  const isEvery = G.Every(G.Entries(schema.dependentRequired), 0, ([key, keys]) => {
21
21
  return !G.HasPropertyKey(value, key) ||
@@ -26,7 +26,7 @@ export function CheckDependentRequired(stack, context, schema, value) {
26
26
  // ------------------------------------------------------------------
27
27
  // Error
28
28
  // ------------------------------------------------------------------
29
- export function ErrorDependentRequired(stack, context, schemaPath, instancePath, schema, value) {
29
+ export function ErrorDependentRequired(_stack, context, schemaPath, instancePath, schema, value) {
30
30
  const isLength = G.IsEqual(G.Keys(value).length, 0);
31
31
  const isEveryEntry = G.EveryAll(G.Entries(schema.dependentRequired), 0, ([key, keys]) => {
32
32
  return !G.HasPropertyKey(value, key) || G.EveryAll(keys, 0, (dependency) => G.HasPropertyKey(value, dependency) || context.AddError({
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildEnum(stack: Stack, context: BuildContext, schema: Schema.XEnum, value: string): string;
5
- export declare function CheckEnum(stack: Stack, context: CheckContext, schema: Schema.XEnum, value: unknown): boolean;
4
+ export declare function BuildEnum(_stack: Stack, _context: BuildContext, schema: Schema.XEnum, value: string): string;
5
+ export declare function CheckEnum(_stack: Stack, _context: CheckContext, schema: Schema.XEnum, value: unknown): boolean;
6
6
  export declare function ErrorEnum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XEnum, value: unknown): boolean;
@@ -4,7 +4,7 @@ import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
4
4
  // ------------------------------------------------------------------
5
5
  // Build
6
6
  // ------------------------------------------------------------------
7
- export function BuildEnum(stack, context, schema, value) {
7
+ export function BuildEnum(_stack, _context, schema, value) {
8
8
  return E.ReduceOr(schema.enum.map(option => {
9
9
  if (G.IsValueLike(option))
10
10
  return E.IsEqual(value, E.Constant(option));
@@ -15,7 +15,7 @@ export function BuildEnum(stack, context, schema, value) {
15
15
  // ------------------------------------------------------------------
16
16
  // Check
17
17
  // ------------------------------------------------------------------
18
- export function CheckEnum(stack, context, schema, value) {
18
+ export function CheckEnum(_stack, _context, schema, value) {
19
19
  return schema.enum.some(option => G.IsValueLike(option)
20
20
  ? G.IsEqual(value, option)
21
21
  : G.IsDeepEqual(value, option));
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildExclusiveMaximum(stack: Stack, context: BuildContext, schema: Schema.XExclusiveMaximum, value: string): string;
5
- export declare function CheckExclusiveMaximum(stack: Stack, context: CheckContext, schema: Schema.XExclusiveMaximum, value: number | bigint): boolean;
4
+ export declare function BuildExclusiveMaximum(_stack: Stack, _context: BuildContext, schema: Schema.XExclusiveMaximum, value: string): string;
5
+ export declare function CheckExclusiveMaximum(_stack: Stack, _context: CheckContext, schema: Schema.XExclusiveMaximum, value: number | bigint): boolean;
6
6
  export declare function ErrorExclusiveMaximum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XExclusiveMaximum, value: number | bigint): boolean;
@@ -3,13 +3,13 @@ import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
3
3
  // ------------------------------------------------------------------
4
4
  // Build
5
5
  // ------------------------------------------------------------------
6
- export function BuildExclusiveMaximum(stack, context, schema, value) {
6
+ export function BuildExclusiveMaximum(_stack, _context, schema, value) {
7
7
  return E.IsLessThan(value, E.Constant(schema.exclusiveMaximum));
8
8
  }
9
9
  // ------------------------------------------------------------------
10
10
  // Check
11
11
  // ------------------------------------------------------------------
12
- export function CheckExclusiveMaximum(stack, context, schema, value) {
12
+ export function CheckExclusiveMaximum(_stack, _context, schema, value) {
13
13
  return G.IsLessThan(value, schema.exclusiveMaximum);
14
14
  }
15
15
  // ------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildExclusiveMinimum(stack: Stack, context: BuildContext, schema: Schema.XExclusiveMinimum, value: string): string;
5
- export declare function CheckExclusiveMinimum(stack: Stack, context: CheckContext, schema: Schema.XExclusiveMinimum, value: number | bigint): boolean;
4
+ export declare function BuildExclusiveMinimum(_stack: Stack, _context: BuildContext, schema: Schema.XExclusiveMinimum, value: string): string;
5
+ export declare function CheckExclusiveMinimum(_stack: Stack, _context: CheckContext, schema: Schema.XExclusiveMinimum, value: number | bigint): boolean;
6
6
  export declare function ErrorExclusiveMinimum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XExclusiveMinimum, value: number | bigint): boolean;
@@ -3,13 +3,13 @@ import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
3
3
  // ------------------------------------------------------------------
4
4
  // Build
5
5
  // ------------------------------------------------------------------
6
- export function BuildExclusiveMinimum(stack, context, schema, value) {
6
+ export function BuildExclusiveMinimum(_stack, _context, schema, value) {
7
7
  return E.IsGreaterThan(value, E.Constant(schema.exclusiveMinimum));
8
8
  }
9
9
  // ------------------------------------------------------------------
10
10
  // Check
11
11
  // ------------------------------------------------------------------
12
- export function CheckExclusiveMinimum(stack, context, schema, value) {
12
+ export function CheckExclusiveMinimum(_stack, _context, schema, value) {
13
13
  return G.IsGreaterThan(value, schema.exclusiveMinimum);
14
14
  }
15
15
  // ------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildFormat(stack: Stack, context: BuildContext, schema: Schema.XFormat, value: string): string;
5
- export declare function CheckFormat(stack: Stack, context: CheckContext, schema: Schema.XFormat, value: string): boolean;
4
+ export declare function BuildFormat(_stack: Stack, _context: BuildContext, schema: Schema.XFormat, value: string): string;
5
+ export declare function CheckFormat(_stack: Stack, _context: CheckContext, schema: Schema.XFormat, value: string): boolean;
6
6
  export declare function ErrorFormat(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XFormat, value: string): boolean;
@@ -4,13 +4,13 @@ import { EmitGuard as E } from '../../guard/index.mjs';
4
4
  // ------------------------------------------------------------------
5
5
  // Build
6
6
  // ------------------------------------------------------------------
7
- export function BuildFormat(stack, context, schema, value) {
7
+ export function BuildFormat(_stack, _context, schema, value) {
8
8
  return E.Call(E.Member('Format', 'Test'), [E.Constant(schema.format), value]);
9
9
  }
10
10
  // ------------------------------------------------------------------
11
11
  // Check
12
12
  // ------------------------------------------------------------------
13
- export function CheckFormat(stack, context, schema, value) {
13
+ export function CheckFormat(_stack, _context, schema, value) {
14
14
  return Format.Test(schema.format, value);
15
15
  }
16
16
  // ------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildMaxItems(stack: Stack, context: BuildContext, schema: Schema.XMaxItems, value: string): string;
5
- export declare function CheckMaxItems(stack: Stack, context: CheckContext, schema: Schema.XMaxItems, value: unknown[]): boolean;
4
+ export declare function BuildMaxItems(_stack: Stack, _context: BuildContext, schema: Schema.XMaxItems, value: string): string;
5
+ export declare function CheckMaxItems(_stack: Stack, _context: CheckContext, schema: Schema.XMaxItems, value: unknown[]): boolean;
6
6
  export declare function ErrorMaxItems(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaxItems, value: unknown[]): boolean;
@@ -3,13 +3,13 @@ import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
3
3
  // ------------------------------------------------------------------
4
4
  // Build
5
5
  // ------------------------------------------------------------------
6
- export function BuildMaxItems(stack, context, schema, value) {
6
+ export function BuildMaxItems(_stack, _context, schema, value) {
7
7
  return E.IsLessEqualThan(E.Member(value, 'length'), E.Constant(schema.maxItems));
8
8
  }
9
9
  // ------------------------------------------------------------------
10
10
  // Check
11
11
  // ------------------------------------------------------------------
12
- export function CheckMaxItems(stack, context, schema, value) {
12
+ export function CheckMaxItems(_stack, _context, schema, value) {
13
13
  return G.IsLessEqualThan(value.length, schema.maxItems);
14
14
  }
15
15
  // ------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildMaxLength(stack: Stack, context: BuildContext, schema: Schema.XMaxLength, value: string): string;
5
- export declare function CheckMaxLength(stack: Stack, context: CheckContext, schema: Schema.XMaxLength, value: string): boolean;
4
+ export declare function BuildMaxLength(_stack: Stack, _context: BuildContext, schema: Schema.XMaxLength, value: string): string;
5
+ export declare function CheckMaxLength(_stack: Stack, _context: CheckContext, schema: Schema.XMaxLength, value: string): boolean;
6
6
  export declare function ErrorMaxLength(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaxLength, value: string): boolean;
@@ -3,13 +3,13 @@ import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
3
3
  // ------------------------------------------------------------------
4
4
  // Build
5
5
  // ------------------------------------------------------------------
6
- export function BuildMaxLength(stack, context, schema, value) {
6
+ export function BuildMaxLength(_stack, _context, schema, value) {
7
7
  return E.IsMaxLength(value, E.Constant(schema.maxLength));
8
8
  }
9
9
  // ------------------------------------------------------------------
10
10
  // Check
11
11
  // ------------------------------------------------------------------
12
- export function CheckMaxLength(stack, context, schema, value) {
12
+ export function CheckMaxLength(_stack, _context, schema, value) {
13
13
  return G.IsMaxLength(value, schema.maxLength);
14
14
  }
15
15
  // ------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildMaxProperties(stack: Stack, context: BuildContext, schema: Schema.XMaxProperties, value: string): string;
5
- export declare function CheckMaxProperties(stack: Stack, context: CheckContext, schema: Schema.XMaxProperties, value: Record<PropertyKey, unknown>): boolean;
4
+ export declare function BuildMaxProperties(_stack: Stack, _context: BuildContext, schema: Schema.XMaxProperties, value: string): string;
5
+ export declare function CheckMaxProperties(_stack: Stack, _context: CheckContext, schema: Schema.XMaxProperties, value: Record<PropertyKey, unknown>): boolean;
6
6
  export declare function ErrorMaxProperties(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaxProperties, value: Record<PropertyKey, unknown>): boolean;
@@ -3,13 +3,13 @@ import { EmitGuard as E, Guard as G } from '../../guard/index.mjs';
3
3
  // ------------------------------------------------------------------
4
4
  // Build
5
5
  // ------------------------------------------------------------------
6
- export function BuildMaxProperties(stack, context, schema, value) {
6
+ export function BuildMaxProperties(_stack, _context, schema, value) {
7
7
  return E.IsLessEqualThan(E.Member(E.Keys(value), 'length'), E.Constant(schema.maxProperties));
8
8
  }
9
9
  // ------------------------------------------------------------------
10
10
  // Check
11
11
  // ------------------------------------------------------------------
12
- export function CheckMaxProperties(stack, context, schema, value) {
12
+ export function CheckMaxProperties(_stack, _context, schema, value) {
13
13
  return G.IsLessEqualThan(G.Keys(value).length, schema.maxProperties);
14
14
  }
15
15
  // ------------------------------------------------------------------
@@ -1,6 +1,6 @@
1
1
  import * as Schema from '../types/index.mjs';
2
2
  import { Stack } from './_stack.mjs';
3
3
  import { BuildContext, CheckContext, ErrorContext } from './_context.mjs';
4
- export declare function BuildMaximum(stack: Stack, context: BuildContext, schema: Schema.XMaximum, value: string): string;
5
- export declare function CheckMaximum(stack: Stack, context: CheckContext, schema: Schema.XMaximum, value: number | bigint): boolean;
4
+ export declare function BuildMaximum(_stack: Stack, _context: BuildContext, schema: Schema.XMaximum, value: string): string;
5
+ export declare function CheckMaximum(_stack: Stack, _context: CheckContext, schema: Schema.XMaximum, value: number | bigint): boolean;
6
6
  export declare function ErrorMaximum(stack: Stack, context: ErrorContext, schemaPath: string, instancePath: string, schema: Schema.XMaximum, value: number | bigint): boolean;
@@ -3,13 +3,13 @@ import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
3
3
  // ------------------------------------------------------------------
4
4
  // Build
5
5
  // ------------------------------------------------------------------
6
- export function BuildMaximum(stack, context, schema, value) {
6
+ export function BuildMaximum(_stack, _context, schema, value) {
7
7
  return E.IsLessEqualThan(value, E.Constant(schema.maximum));
8
8
  }
9
9
  // ------------------------------------------------------------------
10
10
  // Check
11
11
  // ------------------------------------------------------------------
12
- export function CheckMaximum(stack, context, schema, value) {
12
+ export function CheckMaximum(_stack, _context, schema, value) {
13
13
  return G.IsLessEqualThan(value, schema.maximum);
14
14
  }
15
15
  // ------------------------------------------------------------------