seed-stub.js 607 B

12345678910111213141516171819202122
  1. "use strict";
  2. var _bluebird = require("bluebird");
  3. var _bluebird2 = _interopRequireDefault(_bluebird);
  4. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5. // Stub Seed:
  6. // Used for now in browser builds, where filesystem access isn't
  7. // available. Maybe we can eventually do websql migrations
  8. // with jsonp and a json migration api.
  9. var StubSeed = module.exports = function () {};
  10. var noSuchMethod = _bluebird2.default.method(function () {
  11. throw new Error("Seeds are not supported");
  12. });
  13. StubSeed.prototype = {
  14. make: noSuchMethod,
  15. run: noSuchMethod
  16. };