File tree Expand file tree Collapse file tree 4 files changed +21
-7
lines changed Expand file tree Collapse file tree 4 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ var context = {};
1010var onRenderBody = function ( _a ) {
1111 var setHeadComponents = _a . setHeadComponents , setHtmlAttributes = _a . setHtmlAttributes , setBodyAttributes = _a . setBodyAttributes ;
1212 var helmet = context . helmet ;
13- if ( helmet != null ) {
13+ if ( helmet ) {
1414 setHeadComponents ( [
1515 helmet . base . toComponent ( ) ,
1616 helmet . title . toComponent ( ) ,
Original file line number Diff line number Diff line change 11{
22 "name" : " gatsby-plugin-react-helmet-async" ,
3- "version" : " 1.2.1 " ,
3+ "version" : " 1.2.2 " ,
44 "description" : " Use react-helmet-async with Gatsby" ,
55 "keywords" : [
66 " gatsby" ,
2121 "author" : " Martin Rosenberg <Martin.B.Rosenberg@gmail.com> (https://martinbrosenberg.com)" ,
2222 "main" : " index.js" ,
2323 "scripts" : {
24+ "prepublish" : " yarn build" ,
2425 "build" : " tsc --build" ,
2526 "clean" : " rm gatsby-browser.d.ts gatsby-browser.js gatsby-ssr.d.ts gatsby-ssr.js" ,
2627 "lint" : " eslint src --ext ts,tsx --fix" ,
2728 "test" : " echo \" Error: no tests specified\" && exit 1"
2829 },
2930 "devDependencies" : {
31+ "@types/react" : " ^17" ,
32+ "@types/react-dom" : " ^17" ,
3033 "@typescript-eslint/eslint-plugin" : " ^5.27.1" ,
3134 "@typescript-eslint/parser" : " ^5.27.1" ,
3235 "eslint" : " ^8.17.0" ,
5255 "react" : " ^16.6.0 || ^17 || ^18" ,
5356 "react-dom" : " ^16.6.0 || ^17 || ^18" ,
5457 "react-helmet-async" : " 1.x"
58+ },
59+ "resolutions" : {
60+ "@types/react" : " ^17" ,
61+ "@types/react-dom" : " ^17"
5562 }
5663}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const onRenderBody: GatsbySSR['onRenderBody'] = ({
1111} : RenderBodyArgs ) : void => {
1212 const { helmet } = context ;
1313
14- if ( helmet != null ) {
14+ if ( helmet ) {
1515 setHeadComponents ( [
1616 helmet . base . toComponent ( ) ,
1717 helmet . title . toComponent ( ) ,
Original file line number Diff line number Diff line change 18001800 dependencies :
18011801 " @types/react" " *"
18021802
1803- " @types/react@* " :
1804- version "18.0.12"
1805- resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.12.tgz#cdaa209d0a542b3fcf69cf31a03976ec4cdd8840"
1806- integrity sha512-duF1OTASSBQtcigUvhuiTB1Ya3OvSy+xORCiEf20H0P0lzx+/KeVsA99U5UjLXSbyo1DRJDlLKqTeM1ngosqtg==
1803+ " @types/react-dom@^17 " :
1804+ version "17.0.17"
1805+ resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.17.tgz#2e3743277a793a96a99f1bf87614598289da68a1"
1806+ integrity sha512-VjnqEmqGnasQKV0CWLevqMTXBYG9GbwuE6x3VetERLh0cq2LTptFE73MrQi2S7GkKXCf2GgwItB/melLnxfnsg==
1807+ dependencies :
1808+ " @types/react" " ^17"
1809+
1810+ " @types/react@*" , "@types/react@^17":
1811+ version "17.0.45"
1812+ resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.45.tgz#9b3d5b661fd26365fefef0e766a1c6c30ccf7b3f"
1813+ integrity sha512-YfhQ22Lah2e3CHPsb93tRwIGNiSwkuz1/blk4e6QrWS0jQzCSNbGLtOEYhPg02W0yGTTmpajp7dCTbBAMN3qsg==
18071814 dependencies :
18081815 " @types/prop-types" " *"
18091816 " @types/scheduler" " *"
You can’t perform that action at this time.
0 commit comments