diff --git a/.gitignore b/.gitignore index 23b0165b6..141e926dc 100644 --- a/.gitignore +++ b/.gitignore @@ -55,6 +55,8 @@ envs/.env.local # local cert for using ddev endpoint certs/rootCA.pem +# combined mozilla cert for broken link checking +certs/VA-mozilla-combined.pem # typescript *.tsbuildinfo diff --git a/.yarn/cache/axios-npm-0.27.2-dbe3a48aea-38cb754046.zip b/.yarn/cache/axios-npm-0.27.2-dbe3a48aea-38cb754046.zip new file mode 100644 index 000000000..601f76987 Binary files /dev/null and b/.yarn/cache/axios-npm-0.27.2-dbe3a48aea-38cb754046.zip differ diff --git a/.yarn/cache/bluebird-npm-3.7.2-6a54136ee3-869417503c.zip b/.yarn/cache/bluebird-npm-3.7.2-6a54136ee3-869417503c.zip new file mode 100644 index 000000000..f49f62c71 Binary files /dev/null and b/.yarn/cache/bluebird-npm-3.7.2-6a54136ee3-869417503c.zip differ diff --git a/.yarn/cache/cross-env-npm-6.0.3-83e1ec95fd-1b2d532ad7.zip b/.yarn/cache/cross-env-npm-6.0.3-83e1ec95fd-1b2d532ad7.zip new file mode 100644 index 000000000..489442435 Binary files /dev/null and b/.yarn/cache/cross-env-npm-6.0.3-83e1ec95fd-1b2d532ad7.zip differ diff --git a/.yarn/cache/csvtojson-npm-2.0.10-6e4b1552be-5312b054cd.zip b/.yarn/cache/csvtojson-npm-2.0.10-6e4b1552be-5312b054cd.zip new file mode 100644 index 000000000..c50174cd9 Binary files /dev/null and b/.yarn/cache/csvtojson-npm-2.0.10-6e4b1552be-5312b054cd.zip differ diff --git a/.yarn/cache/follow-redirects-npm-1.15.5-9d14db76ca-5ca49b5ce6.zip b/.yarn/cache/follow-redirects-npm-1.15.5-9d14db76ca-5ca49b5ce6.zip new file mode 100644 index 000000000..2c1e9bdad Binary files /dev/null and b/.yarn/cache/follow-redirects-npm-1.15.5-9d14db76ca-5ca49b5ce6.zip differ diff --git a/.yarn/cache/is-utf8-npm-0.2.1-46ab364e2f-167ccd2be8.zip b/.yarn/cache/is-utf8-npm-0.2.1-46ab364e2f-167ccd2be8.zip new file mode 100644 index 000000000..952563a49 Binary files /dev/null and b/.yarn/cache/is-utf8-npm-0.2.1-46ab364e2f-167ccd2be8.zip differ diff --git a/.yarn/cache/node_extra_ca_certs_mozilla_bundle-npm-1.0.5-aa83367199-a80c17aa2a.zip b/.yarn/cache/node_extra_ca_certs_mozilla_bundle-npm-1.0.5-aa83367199-a80c17aa2a.zip new file mode 100644 index 000000000..2bab978ed Binary files /dev/null and b/.yarn/cache/node_extra_ca_certs_mozilla_bundle-npm-1.0.5-aa83367199-a80c17aa2a.zip differ diff --git a/.yarn/cache/strip-bom-npm-2.0.0-5c4b64ed5a-08efb746bc.zip b/.yarn/cache/strip-bom-npm-2.0.0-5c4b64ed5a-08efb746bc.zip new file mode 100644 index 000000000..b33e06cce Binary files /dev/null and b/.yarn/cache/strip-bom-npm-2.0.0-5c4b64ed5a-08efb746bc.zip differ diff --git a/certs/VA-Internal-S2-RCA-combined.pem b/certs/VA-Internal-S2-RCA-combined.pem index 58c4990c0..0738e9132 100644 --- a/certs/VA-Internal-S2-RCA-combined.pem +++ b/certs/VA-Internal-S2-RCA-combined.pem @@ -39,4 +39,4 @@ KfqT0TbGqtmGV1CHtD8YGuBZY8/6odM9JWKRuBZjlrnEFtgrulXyzCeRCTCVuFOH vxED0FZjiMbBX+oktu9kNPydKwaNnP9L+hniLoy3epUaGwh7IRitIc24OFHV3QqQ A7pA40QKpyFD5V+hJgFTpt0nqQzSYhvONiwnR54jYJk2QLTrECM8gG1ebUuHSbMV geSbOImfE1SndDxkEE4ayix/PNxBlOuCAsg8KOHjjQEOwYMWiw== ------END CERTIFICATE----- \ No newline at end of file +-----END CERTIFICATE----- diff --git a/package.json b/package.json index 79365e55b..9e33718e9 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "format": "prettier --write .", "lint": "next lint", "plop": "plop", - "postinstall": "husky install", + "postinstall": "husky install && yarn certs", + "certs": "rm ./certs/VA-mozilla-combined.pem && cat node_modules/node_extra_ca_certs_mozilla_bundle/ca_bundle/ca_intermediate_root_bundle.pem ./certs/VA-internal-S2-RCA-combined.pem > ./certs/VA-mozilla-combined.pem", "test": "yarn build:env-loader && APP_ENV=test node ./scripts/yarn/test.js", "test:ci": "yarn build:env-loader && APP_ENV=test node ./scripts/yarn/test:ci.js", "test:coverage": "yarn build:env-loader && APP_ENV=test node ./scripts/yarn/test:coverage.js", @@ -128,6 +129,7 @@ "lint-staged": "^15.2.0", "msw": "^2.0.9", "nock": "^13.4.0", + "node_extra_ca_certs_mozilla_bundle": "^1.0.5", "prettier": "^2.8.8", "storybook": "^7.6.3", "ts-node": "^10.9.2", diff --git a/yarn.lock b/yarn.lock index 37f0a6ef0..4a7f2950f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6981,6 +6981,16 @@ __metadata: languageName: node linkType: hard +"axios@npm:^0.27.2": + version: 0.27.2 + resolution: "axios@npm:0.27.2" + dependencies: + follow-redirects: ^1.14.9 + form-data: ^4.0.0 + checksum: 38cb7540465fe8c4102850c4368053c21683af85c5fdf0ea619f9628abbcb59415d1e22ebc8a6390d2bbc9b58a9806c874f139767389c862ec9b772235f06854 + languageName: node + linkType: hard + "axios@npm:^1.6.2": version: 1.6.2 resolution: "axios@npm:1.6.2" @@ -7224,6 +7234,13 @@ __metadata: languageName: node linkType: hard +"bluebird@npm:^3.5.1": + version: 3.7.2 + resolution: "bluebird@npm:3.7.2" + checksum: 869417503c722e7dc54ca46715f70e15f4d9c602a423a02c825570862d12935be59ed9c7ba34a9b31f186c017c23cac6b54e35446f8353059c101da73eac22ef + languageName: node + linkType: hard + "bn.js@npm:^4.0.0, bn.js@npm:^4.1.0, bn.js@npm:^4.11.9": version: 4.12.0 resolution: "bn.js@npm:4.12.0" @@ -8316,6 +8333,18 @@ __metadata: languageName: node linkType: hard +"cross-env@npm:^6.0.3": + version: 6.0.3 + resolution: "cross-env@npm:6.0.3" + dependencies: + cross-spawn: ^7.0.0 + bin: + cross-env: src/bin/cross-env.js + cross-env-shell: src/bin/cross-env-shell.js + checksum: 1b2d532ad7beff8017db7c28fbee8f902377969b8090cd2b8716ec93bef958bb2838cd061c89c30e904d72f3ff7d3a4e80f0d762b14e60e8191a576be1376578 + languageName: node + linkType: hard + "cross-fetch@npm:^4.0.0": version: 4.0.0 resolution: "cross-fetch@npm:4.0.0" @@ -8446,6 +8475,19 @@ __metadata: languageName: node linkType: hard +"csvtojson@npm:^2.0.10": + version: 2.0.10 + resolution: "csvtojson@npm:2.0.10" + dependencies: + bluebird: ^3.5.1 + lodash: ^4.17.3 + strip-bom: ^2.0.0 + bin: + csvtojson: ./bin/csvtojson + checksum: 5312b054cd989c26f8b1ce2941f05c98cbdcb7e66b0585196f0299d57d533c6747d74b73f70c26befa13a53e2f4281421f5e841ef47dea6694a1bdc187f3accf + languageName: node + linkType: hard + "damerau-levenshtein@npm:^1.0.8": version: 1.0.8 resolution: "damerau-levenshtein@npm:1.0.8" @@ -10502,6 +10544,16 @@ __metadata: languageName: node linkType: hard +"follow-redirects@npm:^1.14.9": + version: 1.15.5 + resolution: "follow-redirects@npm:1.15.5" + peerDependenciesMeta: + debug: + optional: true + checksum: 5ca49b5ce6f44338cbfc3546823357e7a70813cecc9b7b768158a1d32c1e62e7407c944402a918ea8c38ae2e78266312d617dc68783fac502cbb55e1047b34ec + languageName: node + linkType: hard + "for-each@npm:^0.3.3": version: 0.3.3 resolution: "for-each@npm:0.3.3" @@ -12223,6 +12275,13 @@ __metadata: languageName: node linkType: hard +"is-utf8@npm:^0.2.0": + version: 0.2.1 + resolution: "is-utf8@npm:0.2.1" + checksum: 167ccd2be869fc228cc62c1a28df4b78c6b5485d15a29027d3b5dceb09b383e86a3522008b56dcac14b592b22f0a224388718c2505027a994fd8471465de54b3 + languageName: node + linkType: hard + "is-weakmap@npm:^2.0.1": version: 2.0.1 resolution: "is-weakmap@npm:2.0.1" @@ -13533,7 +13592,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.20, lodash@npm:^4.17.21": +"lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.20, lodash@npm:^4.17.21, lodash@npm:^4.17.3": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7 @@ -14320,6 +14379,7 @@ __metadata: next-drupal-query: ^0.4.0 next-sitemap: ^4.2.3 nock: ^13.4.0 + node_extra_ca_certs_mozilla_bundle: ^1.0.5 playwright-core: ^1.40.1 plop: ^4.0.0 prettier: ^2.8.8 @@ -14751,6 +14811,17 @@ __metadata: languageName: node linkType: hard +"node_extra_ca_certs_mozilla_bundle@npm:^1.0.5": + version: 1.0.5 + resolution: "node_extra_ca_certs_mozilla_bundle@npm:1.0.5" + dependencies: + axios: ^0.27.2 + cross-env: ^6.0.3 + csvtojson: ^2.0.10 + checksum: a80c17aa2a3675491dae3cf9fb92e36325a37c688179f89ad22ed5a2915815f2c74ec10c75cd259add24aa4123d793127fbc482a27b08b4104757b6e173b5e2f + languageName: node + linkType: hard + "nopt@npm:^6.0.0": version: 6.0.0 resolution: "nopt@npm:6.0.0" @@ -17897,6 +17968,15 @@ __metadata: languageName: node linkType: hard +"strip-bom@npm:^2.0.0": + version: 2.0.0 + resolution: "strip-bom@npm:2.0.0" + dependencies: + is-utf8: ^0.2.0 + checksum: 08efb746bc67b10814cd03d79eb31bac633393a782e3f35efbc1b61b5165d3806d03332a97f362822cf0d4dd14ba2e12707fcff44fe1c870c48a063a0c9e4944 + languageName: node + linkType: hard + "strip-bom@npm:^3.0.0": version: 3.0.0 resolution: "strip-bom@npm:3.0.0"