n8n-nodes-onedrive-business 1.1.8 → 1.1.9
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/dist/utils/helpers.js +3 -2
- package/package.json +1 -1
package/dist/utils/helpers.js
CHANGED
|
@@ -74,10 +74,11 @@ function isValidItemId(itemId) {
|
|
|
74
74
|
// Graph item IDs are base64-encoded strings but can vary.
|
|
75
75
|
// Use a heuristic: if it contains slash or colon, it's definitely a path.
|
|
76
76
|
// If it's a long string without path separators, treat as ID.
|
|
77
|
-
if (itemId
|
|
77
|
+
if (!itemId || typeof itemId !== 'string') {
|
|
78
78
|
return false;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
// Reverting to strict Regex from v1.1.5 to ensure stability
|
|
81
|
+
return /^[A-Za-z0-9!_\-=]+$/.test(itemId);
|
|
81
82
|
}
|
|
82
83
|
exports.isValidItemId = isValidItemId;
|
|
83
84
|
/**
|