From 9bed4a6aee557e2f7425705c64e49369125cceeb Mon Sep 17 00:00:00 2001 From: Sophie Alpert Date: Sat, 19 May 2018 17:29:41 -0700 Subject: [PATCH] https in reactProdInvariant text (#12869) --- .../shared/__tests__/reactProdInvariant-test.internal.js | 6 +++--- packages/shared/reactProdInvariant.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/shared/__tests__/reactProdInvariant-test.internal.js b/packages/shared/__tests__/reactProdInvariant-test.internal.js index 34dbf78330938..0c3add70af595 100644 --- a/packages/shared/__tests__/reactProdInvariant-test.internal.js +++ b/packages/shared/__tests__/reactProdInvariant-test.internal.js @@ -39,7 +39,7 @@ describe('reactProdInvariant', () => { reactProdInvariant(124, 'foo', 'bar'); }).toThrowError( 'Minified React error #124; visit ' + - 'http://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' + + 'https://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); @@ -48,7 +48,7 @@ describe('reactProdInvariant', () => { reactProdInvariant(20); }).toThrowError( 'Minified React error #20; visit ' + - 'http://reactjs.org/docs/error-decoder.html?invariant=20' + + 'https://reactjs.org/docs/error-decoder.html?invariant=20' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); @@ -57,7 +57,7 @@ describe('reactProdInvariant', () => { reactProdInvariant(77, '
', '&?bar'); }).toThrowError( 'Minified React error #77; visit ' + - 'http://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' + + 'https://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' + ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.', ); diff --git a/packages/shared/reactProdInvariant.js b/packages/shared/reactProdInvariant.js index 92764573fe3ca..476e440d543fc 100644 --- a/packages/shared/reactProdInvariant.js +++ b/packages/shared/reactProdInvariant.js @@ -19,7 +19,7 @@ import invariant from 'fbjs/lib/invariant'; */ function reactProdInvariant(code: string): void { const argCount = arguments.length - 1; - let url = 'http://reactjs.org/docs/error-decoder.html?invariant=' + code; + let url = 'https://reactjs.org/docs/error-decoder.html?invariant=' + code; for (let argIdx = 0; argIdx < argCount; argIdx++) { url += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); }