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

Function addZipFile

scripts/pack.js:22–28  ·  view source on GitHub ↗
(zip, path, content)

Source from the content-addressed store, hash-verified

20const zipMtime = new Date();
21
22const addZipFile = async (zip, path, content) => {
23 await zip.add({
24 path,
25 data: content,
26 meta: { modifiedAt: zipMtime },
27 });
28};
29
30// 判断是否为beta版本
31const version = semver.parse(packageInfo.version);

Callers 2

subFunction · 0.85
pack.jsFile · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected