MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / data

Function data

plugins/src/preload/api/DataStore.ts:5–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3let data_: Map<string, any>;
4
5function data() {
6 if (data_ === undefined) {
7 try {
8 var object = JSON.parse(native.LoadDataStore());
9 data_ = new Map(Object.entries(object));
10 } catch {
11 data_ = new Map();
12 }
13 }
14 return data_;
15}
16
17function commit() {
18 var object = Object.fromEntries(data_);

Callers 4

hasFunction · 0.85
getFunction · 0.85
setFunction · 0.85
removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected