@adobe/spacecat-shared-tokowaka-client 1.4.3 → 1.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-tokowaka-client-v1.4.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-tokowaka-client-v1.4.3...@adobe/spacecat-shared-tokowaka-client-v1.4.4) (2026-01-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* allow replaceWith and appendChild in tokowaka generic patch ([#1245](https://github.com/adobe/spacecat-shared/issues/1245)) ([dcb1beb](https://github.com/adobe/spacecat-shared/commit/dcb1beb8e9b7b176406cfebbc5ae6a53ea0f17f4))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-tokowaka-client-v1.4.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-tokowaka-client-v1.4.2...@adobe/spacecat-shared-tokowaka-client-v1.4.3) (2025-12-12)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@ export default class GenericMapper extends BaseOpportunityMapper {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// Validate action value
|
|
107
|
-
const validOperations = ['insertBefore', 'insertAfter', 'replace'];
|
|
107
|
+
const validOperations = ['insertBefore', 'insertAfter', 'replace', 'replaceWith', 'appendChild'];
|
|
108
108
|
if (!validOperations.includes(data.transformRules.action)) {
|
|
109
109
|
return {
|
|
110
110
|
eligible: false,
|
|
@@ -248,7 +248,7 @@ describe('GenericMapper', () => {
|
|
|
248
248
|
|
|
249
249
|
expect(result).to.deep.equal({
|
|
250
250
|
eligible: false,
|
|
251
|
-
reason: 'transformRules.action must be one of: insertBefore, insertAfter, replace. Got: invalidOperation',
|
|
251
|
+
reason: 'transformRules.action must be one of: insertBefore, insertAfter, replace, replaceWith, appendChild. Got: invalidOperation',
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
254
|
|