@nhtio/validation 1.20251103.1 → 1.20251112.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nhtio/validation",
3
- "version": "1.20251103.1",
3
+ "version": "1.20251112.0",
4
4
  "description": "A powerful schema description language and data validator",
5
5
  "keywords": [],
6
6
  "author": "Jak Giveon <jak@nht.io>",
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Monkey Patch for Joi Errors to fix issue where the Template class is not resolved correctly when the Errors.template method is called.
3
+ */
4
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,11 +1,3 @@
1
- /**
2
- * Modern ES6 + TypeScript reimplementation of Joi's root factory.
3
- *
4
- * Based on: https://github.com/hapijs/joi/blob/master/lib/index.js
5
- *
6
- * This module recreates Joi's internal root factory to enable deeper
7
- * customization through schema type modifiers and shortcuts modifiers.
8
- */
9
1
  import type { Root } from 'joi';
10
2
  import type { Schema } from '../index';
11
3
  export type SchemaTypeDefinition = Schema;
@@ -16,6 +8,7 @@ export interface RootFactoryOptions {
16
8
  shortcutsModifiers?: ShortcutsMiddlewareFn[];
17
9
  }
18
10
  export declare class RootFactory {
11
+ static readonly $_cachedDescriptions: WeakMap<Schema, any>;
19
12
  static readonly types: {
20
13
  alternatives: any;
21
14
  any: any;