MCPcopy Create free account
hub / github.com/Starcounter-Jack/JSON-Patch / getPatchesUsingGenerate

Function getPatchesUsingGenerate

test/spec/duplexSpec.mjs:21–26  ·  view source on GitHub ↗
(objFactory, objChanger)

Source from the content-addressed store, hash-verified

19}
20
21function getPatchesUsingGenerate(objFactory, objChanger) {
22 const obj = objFactory();
23 const observer = jsonpatch.observe(obj);
24 objChanger(obj);
25 return jsonpatch.generate(observer);
26}
27
28function getPatchesUsingCompare(objFactory, objChanger) {
29 const obj = objFactory();

Callers 1

duplexSpec.mjsFile · 0.85

Calls 2

objFactoryFunction · 0.85
objChangerFunction · 0.85

Tested by

no test coverage detected