assign-gingerly 0.0.61 → 0.0.62
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/README.md +2 -2
- package/handlers/join.js +1 -2
- package/handlers/join.ts +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4057,9 +4057,9 @@ assignFrom(oElement, {
|
|
|
4057
4057
|
assignFrom(oElement, {
|
|
4058
4058
|
'?.textContent =>': {
|
|
4059
4059
|
do: 'builtIns.join',
|
|
4060
|
-
separator: ' | ',
|
|
4061
4060
|
get: {
|
|
4062
|
-
value: ['?.firstName', '?.lastName']
|
|
4061
|
+
value: ['?.firstName', '?.lastName'],
|
|
4062
|
+
separator: ' | '
|
|
4063
4063
|
}
|
|
4064
4064
|
}
|
|
4065
4065
|
}, { from: vm });
|
package/handlers/join.js
CHANGED
|
@@ -66,8 +66,7 @@ export class JoinHandler {
|
|
|
66
66
|
this.config = config;
|
|
67
67
|
}
|
|
68
68
|
async assign(lhsTarget, resolvedParams) {
|
|
69
|
-
const { value } = resolvedParams;
|
|
70
|
-
const separator = this.config.separator ?? '';
|
|
69
|
+
const { value, separator = '' } = resolvedParams;
|
|
71
70
|
const items = Array.isArray(value) ? processValue(value) : [value];
|
|
72
71
|
return items.join(separator);
|
|
73
72
|
}
|
package/handlers/join.ts
CHANGED
|
@@ -71,8 +71,7 @@ export class JoinHandler implements AssignFromHandler {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
async assign(lhsTarget: any, resolvedParams: Record<string, any>): Promise<string> {
|
|
74
|
-
const { value } = resolvedParams;
|
|
75
|
-
const separator = this.config.separator ?? '';
|
|
74
|
+
const { value, separator = '' } = resolvedParams;
|
|
76
75
|
|
|
77
76
|
const items = Array.isArray(value) ? processValue(value) : [value];
|
|
78
77
|
return items.join(separator);
|
package/package.json
CHANGED