index.js 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.ApolloServerPluginUsageReportingDisabled = exports.ApolloServerPluginSchemaReportingDisabled = exports.ApolloServerPluginLandingPageDisabled = exports.ApolloServerPluginInlineTraceDisabled = exports.ApolloServerPluginCacheControlDisabled = void 0;
  4. function disabledPlugin(id) {
  5. const plugin = {
  6. __internal_plugin_id__: id,
  7. __is_disabled_plugin__: true,
  8. };
  9. return plugin;
  10. }
  11. function ApolloServerPluginCacheControlDisabled() {
  12. return disabledPlugin('CacheControl');
  13. }
  14. exports.ApolloServerPluginCacheControlDisabled = ApolloServerPluginCacheControlDisabled;
  15. function ApolloServerPluginInlineTraceDisabled() {
  16. return disabledPlugin('InlineTrace');
  17. }
  18. exports.ApolloServerPluginInlineTraceDisabled = ApolloServerPluginInlineTraceDisabled;
  19. function ApolloServerPluginLandingPageDisabled() {
  20. return disabledPlugin('LandingPageDisabled');
  21. }
  22. exports.ApolloServerPluginLandingPageDisabled = ApolloServerPluginLandingPageDisabled;
  23. function ApolloServerPluginSchemaReportingDisabled() {
  24. return disabledPlugin('SchemaReporting');
  25. }
  26. exports.ApolloServerPluginSchemaReportingDisabled = ApolloServerPluginSchemaReportingDisabled;
  27. function ApolloServerPluginUsageReportingDisabled() {
  28. return disabledPlugin('UsageReporting');
  29. }
  30. exports.ApolloServerPluginUsageReportingDisabled = ApolloServerPluginUsageReportingDisabled;
  31. //# sourceMappingURL=index.js.map