Skip to content

Commit

Permalink
Improved deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
ItalyPaleAle committed Sep 20, 2020
1 parent 140dad3 commit 0b04827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Router.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {wrap as _wrap} from './wrap'
export function wrap(route, userData, ...conditions) {
// Use the new wrap method and show a deprecation warning
// eslint-disable-next-line no-console
console.warn('Method wrap is deprecated and will be removed in a future version. Please use svelte-spa-router/wrap instead.')
console.warn('Method `wrap` from `svelte-spa-router` is deprecated and will be removed in a future version. Please use `svelte-spa-router/wrap` instead. See https://bit.ly/2ZQpype')
return _wrap({
route,
userData,
Expand Down

0 comments on commit 0b04827

Please sign in to comment.