MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / set

Method set

src/background/utils/storage.js:66–74  ·  view source on GitHub ↗

* @param {Object} data * @return {Promise } same object

(data)

Source from the content-addressed store, hash-verified

64 * @return {Promise<Object>} same object
65 */
66 async set(data) {
67 if (process.env.DEV && !isObject(data)) {
68 throw 'VMStorageArea.set: data is not an object';
69 }
70 await api.set(this.prefix
71 ? data::mapEntry(null, this.toKey, this)
72 : data);
73 return data;
74 }
75}
76
77// TODO: add Firefox version to the comment when https://bugzil.la/1910669 is fixed

Callers 15

setOneMethod · 0.95
updateVisitedTimeFunction · 0.80
setCookieInStoreFunction · 0.80
db.jsFile · 0.80
normalizePositionFunction · 0.80
updateScriptInfoFunction · 0.80
parseScriptFunction · 0.80
doneFunction · 0.80
getFunction · 0.80
setFunction · 0.80
removeFunction · 0.80

Calls 2

mapEntryFunction · 0.90
isObjectFunction · 0.85

Tested by

no test coverage detected