MCPcopy Index your code
hub / github.com/violentmonkey/violentmonkey / transformScript

Function transformScript

src/background/utils/patch-db.js:66–80  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

64 });
65 }
66 function transformScript(script) {
67 return {
68 meta: parseMeta(script.code),
69 custom: Object.assign({}, defaultCustom, script.custom),
70 props: {
71 id: script.id,
72 uri: script.uri,
73 position: script.position,
74 },
75 config: {
76 enabled: script.enabled,
77 shouldUpdate: script.update,
78 },
79 };
80 }
81})
82// Ignore error
83.catch(() => {});

Callers 1

transformFunction · 0.85

Calls 1

parseMetaFunction · 0.90

Tested by

no test coverage detected