TransloaditPlugin.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
  6. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  7. var TransloaditPlugin = (function () {
  8. // This contains boilerplate that all TransloaditPlugins share - and should not be used
  9. // directly. It also shows which methods final plugins should implement/override,
  10. // this deciding on structure.
  11. function TransloaditPlugin(core, opts) {
  12. _classCallCheck(this, TransloaditPlugin);
  13. this.core = core;
  14. this.opts = opts;
  15. this.name = this.constructor.name;
  16. }
  17. _createClass(TransloaditPlugin, [{
  18. key: "run",
  19. value: function run(files) {
  20. return files;
  21. }
  22. }]);
  23. return TransloaditPlugin;
  24. })();
  25. exports["default"] = TransloaditPlugin;
  26. module.exports = exports["default"];