MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / nanoid

Function nanoid

public/serviceWorker.js:3–3  ·  view source on GitHub ↗
(e=21)

Source from the content-addressed store, hash-verified

1const CHATGPT_NEXT_WEB_CACHE = "chatgpt-next-web-cache";
2const CHATGPT_NEXT_WEB_FILE_CACHE = "chatgpt-next-web-file";
3let a="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let nanoid=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(let n=0;n<e;n++)t+=a[63&r[n]];return t};
4
5self.addEventListener("activate", function (event) {
6 console.log("ServiceWorker activated.");

Callers 15

uploadFunction · 0.85
chatMethod · 0.85
artifacts.tsxFile · 0.85
UserPromptModalFunction · 0.85
createEmptyPluginFunction · 0.85
createFunction · 0.85
addFunction · 0.85
migrateFunction · 0.85
onRehydrateStorageFunction · 0.85
createMessageFunction · 0.85
createEmptySessionFunction · 0.85
forkSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected