@maxzima/wa-communicator 1.0.59 → 1.0.60
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.
|
@@ -4,8 +4,8 @@ export function prepareMetadata(obj) {
|
|
|
4
4
|
const result = [];
|
|
5
5
|
for (const key of registrationMetadataKeys) {
|
|
6
6
|
const value = (_a = obj[key]) === null || _a === void 0 ? void 0 : _a.trim();
|
|
7
|
-
if (
|
|
8
|
-
result.push({ key, value });
|
|
7
|
+
if (value) {
|
|
8
|
+
result.push({ key, value: encodeURIComponent(value) });
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
return result;
|
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@ export function prepareMetadata(obj: TRegistrationMetadata): TRegistrationReques
|
|
|
6
6
|
|
|
7
7
|
for (const key of registrationMetadataKeys) {
|
|
8
8
|
const value = obj[key]?.trim();
|
|
9
|
-
if (
|
|
10
|
-
result.push({ key, value });
|
|
9
|
+
if (value) {
|
|
10
|
+
result.push({ key, value: encodeURIComponent(value) });
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|