MCPcopy Create free account
hub / github.com/decaporg/decap-cms / mergeData

Method mergeData

packages/decap-cms-lib-util/src/Cursor.ts:145–147  ·  view source on GitHub ↗
(data: {})

Source from the content-addressed store, hash-verified

143 return new Cursor(this.store!.set('data', jsToMap(data)));
144 }
145 mergeData(data: {}) {
146 return new Cursor(this.store!.mergeIn(['data'], jsToMap(data)));
147 }
148 wrapData(data: {}) {
149 return this.updateStore('data', (oldData: Map<string, unknown>) =>
150 jsToMap(data).set('wrapped_cursor_data', oldData),

Callers

nothing calls this directly

Calls 1

jsToMapFunction · 0.85

Tested by

no test coverage detected