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

Method wrapData

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

Source from the content-addressed store, hash-verified

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),
151 );
152 }
153 unwrapData() {
154 return [
155 this.store!.get('data').delete('wrapped_cursor_data'),

Callers 2

listEntriesMethod · 0.80
traverseCursorMethod · 0.80

Calls 3

updateStoreMethod · 0.95
jsToMapFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected