We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e9b30 commit f433729Copy full SHA for f433729
lib/staging/monkeyPatchTls.js
@@ -10,8 +10,9 @@
10
import fs from 'fs'
11
import tls from 'tls'
12
import path from 'path'
13
+import { fileURLToPath } from 'url'
14
-const __dirname = new URL('.', import.meta.url).pathname
15
+const __dirname = fileURLToPath(new URL('.', import.meta.url))
16
17
/**
18
* Monkey patches the TLS module to accept the Let’s Encrypt staging certificate.
0 commit comments