MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / put

Method put

src/modules/autocryptWrapper.js:150–154  ·  view source on GitHub ↗
(key, val, cb)

Source from the content-addressed store, hash-verified

148 }
149
150 put(key, val, cb) {
151 this.map.set(key, val);
152 mvelo.storage.set(this.storageKey, this.toObject())
153 .then(() => cb(), err => cb(new MvError(err.message, 'STORAGE_ERROR')));
154 }
155
156 toObject() {
157 const all = {};

Callers 1

Calls 2

toObjectMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected