index.js 9.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. Object.defineProperty(exports, "AuthAdapter", {
  6. enumerable: true,
  7. get: function () {
  8. return _AuthAdapter.default;
  9. }
  10. });
  11. Object.defineProperty(exports, "FileSystemAdapter", {
  12. enumerable: true,
  13. get: function () {
  14. return _fsFilesAdapter.default;
  15. }
  16. });
  17. exports.GCSAdapter = void 0;
  18. Object.defineProperty(exports, "InMemoryCacheAdapter", {
  19. enumerable: true,
  20. get: function () {
  21. return _InMemoryCacheAdapter.default;
  22. }
  23. });
  24. Object.defineProperty(exports, "LRUCacheAdapter", {
  25. enumerable: true,
  26. get: function () {
  27. return _LRUCache.default;
  28. }
  29. });
  30. Object.defineProperty(exports, "NullCacheAdapter", {
  31. enumerable: true,
  32. get: function () {
  33. return _NullCacheAdapter.default;
  34. }
  35. });
  36. Object.defineProperty(exports, "ParseGraphQLServer", {
  37. enumerable: true,
  38. get: function () {
  39. return _ParseGraphQLServer.ParseGraphQLServer;
  40. }
  41. });
  42. exports.ParseServer = void 0;
  43. Object.defineProperty(exports, "PushWorker", {
  44. enumerable: true,
  45. get: function () {
  46. return _PushWorker.PushWorker;
  47. }
  48. });
  49. Object.defineProperty(exports, "RedisCacheAdapter", {
  50. enumerable: true,
  51. get: function () {
  52. return _RedisCacheAdapter.default;
  53. }
  54. });
  55. exports.default = exports.TestUtils = exports.SchemaMigrations = exports.S3Adapter = void 0;
  56. var _ParseServer2 = _interopRequireDefault(require("./ParseServer"));
  57. var _fsFilesAdapter = _interopRequireDefault(require("@parse/fs-files-adapter"));
  58. var _InMemoryCacheAdapter = _interopRequireDefault(require("./Adapters/Cache/InMemoryCacheAdapter"));
  59. var _NullCacheAdapter = _interopRequireDefault(require("./Adapters/Cache/NullCacheAdapter"));
  60. var _RedisCacheAdapter = _interopRequireDefault(require("./Adapters/Cache/RedisCacheAdapter"));
  61. var _LRUCache = _interopRequireDefault(require("./Adapters/Cache/LRUCache.js"));
  62. var TestUtils = _interopRequireWildcard(require("./TestUtils"));
  63. exports.TestUtils = TestUtils;
  64. var SchemaMigrations = _interopRequireWildcard(require("./SchemaMigrations/Migrations"));
  65. exports.SchemaMigrations = SchemaMigrations;
  66. var _AuthAdapter = _interopRequireDefault(require("./Adapters/Auth/AuthAdapter"));
  67. var _deprecated = require("./deprecated");
  68. var _logger = require("./logger");
  69. var _PushWorker = require("./Push/PushWorker");
  70. var _Options = require("./Options");
  71. var _ParseGraphQLServer = require("./GraphQL/ParseGraphQLServer");
  72. function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
  73. function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
  74. function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
  75. // Factory function
  76. const _ParseServer = function (options) {
  77. const server = new _ParseServer2.default(options);
  78. return server;
  79. };
  80. // Mount the create liveQueryServer
  81. exports.ParseServer = _ParseServer;
  82. _ParseServer.createLiveQueryServer = _ParseServer2.default.createLiveQueryServer;
  83. _ParseServer.startApp = _ParseServer2.default.startApp;
  84. const S3Adapter = exports.S3Adapter = (0, _deprecated.useExternal)('S3Adapter', '@parse/s3-files-adapter');
  85. const GCSAdapter = exports.GCSAdapter = (0, _deprecated.useExternal)('GCSAdapter', '@parse/gcs-files-adapter');
  86. Object.defineProperty(module.exports, 'logger', {
  87. get: _logger.getLogger
  88. });
  89. var _default = exports.default = _ParseServer2.default;
  90. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfUGFyc2VTZXJ2ZXIyIiwiX2ludGVyb3BSZXF1aXJlRGVmYXVsdCIsInJlcXVpcmUiLCJfZnNGaWxlc0FkYXB0ZXIiLCJfSW5NZW1vcnlDYWNoZUFkYXB0ZXIiLCJfTnVsbENhY2hlQWRhcHRlciIsIl9SZWRpc0NhY2hlQWRhcHRlciIsIl9MUlVDYWNoZSIsIlRlc3RVdGlscyIsIl9pbnRlcm9wUmVxdWlyZVdpbGRjYXJkIiwiZXhwb3J0cyIsIlNjaGVtYU1pZ3JhdGlvbnMiLCJfQXV0aEFkYXB0ZXIiLCJfZGVwcmVjYXRlZCIsIl9sb2dnZXIiLCJfUHVzaFdvcmtlciIsIl9PcHRpb25zIiwiX1BhcnNlR3JhcGhRTFNlcnZlciIsIl9nZXRSZXF1aXJlV2lsZGNhcmRDYWNoZSIsImUiLCJXZWFrTWFwIiwiciIsInQiLCJfX2VzTW9kdWxlIiwiZGVmYXVsdCIsImhhcyIsImdldCIsIm4iLCJfX3Byb3RvX18iLCJhIiwiT2JqZWN0IiwiZGVmaW5lUHJvcGVydHkiLCJnZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IiLCJ1IiwiaGFzT3duUHJvcGVydHkiLCJjYWxsIiwiaSIsInNldCIsIl9QYXJzZVNlcnZlciIsIm9wdGlvbnMiLCJzZXJ2ZXIiLCJQYXJzZVNlcnZlciIsImNyZWF0ZUxpdmVRdWVyeVNlcnZlciIsInN0YXJ0QXBwIiwiUzNBZGFwdGVyIiwidXNlRXh0ZXJuYWwiLCJHQ1NBZGFwdGVyIiwibW9kdWxlIiwiZ2V0TG9nZ2VyIiwiX2RlZmF1bHQiXSwic291cmNlcyI6WyIuLi9zcmMvaW5kZXguanMiXSwic291cmNlc0NvbnRlb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