console.mjs 953 B

123456789101112131415161718192021
  1. /* eslint-disable no-console */
  2. // Utilities
  3. import { warn } from 'vue';
  4. export function consoleWarn(message) {
  5. warn(`Vuetify: ${message}`);
  6. }
  7. export function consoleError(message) {
  8. warn(`Vuetify error: ${message}`);
  9. }
  10. export function deprecate(original, replacement) {
  11. replacement = Array.isArray(replacement) ? replacement.slice(0, -1).map(s => `'${s}'`).join(', ') + ` or '${replacement.at(-1)}'` : `'${replacement}'`;
  12. warn(`[Vuetify UPGRADE] '${original}' is deprecated, use ${replacement} instead.`);
  13. }
  14. export function breaking(original, replacement) {
  15. // warn(`[Vuetify BREAKING] '${original}' has been removed, use '${replacement}' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide`)
  16. }
  17. export function removed(original) {
  18. // warn(`[Vuetify REMOVED] '${original}' has been removed. You can safely omit it.`)
  19. }
  20. //# sourceMappingURL=console.mjs.map