MCPcopy
hub / github.com/streetwriters/notesnook / replace

Method replace

apps/mobile/worker.js:7632–7640  ·  view source on GitHub ↗

* @param {string} token * @param {string} newToken

(token, newToken)

Source from the content-addressed store, hash-verified

7630 * @param {string} newToken
7631 */
7632 replace(token, newToken) {
7633 if (this.has(token)) {
7634 this.delete(token);
7635 super.add(newToken);
7636 update(this);
7637 return true;
7638 }
7639 return false;
7640 }
7641
7642 /**
7643 * @param {string} token

Callers 15

registerProtocolFunction · 0.45
getExtensionPathFunction · 0.45
toMenuItemFunction · 0.45
wrapPathFunction · 0.45
stripAnsiFunction · 0.45
makeBuildCopyLinuxFunction · 0.45
common-fixtures.tsFile · 0.45
toBase64UrlFunction · 0.45
fromBase64UrlFunction · 0.45
extractFirstWordsFunction · 0.45

Calls 4

updateFunction · 0.70
deleteMethod · 0.65
hasMethod · 0.45
addMethod · 0.45

Tested by 3

stripAnsiFunction · 0.36
makeBuildCopyLinuxFunction · 0.36
roundOffPricesFunction · 0.36