(value)
| 96 | } |
| 97 | |
| 98 | function cloneContextPacket(value) { |
| 99 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |
| 100 | return null; |
| 101 | } |
| 102 | try { |
| 103 | return JSON.parse(JSON.stringify(value)); |
| 104 | } catch (e) { |
| 105 | return null; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | function normalizeFolderPath(value) { |
| 110 | let v = String(value || '').trim(); |