@samitouri / QOS-React / commits / 9bed4a6aee

https in reactProdInvariant text (#12869)

Sophie Alpert committed May 19, 2018 at 17:29 UTC 9bed4a6aee557e2f7425705c64e49369125cceeb
2 files changed +4 -4
packages/shared/__tests__/reactProdInvariant-test.internal.js
+3 -3
@@ -39,7 +39,7 @@ describe('reactProdInvariant', () => {
39 reactProdInvariant(124, 'foo', 'bar');
40 }).toThrowError(
41 'Minified React error #124; visit ' +
42 - 'http://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
42 + 'https://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
43 ' for the full message or use the non-minified dev environment' +
44 ' for full errors and additional helpful warnings.',
45 );
@@ -48,7 +48,7 @@ describe('reactProdInvariant', () => {
48 reactProdInvariant(20);
49 }).toThrowError(
50 'Minified React error #20; visit ' +
51 - 'http://reactjs.org/docs/error-decoder.html?invariant=20' +
51 + 'https://reactjs.org/docs/error-decoder.html?invariant=20' +
52 ' for the full message or use the non-minified dev environment' +
53 ' for full errors and additional helpful warnings.',
54 );
@@ -57,7 +57,7 @@ describe('reactProdInvariant', () => {
57 reactProdInvariant(77, '<div>', '&?bar');
58 }).toThrowError(
59 'Minified React error #77; visit ' +
60 - 'http://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
60 + 'https://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
61 ' for the full message or use the non-minified dev environment' +
62 ' for full errors and additional helpful warnings.',
63 );
packages/shared/reactProdInvariant.js
+1 -1
@@ -19,7 +19,7 @@ import invariant from 'fbjs/lib/invariant';
19 */
20 function reactProdInvariant(code: string): void {
21 const argCount = arguments.length - 1;
22 - let url = 'http://reactjs.org/docs/error-decoder.html?invariant=' + code;
22 + let url = 'https://reactjs.org/docs/error-decoder.html?invariant=' + code;
23 for (let argIdx = 0; argIdx < argCount; argIdx++) {
24 url += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
25 }