File tree Expand file tree Collapse file tree
vike-react-apollo/src/utils
vike-react-query/src/utils
vike-react-zustand/src/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ export { assert }
33
44function assertUsage ( condition : unknown , message : string ) : asserts condition {
55 if ( condition ) return
6- throw new Error ( 'Wrong usage: ' + message )
6+ throw new Error ( '[vike-react-apollo] ' + message )
77}
88
99function assert ( condition : unknown ) : asserts condition {
1010 if ( condition ) return
11- throw new Error ( 'You stumbled upon a vike-react-apollo bug, reach out on GitHub.' )
11+ throw new Error ( '[vike-react-apollo] You stumbled upon a bug, reach out on GitHub.' )
1212}
Original file line number Diff line number Diff line change 11export function assert ( condition : unknown ) : asserts condition {
22 if ( condition ) return
3- throw new Error ( 'You stumbled upon a vike-react-query bug, reach out on GitHub.' )
3+ throw new Error ( '[vike-react-query] You stumbled upon a bug, reach out on GitHub.' )
44}
Original file line number Diff line number Diff line change 1- export { assert , assertUsage }
1+ export { assert }
22
33function assert ( condition : unknown ) : asserts condition {
44 if ( condition ) return
5- throw new Error ( 'You stumbled upon a vike-react-zustand bug, reach out on GitHub.' )
6- }
7-
8- function assertUsage ( condition : unknown , message : string ) : asserts condition {
9- if ( condition ) return
10- throw new Error ( 'Wrong usage: ' + message )
5+ throw new Error ( '[vike-react-zustand] You stumbled upon a bug, reach out on GitHub.' )
116}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export { assertWarning }
33
44function assert ( condition : unknown ) : asserts condition {
55 if ( condition ) return
6- throw new Error ( 'You stumbled upon a vike-react bug, reach out on GitHub.' )
6+ throw new Error ( '[vike-react] You stumbled upon a bug, reach out on GitHub.' )
77}
88
99function assertWarning ( condition : unknown , message : string ) {
You can’t perform that action at this time.
0 commit comments