File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
cd " $( dirname " $0 " ) /.."
6
6
7
- if [ -f " Brewfile" ] && [ " $( uname -s) " = " Darwin" ]; then
7
+ if [ -f " Brewfile" ] && [ " $( uname -s) " = " Darwin" ] && [ " $SKIP_BREW " != " 1 " ] ; then
8
8
brew bundle check > /dev/null 2>&1 || {
9
9
echo " ==> Installing Homebrew dependencies…"
10
10
brew bundle
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
48
48
}
49
49
50
50
const contentType = response . headers . get ( 'content-type' ) ;
51
- const isJSON =
52
- contentType ?. includes ( 'application/json' ) || contentType ?. includes ( 'application/vnd.api +json') ;
51
+ const mediaType = contentType ?. split ( ';' ) [ 0 ] ?. trim ( ) ;
52
+ const isJSON = mediaType ?. includes ( 'application/json' ) || mediaType ?. endsWith ( ' +json') ;
53
53
if ( isJSON ) {
54
54
const json = await response . json ( ) ;
55
55
You can’t perform that action at this time.
0 commit comments