@trustme24/flext 1.4.4 → 1.5.1

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/dist/lib.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare function unique<T = any>(arr: T[]): T[];
26
26
  export declare function getAst(val: string): AST.Program;
27
27
  export declare function getTemplate(val: string | AST.Program): TemplateDelegate;
28
28
  export declare function getHtml(template: TemplateDelegate, data?: Obj, helpers?: Obj): string;
29
- export declare function getCss(template: TemplateDelegate, data?: Obj, helpers?: Obj): Promise<string>;
29
+ export declare function getCss(template: TemplateDelegate, data?: Obj, options?: Obj): Promise<string>;
30
30
  export declare function getPaths(ast: AST.Program): string[];
31
31
  export declare function pathToDataModelNode(path: string, depth?: number): DataModelNode;
32
32
  export declare function pathToDataModel(path: string, depth?: number): DataModel;
@@ -2,4 +2,5 @@ export { default as cond } from './cond';
2
2
  export { default as date } from './date';
3
3
  export { default as match } from './match';
4
4
  export { default as math } from './math';
5
+ export { default as number } from './number';
5
6
  export { default as put } from './put';
@@ -0,0 +1,8 @@
1
+ import { SafeString } from 'handlebars';
2
+ export declare const DEFAULT_LANG = "en";
3
+ export declare function op(state: any): number | string | boolean;
4
+ export declare function opWithColor(state: any): SafeString;
5
+ export declare function text(state: any): SafeString;
6
+ export declare function check(state: any): boolean;
7
+ declare const _default: any;
8
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustme24/flext",
3
- "version": "1.4.4",
3
+ "version": "1.5.1",
4
4
  "description": "A Powerful Templating Engine",
5
5
  "keywords": ["templates", "templating engine", "modular templates", "handlebars"],
6
6
  "type": "module",
@@ -36,20 +36,21 @@
36
36
  "@babel/preset-env": "^7.28.5",
37
37
  "@babel/preset-typescript": "^7.28.5",
38
38
  "@handlebars/parser": "^2.2.1",
39
- "@tailwindcss/cli": "^4.1.16",
40
- "@types/node": "^24.9.1",
41
- "esbuild": "^0.25.11",
39
+ "@tailwindcss/cli": "^4.1.17",
40
+ "@types/node": "^24.10.0",
41
+ "esbuild": "^0.27.0",
42
42
  "esbuild-plugin-import-glob": "^0.1.1",
43
- "tailwindcss": "^4.1.16",
43
+ "tailwindcss": "^4.1.17",
44
44
  "tsc-alias": "^1.8.16",
45
45
  "typescript": "^5.9.3",
46
- "vitest": "^4.0.4"
46
+ "vitest": "^4.0.8"
47
47
  },
48
48
  "dependencies": {
49
- "@unocss/preset-wind4": "^66.5.4",
49
+ "@unocss/preset-wind4": "^66.5.5",
50
50
  "handlebars": "^4.7.8",
51
51
  "luxon": "^3.7.2",
52
52
  "striptags": "^3.2.0",
53
- "unocss": "^66.5.4"
53
+ "unocss": "^66.5.5",
54
+ "written-number": "^0.11.1"
54
55
  }
55
56
  }