@vpmedia/simplify 1.49.0 → 1.51.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [1.51.0] - 2025-12-16
|
|
2
|
+
|
|
3
|
+
### 🐛 Bug Fixes
|
|
4
|
+
|
|
5
|
+
- Added missing fallback value to get url param
|
|
6
|
+
|
|
7
|
+
### ⚙️ Miscellaneous Tasks
|
|
8
|
+
|
|
9
|
+
- Release
|
|
10
|
+
- *(release)* V1.51.0
|
|
11
|
+
## [1.50.0] - 2025-12-16
|
|
12
|
+
|
|
13
|
+
### ⚙️ Miscellaneous Tasks
|
|
14
|
+
|
|
15
|
+
- Release
|
|
16
|
+
- Improve type checking
|
|
17
|
+
- *(release)* V1.50.0
|
|
1
18
|
## [1.49.0] - 2025-12-16
|
|
2
19
|
|
|
3
20
|
### ⚙️ Miscellaneous Tasks
|
package/package.json
CHANGED
package/src/util/capitalize.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Capitalize a string.
|
|
3
3
|
* @param {string | null | undefined} value - Ther input string.
|
|
4
|
-
* @returns {string | null
|
|
4
|
+
* @returns {string | null} TBD.
|
|
5
5
|
*/
|
|
6
6
|
export const capitalize = (value) => {
|
|
7
|
+
if (value === null || value === undefined) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
7
10
|
if (!value || value?.length === 0) {
|
|
8
11
|
return value;
|
|
9
12
|
}
|
package/src/util/getURLParam.js
CHANGED
|
@@ -12,7 +12,7 @@ const urlSearchParams = new URLSearchParams(window.location.search);
|
|
|
12
12
|
export const getURLParam = (key, defaultValue = null, isSanitize = true) => {
|
|
13
13
|
const paramValue = urlSearchParams.get(key);
|
|
14
14
|
if (paramValue === null || paramValue === undefined) {
|
|
15
|
-
return
|
|
15
|
+
return defaultValue;
|
|
16
16
|
}
|
|
17
17
|
if (isSanitize) {
|
|
18
18
|
return sanitizeURLParam(paramValue);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function capitalize(value: string | null | undefined): string | null
|
|
1
|
+
export function capitalize(value: string | null | undefined): string | null;
|
|
2
2
|
//# sourceMappingURL=capitalize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capitalize.d.ts","sourceRoot":"","sources":["../../src/util/capitalize.js"],"names":[],"mappings":"AAKO,kCAHI,MAAM,GAAG,IAAI,GAAG,SAAS,GACvB,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"capitalize.d.ts","sourceRoot":"","sources":["../../src/util/capitalize.js"],"names":[],"mappings":"AAKO,kCAHI,MAAM,GAAG,IAAI,GAAG,SAAS,GACvB,MAAM,GAAG,IAAI,CAWzB"}
|