MCPcopy Index your code
hub / github.com/dataease/SQLBot / updatePatches

Method updatePatches

frontend/public/swagger-ui-bundle.js:41291–41306  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

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 &&

Callers 2

constructorMethod · 0.95
promisedPatchThenMethod · 0.95

Calls 8

debugMethod · 0.95
promisedPatchThenMethod · 0.95
setContextMethod · 0.95
updateMutationsMethod · 0.95
errorMethod · 0.80
forEachMethod · 0.45
pushMethod · 0.45
isObjectMethod · 0.45

Tested by

no test coverage detected