Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

plugin-pass.js 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. class PluginPass {
  7. constructor(file, key, options) {
  8. this._map = new Map();
  9. this.key = void 0;
  10. this.file = void 0;
  11. this.opts = void 0;
  12. this.cwd = void 0;
  13. this.filename = void 0;
  14. this.key = key;
  15. this.file = file;
  16. this.opts = options || {};
  17. this.cwd = file.opts.cwd;
  18. this.filename = file.opts.filename;
  19. }
  20. set(key, val) {
  21. this._map.set(key, val);
  22. }
  23. get(key) {
  24. return this._map.get(key);
  25. }
  26. availableHelper(name, versionRange) {
  27. return this.file.availableHelper(name, versionRange);
  28. }
  29. addHelper(name) {
  30. return this.file.addHelper(name);
  31. }
  32. addImport() {
  33. return this.file.addImport();
  34. }
  35. buildCodeFrameError(node, msg, _Error) {
  36. return this.file.buildCodeFrameError(node, msg, _Error);
  37. }
  38. }
  39. exports.default = PluginPass;
  40. {
  41. PluginPass.prototype.getModuleName = function getModuleName() {
  42. return this.file.getModuleName();
  43. };
  44. }