a zip code crypto-currency system good for red ONLY

ModuleDependency.js 468B

123456789101112131415161718192021222324
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const Dependency = require("../Dependency");
  7. class ModuleDependency extends Dependency {
  8. constructor(request) {
  9. super();
  10. this.request = request;
  11. this.userRequest = request;
  12. }
  13. isEqualResource(other) {
  14. if(!(other instanceof ModuleDependency))
  15. return false;
  16. return this.request === other.request;
  17. }
  18. }
  19. module.exports = ModuleDependency;