a zip code crypto-currency system good for red ONLY

ResultPlugin.js 497B

12345678910111213141516171819
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. function ResultPlugin(source) {
  6. this.source = source;
  7. }
  8. module.exports = ResultPlugin;
  9. ResultPlugin.prototype.apply = function(resolver) {
  10. resolver.plugin(this.source, function(request, callback) {
  11. var obj = Object.assign({}, request);
  12. resolver.applyPluginsAsyncSeries1("result", obj, function(err) {
  13. if(err) return callback(err);
  14. callback(null, obj);
  15. });
  16. });
  17. };