@trustme24/flext 1.5.1 → 1.6.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/dist/index.cjs +287 -287
- package/dist/index.d.ts +24 -3
- package/dist/index.js +20 -20
- package/dist/lib.d.ts +1 -0
- package/package.json +7 -7
package/dist/lib.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare function getMacroParam(val: string): MacroParam | null;
|
|
|
35
35
|
export declare function getMacroParams(val: string, doWarn?: boolean): MacroParam[];
|
|
36
36
|
export declare function getMacros(ast: AST.Program, doWarn?: boolean): Macro[];
|
|
37
37
|
export declare function getHtmlH1(ast: AST.Program, doWarn?: boolean): string[];
|
|
38
|
+
export declare function ensureString(val: any): string;
|
|
38
39
|
export declare function ensureDate(val: Date | string | number): Date;
|
|
39
40
|
export declare function ensureTitle(val: string | number): string;
|
|
40
41
|
export declare function filter(regex: RegExp, val: string | number): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trustme24/flext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "A Powerful Templating Engine",
|
|
5
5
|
"keywords": ["templates", "templating engine", "modular templates", "handlebars"],
|
|
6
6
|
"type": "module",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"build:types": "tsc && tsc-alias",
|
|
20
20
|
"build:css": "tailwindcss -i ./src/index.tail.css -o ./dist/index.css --minify",
|
|
21
21
|
"build-only": "bin/build.mjs && npm run build:types && npm run build:css",
|
|
22
|
-
"build": "
|
|
22
|
+
"build": "npm run build-only && vitest run",
|
|
23
23
|
"test:app": "npm run build && cd test/app && npm i && npm run test-app",
|
|
24
24
|
"test-only": "vitest run",
|
|
25
|
-
"test": "
|
|
25
|
+
"test": "npm run npm run build-only && npm run test-only",
|
|
26
26
|
"prepare": "npm run build"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"@babel/preset-typescript": "^7.28.5",
|
|
38
38
|
"@handlebars/parser": "^2.2.1",
|
|
39
39
|
"@tailwindcss/cli": "^4.1.17",
|
|
40
|
-
"@types/node": "^24.10.
|
|
40
|
+
"@types/node": "^24.10.1",
|
|
41
41
|
"esbuild": "^0.27.0",
|
|
42
42
|
"esbuild-plugin-import-glob": "^0.1.1",
|
|
43
43
|
"tailwindcss": "^4.1.17",
|
|
44
44
|
"tsc-alias": "^1.8.16",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
|
-
"vitest": "^4.0.
|
|
46
|
+
"vitest": "^4.0.12"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@unocss/preset-wind4": "^66.5.
|
|
49
|
+
"@unocss/preset-wind4": "^66.5.9",
|
|
50
50
|
"handlebars": "^4.7.8",
|
|
51
51
|
"luxon": "^3.7.2",
|
|
52
52
|
"striptags": "^3.2.0",
|
|
53
|
-
"unocss": "^66.5.
|
|
53
|
+
"unocss": "^66.5.9",
|
|
54
54
|
"written-number": "^0.11.1"
|
|
55
55
|
}
|
|
56
56
|
}
|