@trustme24/flext 1.3.2 → 1.3.4

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
@@ -14,6 +14,7 @@ export declare class HandlebarsCollector<T = any> extends Handlebars.Visitor {
14
14
  setAst(ast: AST.Program): this;
15
15
  collect(ast: AST.Program): T[];
16
16
  }
17
+ export declare function isNumber(val: any): boolean;
17
18
  export declare function isObject(val: any): boolean;
18
19
  export declare function has(obj: Obj, key: string): boolean;
19
20
  export declare function inarr(val: any, ...arr: any): boolean;
@@ -1,7 +1,9 @@
1
+ import { DateTime } from 'luxon';
1
2
  import { SafeString } from 'handlebars';
2
3
  export declare const DEFAULT_LANG = "en-US";
3
- export declare function op(state: any): Date | string | number;
4
+ export declare function op(state: any): DateTime | string | number;
4
5
  export declare function opWithColor(state: any): SafeString;
6
+ export declare function now(state: any): DateTime;
5
7
  export declare function seconds(state: any): SafeString;
6
8
  export declare function minutes(state: any): SafeString;
7
9
  export declare function hours(state: any): SafeString;
@@ -10,7 +12,6 @@ export declare function month(state: any): SafeString;
10
12
  export declare function monthText(state: any): SafeString;
11
13
  export declare function year(state: any): SafeString;
12
14
  export declare function text(state: any): SafeString;
13
- export declare function now(): Date;
14
15
  export declare function unix(state: any): number;
15
16
  export declare function iso(state: any): string;
16
17
  declare const _default: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustme24/flext",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "A Powerful Templating Engine",
5
5
  "keywords": ["templates", "templating engine", "modular templates", "handlebars"],
6
6
  "type": "module",
@@ -15,11 +15,11 @@
15
15
  "./index.css": "./dist/index.css"
16
16
  },
17
17
  "scripts": {
18
- "test-flext:app": "cd test/app && npm run test-app",
19
- "test-flext": "npm run test-flext:app",
20
18
  "build:types": "tsc && tsc-alias",
21
19
  "build:css": "tailwindcss -i ./src/index.tail.css -o ./dist/index.css --minify",
22
20
  "build": "bin/build.mjs && npm run build:types && npm run build:css",
21
+ "test-flext:app": "npm run build && cd test/app && npm i && npm run test-app",
22
+ "test-flext": "npm run test-flext:app",
23
23
  "prepare": "npm run build"
24
24
  },
25
25
  "files": [
@@ -44,6 +44,7 @@
44
44
  "dependencies": {
45
45
  "@unocss/preset-wind4": "^66.5.2",
46
46
  "handlebars": "^4.7.8",
47
+ "luxon": "^3.7.2",
47
48
  "unocss": "^66.5.2"
48
49
  }
49
50
  }