n8n-nodes-prestashop8 1.2.3 → 1.2.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.
@@ -41,7 +41,7 @@ export declare function buildCreateXml(resource: string, fields: Array<{
41
41
  /**
42
42
  * Builds PrestaShop XML for Update operations using key-value pairs
43
43
  */
44
- export declare function buildUpdateXml(resource: string, id: string, fields: Array<{
44
+ export declare function buildUpdateXml(resource: string, id: string | number, fields: Array<{
45
45
  name: string;
46
46
  value: string;
47
47
  }>): string;
@@ -427,7 +427,9 @@ exports.buildUrlWithFilters = buildUrlWithFilters;
427
427
  * Escapes XML special characters
428
428
  */
429
429
  function escapeXml(unsafe) {
430
- return unsafe.replace(/[<>&'"]/g, function (c) {
430
+ // Convert to string if not already
431
+ const str = unsafe !== null && unsafe !== undefined ? String(unsafe) : '';
432
+ return str.replace(/[<>&'"]/g, function (c) {
431
433
  switch (c) {
432
434
  case '<': return '&lt;';
433
435
  case '>': return '&gt;';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-prestashop8",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Nœud n8n personnalisé pour PrestaShop 8 avec support CRUD complet et conversion XML/JSON automatique",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",