@jsenv/https-local 3.0.6 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/https-local",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "A programmatic way to generate locally trusted certificates",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,16 +33,17 @@
33
33
  "eslint": "npx eslint . --ext=.js,.mjs,.cjs",
34
34
  "test": "node ./scripts/test/test.mjs",
35
35
  "performance": "node --expose-gc ./scripts/performance/performance.mjs --local --log",
36
- "test-with-coverage": "npm run test -- --coverage",
37
- "start-node-server": "node ./scripts/certificate/start_node_server.mjs",
38
- "log-root-certificate-trust": "node ./scripts/certificate/log_root_certificate_trust.mjs",
39
- "trust-root-certificate": "node ./scripts/certificate/trust_root_certificate.mjs",
40
- "untrust-root-certificate": "node ./scripts/certificate/untrust_root_certificate.mjs",
41
- "uninstall-certificate-authority": "node ./scripts/certificate/uninstall_certificate_authority.mjs",
42
- "add-localhost-mappings": "node ./scripts/hosts/add_localhost_mappings.mjs",
43
- "remove-localhost-mappings": "node ./scripts/hosts/remove_localhost_mappings.mjs",
44
- "verify-localhost-mappings": "node ./scripts/hosts/verify_localhost_mappings.mjs",
45
- "ensure-localhost-mappings": "node ./scripts/hosts/ensure_localhost_mappings.mjs",
36
+ "test:coverage": "npm run test -- --coverage",
37
+ "test:start-node-server": "node ./scripts/certificate/start_node_server.mjs",
38
+ "ca:install": "node ./scripts/certificate/install_ca.mjs",
39
+ "ca:log-trust": "node ./scripts/certificate/log_root_certificate_trust.mjs",
40
+ "ca:trust": "node ./scripts/certificate/trust_root_certificate.mjs",
41
+ "ca:untrust": "node ./scripts/certificate/untrust_root_certificate.mjs",
42
+ "ca:uninstall": "node ./scripts/certificate/uninstall_certificate_authority.mjs",
43
+ "hosts:add-localhost-mappings": "node ./scripts/hosts/add_localhost_mappings.mjs",
44
+ "hosts:remove-localhost-mappings": "node ./scripts/hosts/remove_localhost_mappings.mjs",
45
+ "hosts:verify-localhost-mappings": "node ./scripts/hosts/verify_localhost_mappings.mjs",
46
+ "hosts:ensure-localhost-mappings": "node ./scripts/hosts/ensure_localhost_mappings.mjs",
46
47
  "prettier": "prettier --write .",
47
48
  "playwright:install": "npx playwright install-deps && npx playwright install"
48
49
  },
@@ -35,6 +35,8 @@ export const executeTrustQueryOnChrome = ({
35
35
 
36
36
  browserName: "chrome",
37
37
  browserPaths: ["/usr/bin/google-chrome"],
38
+ // chromium seems to use its own store and not ".pki/nssdb" anymore
39
+ // as explained in https://chromium.googlesource.com/chromium/src/+/main/net/data/ssl/chrome_root_store/faq.md
38
40
  browserNSSDBDirectoryUrls: [
39
41
  new URL(".pki/nssdb", assertAndNormalizeDirectoryUrl(process.env.HOME)),
40
42
  new URL(
@@ -45,6 +45,10 @@ export const executeTrustQueryOnFirefox = ({
45
45
  ".mozilla/firefox/",
46
46
  assertAndNormalizeDirectoryUrl(process.env.HOME),
47
47
  ),
48
+ new URL(
49
+ "/.mozilla/firefox-trunk/",
50
+ assertAndNormalizeDirectoryUrl(process.env.HOME),
51
+ ),
48
52
  new URL(
49
53
  "/snap/firefox/common/.mozilla/firefox/",
50
54
  assertAndNormalizeDirectoryUrl(process.env.HOME),
@@ -1,3 +1,5 @@
1
+ // https://github.com/FiloSottile/mkcert/issues/447
2
+
1
3
  import { UNICODE } from "@jsenv/log"
2
4
 
3
5
  import { memoize } from "../memoize.js"