@certd/acme-client 1.27.0 → 1.27.2
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 +4 -4
- package/src/agents.js +8 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Simple and unopinionated ACME client",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "nmorsman",
|
|
6
|
-
"version": "1.27.
|
|
6
|
+
"version": "1.27.2",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"types": "types/index.d.ts",
|
|
9
9
|
"license": "MIT",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"jsdoc-to-markdown": "^8.0.1",
|
|
35
35
|
"mocha": "^10.6.0",
|
|
36
36
|
"nock": "^13.5.4",
|
|
37
|
+
"prettier": "^2.8.8",
|
|
37
38
|
"tsd": "^0.31.1",
|
|
38
|
-
"typescript": "^5.4.2"
|
|
39
|
-
"uuid": "^8.3.2"
|
|
39
|
+
"typescript": "^5.4.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build-docs": "jsdoc2md src/client.js > docs/client.md && jsdoc2md src/crypto/index.js > docs/crypto.md && jsdoc2md src/crypto/forge.js > docs/forge.md",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"bugs": {
|
|
61
61
|
"url": "https://github.com/publishlab/node-acme-client/issues"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "3a0178b2949083c770ed96a4122e4c0a5e0bcc11"
|
|
64
64
|
}
|
package/src/agents.js
CHANGED
|
@@ -50,8 +50,14 @@ class HttpError extends Error {
|
|
|
50
50
|
super(error.message);
|
|
51
51
|
|
|
52
52
|
this.message = error.message;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
const { message } = error;
|
|
54
|
+
if (message && typeof message === 'string') {
|
|
55
|
+
if (message.indexOf && message.indexOf('ssl3_get_record:wrong version number') >= 0) {
|
|
56
|
+
this.message = `${message}(http协议错误,服务端要求http协议,请检查是否使用了https请求)`;
|
|
57
|
+
}
|
|
58
|
+
else if (message.indexOf('getaddrinfo EAI_AGAIN')) {
|
|
59
|
+
this.message = `${message}(无法解析域名,请检查网络连接或dns配置)`;
|
|
60
|
+
}
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
this.name = error.name;
|