@truto/truto-jsonata 1.0.46 → 1.0.47
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/cjs/index.cjs
CHANGED
|
@@ -50684,17 +50684,17 @@ var digest = async (text, algorithm = "SHA-256", stringType = "hex") => {
|
|
|
50684
50684
|
var digest_default = digest;
|
|
50685
50685
|
|
|
50686
50686
|
// src/functions/dtFromFormat.ts
|
|
50687
|
-
function dtFromFormat(date, format) {
|
|
50687
|
+
function dtFromFormat(date, format, options3) {
|
|
50688
50688
|
if (format === "RFC2822") {
|
|
50689
|
-
return DateTime.fromRFC2822(date);
|
|
50689
|
+
return DateTime.fromRFC2822(date, options3);
|
|
50690
50690
|
}
|
|
50691
50691
|
if (format === "ISO") {
|
|
50692
|
-
return DateTime.fromISO(date);
|
|
50692
|
+
return DateTime.fromISO(date, options3);
|
|
50693
50693
|
}
|
|
50694
50694
|
if (format === "fromSeconds") {
|
|
50695
|
-
return DateTime.fromSeconds(parseInt(date));
|
|
50695
|
+
return DateTime.fromSeconds(parseInt(date), options3);
|
|
50696
50696
|
}
|
|
50697
|
-
return DateTime.fromFormat(date, format);
|
|
50697
|
+
return DateTime.fromFormat(date, format, options3);
|
|
50698
50698
|
}
|
|
50699
50699
|
var dtFromFormat_default = dtFromFormat;
|
|
50700
50700
|
|
|
@@ -67989,4 +67989,4 @@ function trutoJsonata(expression) {
|
|
|
67989
67989
|
return registerJsonataExtensions(import_jsonata.default(expression));
|
|
67990
67990
|
}
|
|
67991
67991
|
|
|
67992
|
-
//# debugId=
|
|
67992
|
+
//# debugId=2C72E83EE5900DAB64756E2164756E21
|