MCPcopy Create free account
hub / github.com/socketstream/socketstream / iterator

Function iterator

lib/client/bundler/index.js:497–513  ·  view source on GitHub ↗
(entry, callback)

Source from the content-addressed store, hash-verified

495 async.mapSeries(bundler.entries(assetType,system.assets), iterator, andThen);
496
497 function iterator(entry, callback) {
498 var options = {
499 constants: bundler.constants(),
500 locals: bundler.locals(),
501 //pathPrefix: entry.importedBy,
502 compress: true
503 };
504 if (typeof entry.content === "string") {
505 callback(null, {content:entry.content,options:{}});
506 }
507 else {
508 bundler.asset(entry, options, function(output) {
509 //TODO if err, flag has errors
510 callback(null, {content:output,options:{}});
511 });
512 }
513 }
514
515 function andThen(err, results) {
516 var fileName = bundler.dests.paths[assetType];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected