| 154 | } |
| 155 | exports.hasUndefined = hasUndefined; |
| 156 | function patchErrorMessageFormatter(message, args) { |
| 157 | var messageParts = [message]; |
| 158 | for (var key in args) { |
| 159 | var value = typeof args[key] === 'object' ? JSON.stringify(args[key], null, 2) : args[key]; // pretty print |
| 160 | if (typeof value !== 'undefined') { |
| 161 | messageParts.push(key + ": " + value); |
| 162 | } |
| 163 | } |
| 164 | return messageParts.join('\n'); |
| 165 | } |
| 166 | var PatchError = /** @class */ (function (_super) { |
| 167 | __extends(PatchError, _super); |
| 168 | function PatchError(message, name, index, operation, tree) { |