MCPcopy
hub / github.com/GooseMod/OpenAsar / _commitModulesInner

Method _commitModulesInner

src/updater/updater.js:199–210  ·  view source on GitHub ↗
(versions)

Source from the content-addressed store, hash-verified

197 }
198
199 _commitModulesInner(versions) {
200 const base = join(this._getHostPath(), 'modules');
201
202 for (const m in versions.current_modules) {
203 const path = join(base, `${m}-${versions.current_modules[m]}`);
204 if (this.committedModules.has(m) || Module.globalPaths.includes(path)) continue;
205
206 this.committedModules.add(m);
207 this.committedModulePaths.set(m, join(path, m));
208 Module.globalPaths.unshift(path);
209 }
210 }
211
212 _recordDownloadProgress(name, progress) {
213 const now = String(hrtime.bigint());

Callers 2

commitModulesMethod · 0.95

Calls 2

_getHostPathMethod · 0.95
setMethod · 0.80

Tested by

no test coverage detected