@openfn/language-common 2.0.1 → 2.0.2
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -685,12 +685,12 @@ function cursor(value, options2 = {}) {
|
|
|
685
685
|
if (date instanceof Date && date.toString !== "Invalid Date") {
|
|
686
686
|
state[cursorKey] = (format2 == null ? void 0 : format2(date)) ?? date.toISOString();
|
|
687
687
|
const formatted = format2 ? state[cursorKey] : import_date_fns2.default.format(date, "HH:MM d MMM yyyy (OOO)");
|
|
688
|
-
console.log(`Setting
|
|
688
|
+
console.log(`Setting ${cursorKey} "${cursor2}" to: ${formatted}`);
|
|
689
689
|
return state;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
state[cursorKey] = (format2 == null ? void 0 : format2(cursor2)) ?? cursor2;
|
|
693
|
-
console.log(
|
|
693
|
+
console.log(`Setting ${cursorKey} to:`, state[cursorKey]);
|
|
694
694
|
return state;
|
|
695
695
|
};
|
|
696
696
|
}
|
package/dist/index.js
CHANGED
|
@@ -625,12 +625,12 @@ function cursor(value, options2 = {}) {
|
|
|
625
625
|
if (date instanceof Date && date.toString !== "Invalid Date") {
|
|
626
626
|
state[cursorKey] = (format2 == null ? void 0 : format2(date)) ?? date.toISOString();
|
|
627
627
|
const formatted = format2 ? state[cursorKey] : dateFns.format(date, "HH:MM d MMM yyyy (OOO)");
|
|
628
|
-
console.log(`Setting
|
|
628
|
+
console.log(`Setting ${cursorKey} "${cursor2}" to: ${formatted}`);
|
|
629
629
|
return state;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
state[cursorKey] = (format2 == null ? void 0 : format2(cursor2)) ?? cursor2;
|
|
633
|
-
console.log(
|
|
633
|
+
console.log(`Setting ${cursorKey} to:`, state[cursorKey]);
|
|
634
634
|
return state;
|
|
635
635
|
};
|
|
636
636
|
}
|