@budibase/string-templates 3.4.24 → 3.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/bundle.cjs +2 -2
- package/dist/bundle.mjs +2 -2
- package/dist/helpers/date.d.ts +4 -1
- package/dist/helpers/external.d.ts +3 -1
- package/dist/index.d.ts +10 -0
- package/package.json +2 -2
package/dist/helpers/date.d.ts
CHANGED
@@ -1,2 +1,5 @@
|
|
1
|
+
import { UnitType } from "dayjs";
|
1
2
|
export declare const date: (str: any, pattern: any, options: any) => string;
|
2
|
-
export declare const duration: (str: any, pattern: any, format
|
3
|
+
export declare const duration: (str: any, pattern: any, format?: any) => string;
|
4
|
+
export declare const difference: (from: string, to: string, units?: UnitType) => number;
|
5
|
+
export declare const durationFromNow: (from: string) => string;
|
@@ -2,7 +2,9 @@ import Handlebars from "handlebars";
|
|
2
2
|
export declare const externalCollections: string[];
|
3
3
|
export declare const addedHelpers: {
|
4
4
|
date: (str: any, pattern: any, options: any) => string;
|
5
|
-
duration: (str: any, pattern: any, format
|
5
|
+
duration: (str: any, pattern: any, format?: any) => string;
|
6
|
+
difference: (from: string, to: string, units?: import("dayjs").UnitType) => number;
|
7
|
+
durationFromNow: (from: string) => string;
|
6
8
|
};
|
7
9
|
export declare function registerAll(handlebars: typeof Handlebars): void;
|
8
10
|
export declare function unregisterAll(handlebars: typeof Handlebars): void;
|
package/dist/index.d.ts
CHANGED
@@ -906,6 +906,16 @@ export declare function getManifest(): {
|
|
906
906
|
example: string;
|
907
907
|
description: string;
|
908
908
|
};
|
909
|
+
difference: {
|
910
|
+
args: string[];
|
911
|
+
example: string;
|
912
|
+
description: string;
|
913
|
+
};
|
914
|
+
durationFromNow: {
|
915
|
+
args: string[];
|
916
|
+
example: string;
|
917
|
+
description: string;
|
918
|
+
};
|
909
919
|
};
|
910
920
|
};
|
911
921
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@budibase/string-templates",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.5.1",
|
4
4
|
"description": "Handlebars wrapper for Budibase templating.",
|
5
5
|
"main": "dist/bundle.cjs",
|
6
6
|
"module": "dist/bundle.mjs",
|
@@ -43,5 +43,5 @@
|
|
43
43
|
"ts-jest": "29.1.1",
|
44
44
|
"typescript": "5.7.2"
|
45
45
|
},
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "e64de415ddc908b22282579f37fcead199ab1b78"
|
47
47
|
}
|