MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / setScriptValue

Method setScriptValue

src/app/service/service_worker/client.ts:177–180  ·  view source on GitHub ↗
({ uuid, key, value, ts }: { uuid: string; key: string; value: any; ts?: number })

Source from the content-addressed store, hash-verified

175 }
176
177 setScriptValue({ uuid, key, value, ts }: { uuid: string; key: string; value: any; ts?: number }) {
178 const keyValuePairs = [[key, encodeRValue(value)]] as TKeyValuePair[];
179 return this.do("setScriptValues", { uuid, keyValuePairs, ts } as TSetValuesParams);
180 }
181
182 setScriptValues(params: TSetValuesParams) {
183 return this.do("setScriptValues", params);

Callers 1

saveDataFunction · 0.80

Calls 2

encodeRValueFunction · 0.90
doMethod · 0.45

Tested by

no test coverage detected