n8n-nodes-prestashop8 1.2.3 → 1.2.5
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.
|
@@ -84,8 +84,8 @@ exports.PRESTASHOP_RESOURCES = {
|
|
|
84
84
|
},
|
|
85
85
|
stock_availables: {
|
|
86
86
|
name: 'stock_availables',
|
|
87
|
-
displayName: 'Available
|
|
88
|
-
description: '
|
|
87
|
+
displayName: 'Stock Available',
|
|
88
|
+
description: 'Product stock management (stock_availables)',
|
|
89
89
|
supportsCreate: false,
|
|
90
90
|
supportsUpdate: true,
|
|
91
91
|
supportsDelete: false,
|
|
@@ -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
|
-
|
|
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 '<';
|
|
433
435
|
case '>': return '>';
|
package/package.json
CHANGED