deprecation-warning.js 365 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const alreadyWarned = new Set();
  4. exports.default = (message) => {
  5. if (alreadyWarned.has(message)) {
  6. return;
  7. }
  8. alreadyWarned.add(message);
  9. // @ts-expect-error Missing types.
  10. process.emitWarning(`Got: ${message}`, {
  11. type: 'DeprecationWarning'
  12. });
  13. };