@trustme24/flext 1.8.0 → 1.9.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/README.md CHANGED
@@ -2,10 +2,12 @@
2
2
 
3
3
  [![Static Badge](https://img.shields.io/badge/GitHub-Star%20%281%29-yellow?logo=github)](https://github.com/TrustMe-kz/flext)
4
4
  [![Static Badge](https://img.shields.io/badge/NPM-Download%20%28610%29-blue)](https://www.npmjs.com/package/@trustme24/flext)
5
+ [![Static Badge](https://img.shields.io/badge/CodeSandbox-Preview%20%2841%29-black)](https://codesandbox.io/p/devbox/trustme24-flext-f5x2hy)
5
6
 
6
7
  **Flext** is a lightweight extension over [Handlebars](https://handlebarsjs.com/). It introduces a small DSL for handling macros and modules to help create dynamic templates. The library is compiled to both ESM and CommonJS bundles and can be embedded in other projects such as [Vue components](https://www.npmjs.com/package/vue-flext).
7
8
 
8
- [Documentation: Available at TrustMe Wiki](https://trustmekz.atlassian.net/wiki/external/MTUwYzM5NjUzNDE4NDViMGJlMTliOWEzNzM1Y2RiZWE).
9
+ - [Demo: Available at CodeSandbox](https://codesandbox.io/p/devbox/trustme24-flext-f5x2hy)
10
+ - [Documentation: Available at TrustMe Wiki](https://trustmekz.atlassian.net/wiki/external/MTUwYzM5NjUzNDE4NDViMGJlMTliOWEzNzM1Y2RiZWE).
9
11
 
10
12
  [Flext is maintained by TrustMe](https://trustme24.com/).
11
13
 
package/dist/errors.d.ts CHANGED
@@ -2,14 +2,15 @@ export declare class BaseThrowable extends Error {
2
2
  name: string;
3
3
  constructor(message: string, stack?: string | null);
4
4
  }
5
- export declare class BaseError extends BaseThrowable {
5
+ export declare class BaseWarning extends BaseThrowable {
6
6
  name: string;
7
7
  }
8
- export declare class BaseWarning extends BaseThrowable {
8
+ export declare class BaseError extends BaseThrowable {
9
9
  name: string;
10
10
  }
11
11
  export declare class PotentialLoopError extends BaseError {
12
12
  name: string;
13
+ constructor(message?: string, stack?: string | null);
13
14
  }
14
15
  export declare class TemplateError extends BaseError {
15
16
  name: string;
@@ -17,3 +18,8 @@ export declare class TemplateError extends BaseError {
17
18
  export declare class TemplateSyntaxError extends TemplateError {
18
19
  name: string;
19
20
  }
21
+ export declare class TemplateDataValidationError extends TemplateError {
22
+ name: string;
23
+ fieldName: string;
24
+ constructor(message?: string, fieldName?: string | null);
25
+ }