scheduler-tracing.production.min.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /**
  2. * @license React
  3. *
  4. * Copyright (c) Facebook, Inc. and its affiliates.
  5. *
  6. * This source code is licensed under the MIT license found in the
  7. * LICENSE file in the root directory of this source tree.
  8. */
  9. 'use strict';
  10. (function(global, factory) {
  11. // eslint-disable-next-line no-unused-expressions
  12. typeof exports === 'object' && typeof module !== 'undefined'
  13. ? (module.exports = factory(require('react')))
  14. : typeof define === 'function' && define.amd // eslint-disable-line no-undef
  15. ? define(['react'], factory) // eslint-disable-line no-undef
  16. : (global.SchedulerTracing = factory(global));
  17. })(this, function(global) {
  18. function unstable_clear() {
  19. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_clear.apply(
  20. this,
  21. arguments
  22. );
  23. }
  24. function unstable_getCurrent() {
  25. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_getCurrent.apply(
  26. this,
  27. arguments
  28. );
  29. }
  30. function unstable_getThreadID() {
  31. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_getThreadID.apply(
  32. this,
  33. arguments
  34. );
  35. }
  36. function unstable_subscribe() {
  37. // eslint-disable-next-line max-len
  38. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_subscribe.apply(
  39. this,
  40. arguments
  41. );
  42. }
  43. function unstable_trace() {
  44. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_trace.apply(
  45. this,
  46. arguments
  47. );
  48. }
  49. function unstable_unsubscribe() {
  50. // eslint-disable-next-line max-len
  51. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_unsubscribe.apply(
  52. this,
  53. arguments
  54. );
  55. }
  56. function unstable_wrap() {
  57. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracing.unstable_wrap.apply(
  58. this,
  59. arguments
  60. );
  61. }
  62. return Object.freeze({
  63. unstable_clear: unstable_clear,
  64. unstable_getCurrent: unstable_getCurrent,
  65. unstable_getThreadID: unstable_getThreadID,
  66. unstable_subscribe: unstable_subscribe,
  67. unstable_trace: unstable_trace,
  68. unstable_unsubscribe: unstable_unsubscribe,
  69. unstable_wrap: unstable_wrap,
  70. });
  71. });