| 144 | return false; |
| 145 | } |
| 146 | function patchErrorMessageFormatter(message, args) { |
| 147 | var messageParts = [message]; |
| 148 | for (var key in args) { |
| 149 | var value = typeof args[key] === 'object' ? JSON.stringify(args[key], null, 2) : args[key]; // pretty print |
| 150 | if (typeof value !== 'undefined') { |
| 151 | messageParts.push(key + ": " + value); |
| 152 | } |
| 153 | } |
| 154 | return messageParts.join('\n'); |
| 155 | } |
| 156 | var PatchError = /** @class */ (function (_super) { |
| 157 | __extends(PatchError, _super); |
| 158 | function PatchError(message, name, index, operation, tree) { |