@jsenv/https-local 1.0.8 → 1.0.10

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": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "A programmatic way to generate locally trusted certificates",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -12,12 +12,12 @@
12
12
  "type": "git",
13
13
  "url": "https://github.com/jsenv/https-local"
14
14
  },
15
- "engines": {
16
- "node": ">=16.13.0"
17
- },
18
15
  "publishConfig": {
19
16
  "access": "public"
20
17
  },
18
+ "engines": {
19
+ "node": ">=16.13.0"
20
+ },
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
@@ -31,26 +31,26 @@
31
31
  "/main.js"
32
32
  ],
33
33
  "scripts": {
34
- "eslint": "npx eslint . --ext=.js,.mjs",
35
- "importmap": "node ./script/importmap/importmap.mjs",
36
- "performances": "node --expose-gc ./script/performance/generate_performance_report.mjs --log",
37
- "test": "node ./script/test/test.mjs",
34
+ "eslint": "npx eslint . --ext=.js,.mjs,.cjs",
35
+ "test": "node ./scripts/test/test.mjs",
36
+ "performance": "node --expose-gc ./scripts/performance/performance.mjs --local --log",
38
37
  "test-with-coverage": "npm run test -- --coverage",
39
- "start-node-server": "node ./script/certificate/start_node_server.mjs",
40
- "log-root-certificate-trust": "node ./script/certificate/log_root_certificate_trust.mjs",
41
- "trust-root-certificate": "node ./script/certificate/trust_root_certificate.mjs",
42
- "untrust-root-certificate": "node ./script/certificate/untrust_root_certificate.mjs",
43
- "uninstall-certificate-authority": "node ./script/certificate/uninstall_certificate_authority.mjs",
44
- "add-localhost-mappings": "node ./script/hosts/add_localhost_mappings.mjs",
45
- "remove-localhost-mappings": "node ./script/hosts/remove_localhost_mappings.mjs",
46
- "verify-localhost-mappings": "node ./script/hosts/verify_localhost_mappings.mjs",
47
- "ensure-localhost-mappings": "node ./script/hosts/ensure_localhost_mappings.mjs",
38
+ "start-node-server": "node ./scripts/certificate/start_node_server.mjs",
39
+ "log-root-certificate-trust": "node ./scripts/certificate/log_root_certificate_trust.mjs",
40
+ "trust-root-certificate": "node ./scripts/certificate/trust_root_certificate.mjs",
41
+ "untrust-root-certificate": "node ./scripts/certificate/untrust_root_certificate.mjs",
42
+ "uninstall-certificate-authority": "node ./scripts/certificate/uninstall_certificate_authority.mjs",
43
+ "add-localhost-mappings": "node ./scripts/hosts/add_localhost_mappings.mjs",
44
+ "remove-localhost-mappings": "node ./scripts/hosts/remove_localhost_mappings.mjs",
45
+ "verify-localhost-mappings": "node ./scripts/hosts/verify_localhost_mappings.mjs",
46
+ "ensure-localhost-mappings": "node ./scripts/hosts/ensure_localhost_mappings.mjs",
48
47
  "prettier": "prettier --write .",
49
48
  "playwright-install": "npx playwright install-deps && npx playwright install"
50
49
  },
51
50
  "dependencies": {
52
- "@jsenv/filesystem": "3.1.0",
53
- "@jsenv/log": "1.5.1",
51
+ "@jsenv/eslint-import-resolver": "0.1.7",
52
+ "@jsenv/filesystem": "3.2.2",
53
+ "@jsenv/log": "1.6.0",
54
54
  "@jsenv/logger": "4.0.1",
55
55
  "command-exists": "1.2.9",
56
56
  "node-forge": "1.3.1",
@@ -58,17 +58,17 @@
58
58
  "which": "2.0.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@jsenv/assert": "2.5.3",
62
- "@jsenv/core": "26.0.1",
61
+ "@jsenv/assert": "2.5.4",
62
+ "@jsenv/core": "27.0.0-alpha.61",
63
63
  "@jsenv/eslint-config": "16.0.9",
64
- "@jsenv/github-release-package": "1.3.5",
64
+ "@jsenv/github-release-package": "1.4.0",
65
65
  "@jsenv/importmap-eslint-resolver": "5.2.5",
66
66
  "@jsenv/importmap-node-module": "5.1.3",
67
- "@jsenv/package-publish": "1.7.2",
68
- "@jsenv/performance-impact": "2.2.8",
69
- "eslint": "8.12.0",
67
+ "@jsenv/package-publish": "1.7.4",
68
+ "@jsenv/performance-impact": "2.2.11",
69
+ "eslint": "8.16.0",
70
70
  "eslint-plugin-import": "2.26.0",
71
- "playwright": "1.20.2",
71
+ "playwright": "1.22.2",
72
72
  "prettier": "2.6.2"
73
73
  }
74
74
  }
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from "node:fs"
2
2
  import { execSync } from "node:child_process"
3
3
  import { resolveUrl, assertAndNormalizeDirectoryUrl } from "@jsenv/filesystem"
4
- import { UNICODE } from "@jsenv/log"
4
+ import { UNICODE, createTaskLog } from "@jsenv/log"
5
5
 
6
6
  import { executeTrustQueryOnBrowserNSSDB } from "../nssdb_browser.js"
7
7
  import {
@@ -57,14 +57,15 @@ export const executeTrustQueryOnFirefox = ({
57
57
  }
58
58
 
59
59
  logger.warn(
60
- `${UNICODE.WARNING} waiting for you to close firefox before resuming...`,
60
+ `${UNICODE.WARNING} firefox is running, it must be stopped before resuming...`,
61
61
  )
62
+ const closeFirefoxTask = createTaskLog("waiting for firefox to close")
62
63
  const next = async () => {
63
64
  await new Promise((resolve) => setTimeout(resolve, 50))
64
65
  if (isFirefoxOpen()) {
65
66
  await next()
66
67
  } else {
67
- logger.info(`${UNICODE.OK} firefox closed, resuming`)
68
+ closeFirefoxTask.done()
68
69
  // wait 50ms more to ensure firefox has time to cleanup
69
70
  // othrwise sometimes there is an SEC_ERROR_REUSED_ISSUER_AND_SERIAL error
70
71
  // because we updated nss database file while firefox is not fully closed