alex-c-line 2.12.3 → 2.12.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/birthdays-CWQxUfj-.js +32 -0
- package/dist/birthdays-C_y68wAl.cjs +32 -0
- package/dist/index.cjs +2 -31
- package/dist/index.js +2 -31
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { normaliseIndents } from "@alextheman/utility";
|
|
2
|
+
//#region src/cli/notifications/helpers/birthdays.ts
|
|
3
|
+
const birthdays = {
|
|
4
|
+
alex: {
|
|
5
|
+
date: Temporal.PlainDate.from({
|
|
6
|
+
day: 16,
|
|
7
|
+
month: 7,
|
|
8
|
+
year: 2003
|
|
9
|
+
}),
|
|
10
|
+
getMessage: (age) => {
|
|
11
|
+
return normaliseIndents`
|
|
12
|
+
Happy birthday to AlexMan123456, my creator! 🎉
|
|
13
|
+
He has turned ${age} years old today!
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"alex-c-line": {
|
|
18
|
+
date: Temporal.PlainDate.from({
|
|
19
|
+
day: 20,
|
|
20
|
+
month: 7,
|
|
21
|
+
year: 2025
|
|
22
|
+
}),
|
|
23
|
+
getMessage: (age) => {
|
|
24
|
+
return normaliseIndents`
|
|
25
|
+
Happy birthday to me, alex-c-line! 🎉
|
|
26
|
+
I have turned ${age} years old today!
|
|
27
|
+
`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { birthdays as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
let _alextheman_utility = require("@alextheman/utility");
|
|
2
|
+
//#region src/cli/notifications/helpers/birthdays.ts
|
|
3
|
+
const birthdays = {
|
|
4
|
+
alex: {
|
|
5
|
+
date: Temporal.PlainDate.from({
|
|
6
|
+
day: 16,
|
|
7
|
+
month: 7,
|
|
8
|
+
year: 2003
|
|
9
|
+
}),
|
|
10
|
+
getMessage: (age) => {
|
|
11
|
+
return _alextheman_utility.normaliseIndents`
|
|
12
|
+
Happy birthday to AlexMan123456, my creator! 🎉
|
|
13
|
+
He has turned ${age} years old today!
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"alex-c-line": {
|
|
18
|
+
date: Temporal.PlainDate.from({
|
|
19
|
+
day: 20,
|
|
20
|
+
month: 7,
|
|
21
|
+
year: 2025
|
|
22
|
+
}),
|
|
23
|
+
getMessage: (age) => {
|
|
24
|
+
return _alextheman_utility.normaliseIndents`
|
|
25
|
+
Happy birthday to me, alex-c-line! 🎉
|
|
26
|
+
I have turned ${age} years old today!
|
|
27
|
+
`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.default = birthdays;
|
package/dist/index.cjs
CHANGED
|
@@ -1487,7 +1487,7 @@ function template(program) {
|
|
|
1487
1487
|
//#endregion
|
|
1488
1488
|
//#region package.json
|
|
1489
1489
|
var name = "alex-c-line";
|
|
1490
|
-
var version$1 = "2.12.
|
|
1490
|
+
var version$1 = "2.12.4";
|
|
1491
1491
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1492
1492
|
//#endregion
|
|
1493
1493
|
//#region src/cli/notifications/updates/checkUpdate.ts
|
|
@@ -1752,40 +1752,11 @@ async function sendBirthdayNotification(message) {
|
|
|
1752
1752
|
console.info(messageWithArtwork);
|
|
1753
1753
|
}
|
|
1754
1754
|
//#endregion
|
|
1755
|
-
//#region src/cli/notifications/helpers/birthdays.ts
|
|
1756
|
-
const birthdays = {
|
|
1757
|
-
alex: {
|
|
1758
|
-
date: Temporal.PlainDate.from({
|
|
1759
|
-
day: 16,
|
|
1760
|
-
month: 7,
|
|
1761
|
-
year: 2003
|
|
1762
|
-
}),
|
|
1763
|
-
getMessage: (age) => {
|
|
1764
|
-
return _alextheman_utility.normaliseIndents`
|
|
1765
|
-
Happy birthday to AlexMan123456, my creator! 🎉
|
|
1766
|
-
He has turned ${age} years old today!
|
|
1767
|
-
`;
|
|
1768
|
-
}
|
|
1769
|
-
},
|
|
1770
|
-
"alex-c-line": {
|
|
1771
|
-
date: Temporal.PlainDate.from({
|
|
1772
|
-
day: 20,
|
|
1773
|
-
month: 7,
|
|
1774
|
-
year: 2025
|
|
1775
|
-
}),
|
|
1776
|
-
getMessage: (age) => {
|
|
1777
|
-
return _alextheman_utility.normaliseIndents`
|
|
1778
|
-
Happy birthday to me, alex-c-line! 🎉
|
|
1779
|
-
I have turned ${age} years old today!
|
|
1780
|
-
`;
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
};
|
|
1784
|
-
//#endregion
|
|
1785
1755
|
//#region src/cli/notifications/birthday/maybeSendBirthdayNotification.ts
|
|
1786
1756
|
async function maybeSendBirthdayNotification() {
|
|
1787
1757
|
try {
|
|
1788
1758
|
if (typeof Temporal === "undefined") return;
|
|
1759
|
+
const birthdays = (await Promise.resolve().then(() => require("./birthdays-C_y68wAl.cjs"))).default;
|
|
1789
1760
|
const currentDate = Temporal.Now.plainDateISO();
|
|
1790
1761
|
const cacheData = await loadAlexCLineGlobalCache();
|
|
1791
1762
|
for (const [birthdayId, birthdayData] of Object.entries(birthdays)) {
|
package/dist/index.js
CHANGED
|
@@ -1456,7 +1456,7 @@ function template(program) {
|
|
|
1456
1456
|
//#endregion
|
|
1457
1457
|
//#region package.json
|
|
1458
1458
|
var name = "alex-c-line";
|
|
1459
|
-
var version$1 = "2.12.
|
|
1459
|
+
var version$1 = "2.12.4";
|
|
1460
1460
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1461
1461
|
//#endregion
|
|
1462
1462
|
//#region src/cli/notifications/updates/checkUpdate.ts
|
|
@@ -1721,40 +1721,11 @@ async function sendBirthdayNotification(message) {
|
|
|
1721
1721
|
console.info(messageWithArtwork);
|
|
1722
1722
|
}
|
|
1723
1723
|
//#endregion
|
|
1724
|
-
//#region src/cli/notifications/helpers/birthdays.ts
|
|
1725
|
-
const birthdays = {
|
|
1726
|
-
alex: {
|
|
1727
|
-
date: Temporal.PlainDate.from({
|
|
1728
|
-
day: 16,
|
|
1729
|
-
month: 7,
|
|
1730
|
-
year: 2003
|
|
1731
|
-
}),
|
|
1732
|
-
getMessage: (age) => {
|
|
1733
|
-
return normaliseIndents`
|
|
1734
|
-
Happy birthday to AlexMan123456, my creator! 🎉
|
|
1735
|
-
He has turned ${age} years old today!
|
|
1736
|
-
`;
|
|
1737
|
-
}
|
|
1738
|
-
},
|
|
1739
|
-
"alex-c-line": {
|
|
1740
|
-
date: Temporal.PlainDate.from({
|
|
1741
|
-
day: 20,
|
|
1742
|
-
month: 7,
|
|
1743
|
-
year: 2025
|
|
1744
|
-
}),
|
|
1745
|
-
getMessage: (age) => {
|
|
1746
|
-
return normaliseIndents`
|
|
1747
|
-
Happy birthday to me, alex-c-line! 🎉
|
|
1748
|
-
I have turned ${age} years old today!
|
|
1749
|
-
`;
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
};
|
|
1753
|
-
//#endregion
|
|
1754
1724
|
//#region src/cli/notifications/birthday/maybeSendBirthdayNotification.ts
|
|
1755
1725
|
async function maybeSendBirthdayNotification() {
|
|
1756
1726
|
try {
|
|
1757
1727
|
if (typeof Temporal === "undefined") return;
|
|
1728
|
+
const birthdays = (await import("./birthdays-CWQxUfj-.js")).default;
|
|
1758
1729
|
const currentDate = Temporal.Now.plainDateISO();
|
|
1759
1730
|
const cacheData = await loadAlexCLineGlobalCache();
|
|
1760
1731
|
for (const [birthdayId, birthdayData] of Object.entries(birthdays)) {
|