MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / endStream

Function endStream

scripts/i18n.js:183–202  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

181 }
182
183 function endStream(cb) {
184 locales.load()
185 .then(() => {
186 keys.forEach(key => {
187 locales.touch(key);
188 });
189 return locales.dump()
190 .map(out => new Vinyl({
191 path: out.path,
192 contents: Buffer.from(out.data),
193 }));
194 })
195 .then(files => {
196 files.forEach(file => {
197 this.push(file);
198 });
199 cb();
200 })
201 .catch(cb);
202 }
203
204 if (options.manifest) {
205 const mf = require('fs').readFileSync(options.manifest, 'utf8');

Callers

nothing calls this directly

Calls 5

touchMethod · 0.80
mapMethod · 0.80
cbFunction · 0.50
loadMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected