(s)
| 41289 | const i = this.constructor.getPluginName(s) |
| 41290 | ;((this.pluginHistory[i] = this.pluginHistory[i] || []), this.pluginHistory[i].push(o)) |
| 41291 | } |
| 41292 | updatePatches(s) { |
| 41293 | Wo.normalizeArray(s).forEach((s) => { |
| 41294 | if (s instanceof Error) this.errors.push(s) |
| 41295 | else |
| 41296 | try { |
| 41297 | if (!Wo.isObject(s)) |
| 41298 | return void this.debug('updatePatches', 'Got a non-object patch', s) |
| 41299 | if ((this.showDebug && this.allPatches.push(s), Wo.isPromise(s.value))) |
| 41300 | return (this.promisedPatches.push(s), void this.promisedPatchThen(s)) |
| 41301 | if (Wo.isContextPatch(s)) return void this.setContext(s.path, s.value) |
| 41302 | Wo.isMutation(s) && this.updateMutations(s) |
| 41303 | } catch (s) { |
| 41304 | ;(console.error(s), this.errors.push(s)) |
| 41305 | } |
| 41306 | }) |
| 41307 | } |
| 41308 | updateMutations(s) { |
| 41309 | 'object' == typeof s.value && |
no test coverage detected