@nr1e/commons 0.4.2 → 0.4.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/business/card.d.mts +9 -0
- package/dist/business/card.d.mts.map +1 -0
- package/dist/business/card.mjs +22 -0
- package/dist/business/card.mjs.map +1 -0
- package/dist/business/card.test.d.mts +2 -0
- package/dist/business/card.test.d.mts.map +1 -0
- package/dist/business/card.test.mjs +17 -0
- package/dist/business/card.test.mjs.map +1 -0
- package/dist/business/index.d.mts +1 -0
- package/dist/business/index.d.mts.map +1 -1
- package/dist/business/index.mjs +1 -0
- package/dist/business/index.mjs.map +1 -1
- package/dist/lang/datetime.d.mts +18 -1
- package/dist/lang/datetime.d.mts.map +1 -1
- package/dist/lang/datetime.mjs +40 -2
- package/dist/lang/datetime.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Masks a card number showing the first 6 (BIN) and last 4 which is allowed by
|
|
3
|
+
* PCI. This function will never return the original string even if the card
|
|
4
|
+
* number is an invalid length.
|
|
5
|
+
*
|
|
6
|
+
* @param cardNumber - The card number to mask
|
|
7
|
+
*/
|
|
8
|
+
export declare function maskCardNumber(cardNumber: string): string;
|
|
9
|
+
//# sourceMappingURL=card.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.mts","sourceRoot":"","sources":["../../src/business/card.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,UAehD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Masks a card number showing the first 6 (BIN) and last 4 which is allowed by
|
|
3
|
+
* PCI. This function will never return the original string even if the card
|
|
4
|
+
* number is an invalid length.
|
|
5
|
+
*
|
|
6
|
+
* @param cardNumber - The card number to mask
|
|
7
|
+
*/
|
|
8
|
+
export function maskCardNumber(cardNumber) {
|
|
9
|
+
cardNumber = cardNumber.trim().replace(/\s+/g, '');
|
|
10
|
+
// If the card length is less than 8, we mask everything to be safe
|
|
11
|
+
if (cardNumber.length < 8) {
|
|
12
|
+
return ''.padEnd(cardNumber.length, '*');
|
|
13
|
+
}
|
|
14
|
+
// If the card length is less than 12 we return everything masked but the last 4
|
|
15
|
+
if (cardNumber.length < 12) {
|
|
16
|
+
return cardNumber.slice(-4).padStart(cardNumber.length, '*');
|
|
17
|
+
}
|
|
18
|
+
return (cardNumber.slice(0, 6) +
|
|
19
|
+
''.padEnd(cardNumber.length - 10, '*') +
|
|
20
|
+
cardNumber.slice(-4));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.mjs","sourceRoot":"","sources":["../../src/business/card.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,UAAkB;IAC/C,UAAU,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACnD,mEAAmE;IACnE,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;IACD,gFAAgF;IAChF,IAAI,UAAU,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QAC3B,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,CACL,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QACtB,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,EAAE,EAAE,GAAG,CAAC;QACtC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACrB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.test.d.mts","sourceRoot":"","sources":["../../src/business/card.test.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { test, expect } from 'vitest';
|
|
2
|
+
import { maskCardNumber } from './card.mjs';
|
|
3
|
+
test('Test maskCardNumber', () => {
|
|
4
|
+
let masked = maskCardNumber('4111111111111111');
|
|
5
|
+
expect(masked).toEqual('411111******1111');
|
|
6
|
+
masked = maskCardNumber('4111 1111 1111 1111');
|
|
7
|
+
expect(masked).toEqual('411111******1111');
|
|
8
|
+
masked = maskCardNumber('3782 822463 10005');
|
|
9
|
+
expect(masked).toEqual('378282*****0005');
|
|
10
|
+
masked = maskCardNumber('1234567');
|
|
11
|
+
expect(masked).toEqual('*******');
|
|
12
|
+
masked = maskCardNumber('12345678');
|
|
13
|
+
expect(masked).toEqual('****5678');
|
|
14
|
+
masked = maskCardNumber('1234567890');
|
|
15
|
+
expect(masked).toEqual('******7890');
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=card.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.test.mjs","sourceRoot":"","sources":["../../src/business/card.test.mts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAE1C,IAAI,CAAC,qBAAqB,EAAE,GAAG,EAAE;IAC/B,IAAI,MAAM,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAChD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC3C,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,CAAC;IAC/C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC3C,MAAM,GAAG,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAC7C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC1C,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IACnC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC,MAAM,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACnC,MAAM,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/business/index.mts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/business/index.mts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC"}
|
package/dist/business/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/business/index.mts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/business/index.mts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC"}
|
package/dist/lang/datetime.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function isoDateToFormattedUtc(isoDate: string): string;
|
|
2
|
-
export declare function formatDate(date: Date): string;
|
|
2
|
+
export declare function formatDate(date: Date, timeZone?: string, locale?: string): string;
|
|
3
3
|
/**
|
|
4
4
|
* Formats a date and time to a human-readable string with time zone.
|
|
5
5
|
* @param date - Date string or Date object to format.
|
|
@@ -7,6 +7,14 @@ export declare function formatDate(date: Date): string;
|
|
|
7
7
|
* @returns Formatted date string (e.g., "June 14, 2023 12:00 PM MST").
|
|
8
8
|
*/
|
|
9
9
|
export declare function formatDateTimeReadable(date: string | Date, locale?: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Formats a date and time to a human-readable string with time zone.
|
|
12
|
+
* @param date - Date string or Date object to format.
|
|
13
|
+
* @param timeZone - The time zone to use (e.g., 'America/Los_Angeles') - defaults to the local time zone.
|
|
14
|
+
* @param locale - The locale to use (e.g., 'en-US', 'fr-FR') - defaults to 'en-US'
|
|
15
|
+
* @returns Formatted date string (e.g., "June 14, 2023 12:00 PM MST").
|
|
16
|
+
*/
|
|
17
|
+
export declare function formatTimeZoneDateTimeReadable(date: string | Date, timeZone?: string, locale?: string): string;
|
|
10
18
|
/**
|
|
11
19
|
* Formats a date to "Jun 30, 2025" style using the local time zone.
|
|
12
20
|
* Accepts a Date object or a string parseable by Date.
|
|
@@ -15,6 +23,15 @@ export declare function formatDateTimeReadable(date: string | Date, locale?: str
|
|
|
15
23
|
* @returns Formatted date string like "Jun 30, 2025".
|
|
16
24
|
*/
|
|
17
25
|
export declare function formatDateShort(date: string | Date, locale?: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Formats a date to "Jun 30, 2025" style using the local time zone.
|
|
28
|
+
* Accepts a Date object or a string parseable by Date.
|
|
29
|
+
* @param date - Date string or Date object to format.
|
|
30
|
+
* @param timeZone - The time zone to use (e.g., 'America/Los_Angeles') - defaults to the local time zone.
|
|
31
|
+
* @param locale - The locale to use (e.g., 'en-US', 'fr-FR') - defaults to 'en-US'
|
|
32
|
+
* @returns Formatted date string like "Jun 30, 2025".
|
|
33
|
+
*/
|
|
34
|
+
export declare function formatTimeZoneDateShort(date: string | Date, timeZone?: string, locale?: string): string;
|
|
18
35
|
/**
|
|
19
36
|
* Calculates the number of days between a given date and the current date.
|
|
20
37
|
* @param date - The date to calculate from.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datetime.d.mts","sourceRoot":"","sources":["../../src/lang/datetime.mts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA2B7D;AAED,wBAAgB,UAAU,
|
|
1
|
+
{"version":3,"file":"datetime.d.mts","sourceRoot":"","sources":["../../src/lang/datetime.mts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA2B7D;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,EACV,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAQR;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAWR;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAYR;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAO5E;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAQR;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAKxD"}
|
package/dist/lang/datetime.mjs
CHANGED
|
@@ -24,13 +24,14 @@ export function isoDateToFormattedUtc(isoDate) {
|
|
|
24
24
|
const minutesStr = minutes.toString().padStart(2, '0');
|
|
25
25
|
return `${month} ${day}, ${year} ${hours}:${minutesStr} ${ampm} UTC`;
|
|
26
26
|
}
|
|
27
|
-
export function formatDate(date) {
|
|
27
|
+
export function formatDate(date, timeZone, locale) {
|
|
28
28
|
const options = {
|
|
29
|
+
timeZone,
|
|
29
30
|
month: 'short', // “Jan”, “Feb”, etc.
|
|
30
31
|
day: 'numeric', // “1”, “2”, etc.
|
|
31
32
|
year: 'numeric', // “2020”
|
|
32
33
|
};
|
|
33
|
-
return new Intl.DateTimeFormat('en-US', options).format(date);
|
|
34
|
+
return new Intl.DateTimeFormat(locale ?? 'en-US', options).format(date);
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
* Formats a date and time to a human-readable string with time zone.
|
|
@@ -50,6 +51,26 @@ export function formatDateTimeReadable(date, locale) {
|
|
|
50
51
|
timeZoneName: 'short',
|
|
51
52
|
}).format(dateObj);
|
|
52
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Formats a date and time to a human-readable string with time zone.
|
|
56
|
+
* @param date - Date string or Date object to format.
|
|
57
|
+
* @param timeZone - The time zone to use (e.g., 'America/Los_Angeles') - defaults to the local time zone.
|
|
58
|
+
* @param locale - The locale to use (e.g., 'en-US', 'fr-FR') - defaults to 'en-US'
|
|
59
|
+
* @returns Formatted date string (e.g., "June 14, 2023 12:00 PM MST").
|
|
60
|
+
*/
|
|
61
|
+
export function formatTimeZoneDateTimeReadable(date, timeZone, locale) {
|
|
62
|
+
const dateObj = typeof date === 'string' ? new Date(date) : date;
|
|
63
|
+
return new Intl.DateTimeFormat(locale ?? 'en-US', {
|
|
64
|
+
timeZone,
|
|
65
|
+
year: 'numeric',
|
|
66
|
+
month: 'long',
|
|
67
|
+
day: 'numeric',
|
|
68
|
+
hour: 'numeric',
|
|
69
|
+
minute: '2-digit',
|
|
70
|
+
hour12: true,
|
|
71
|
+
timeZoneName: 'short',
|
|
72
|
+
}).format(dateObj);
|
|
73
|
+
}
|
|
53
74
|
/**
|
|
54
75
|
* Formats a date to "Jun 30, 2025" style using the local time zone.
|
|
55
76
|
* Accepts a Date object or a string parseable by Date.
|
|
@@ -65,6 +86,23 @@ export function formatDateShort(date, locale) {
|
|
|
65
86
|
day: 'numeric',
|
|
66
87
|
}).format(dateObj);
|
|
67
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Formats a date to "Jun 30, 2025" style using the local time zone.
|
|
91
|
+
* Accepts a Date object or a string parseable by Date.
|
|
92
|
+
* @param date - Date string or Date object to format.
|
|
93
|
+
* @param timeZone - The time zone to use (e.g., 'America/Los_Angeles') - defaults to the local time zone.
|
|
94
|
+
* @param locale - The locale to use (e.g., 'en-US', 'fr-FR') - defaults to 'en-US'
|
|
95
|
+
* @returns Formatted date string like "Jun 30, 2025".
|
|
96
|
+
*/
|
|
97
|
+
export function formatTimeZoneDateShort(date, timeZone, locale) {
|
|
98
|
+
const dateObj = typeof date === 'string' ? new Date(date) : date;
|
|
99
|
+
return new Intl.DateTimeFormat(locale ?? 'en-US', {
|
|
100
|
+
timeZone,
|
|
101
|
+
year: 'numeric',
|
|
102
|
+
month: 'short',
|
|
103
|
+
day: 'numeric',
|
|
104
|
+
}).format(dateObj);
|
|
105
|
+
}
|
|
68
106
|
/**
|
|
69
107
|
* Calculates the number of days between a given date and the current date.
|
|
70
108
|
* @param date - The date to calculate from.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datetime.mjs","sourceRoot":"","sources":["../../src/lang/datetime.mts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,UAAU,GAAG;QACjB,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;KACN,CAAC;IAC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,OAAO,EAAE;QAChD,QAAQ;QACR,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,OAAO;QACd,GAAG,EAAE,SAAS;KACf,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,IAAmB;IAC9C,MAAM,OAAO,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IACnD,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nr1e/commons",
|
|
3
3
|
"description": "Common utilities for TypeScript projects",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "NR1E, Inc.",
|
|
7
7
|
"publishConfig": {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.39.
|
|
19
|
+
"@eslint/js": "^9.39.3",
|
|
20
20
|
"@types/node": "^24.10.13",
|
|
21
|
-
"eslint": "9.39.
|
|
21
|
+
"eslint": "9.39.3",
|
|
22
22
|
"prettier": "3.8.1",
|
|
23
23
|
"typescript": "5.9.3",
|
|
24
|
-
"typescript-eslint": "8.56.
|
|
24
|
+
"typescript-eslint": "8.56.1",
|
|
25
25
|
"vitest": "4.0.18"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|