recker 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/dist/cli/handler.d.ts.map +1 -1
- package/dist/cli/handler.js +17 -3
- package/dist/cli/index.js +81 -2
- package/dist/cli/tui/shell.d.ts +26 -0
- package/dist/cli/tui/shell.d.ts.map +1 -1
- package/dist/cli/tui/shell.js +1226 -151
- package/dist/utils/whois.d.ts.map +1 -1
- package/dist/utils/whois.js +17 -2
- package/package.json +4 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whois.d.ts","sourceRoot":"","sources":["../../src/utils/whois.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,YAAY;IAK3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,KAAK,EAAE,MAAM,CAAC;IAKd,MAAM,EAAE,MAAM,CAAC;IAKf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;CACzC;
|
|
1
|
+
{"version":3,"file":"whois.d.ts","sourceRoot":"","sources":["../../src/utils/whois.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,YAAY;IAK3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,KAAK,EAAE,MAAM,CAAC;IAKd,MAAM,EAAE,MAAM,CAAC;IAKf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;CACzC;AAmND,wBAAsB,KAAK,CACzB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,WAAW,CAAC,CAmCtB;AAMD,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,OAAO,CAAC,CAoBlB"}
|
package/dist/utils/whois.js
CHANGED
|
@@ -120,11 +120,26 @@ async function queryWhoisServer(server, query, port, timeout) {
|
|
|
120
120
|
});
|
|
121
121
|
socket.on('error', (error) => {
|
|
122
122
|
clearTimeout(timeoutId);
|
|
123
|
-
|
|
123
|
+
const errorDetail = error.message || error.code || 'Connection failed';
|
|
124
|
+
const err = new ReckerError(`WHOIS query failed: ${errorDetail}`, undefined, undefined, [
|
|
124
125
|
'Verify the WHOIS server is reachable and correct.',
|
|
125
126
|
'Check network/firewall settings blocking WHOIS port 43.',
|
|
126
127
|
'Retry the query; transient network issues can occur.'
|
|
127
|
-
])
|
|
128
|
+
]);
|
|
129
|
+
err.code = error.code;
|
|
130
|
+
reject(err);
|
|
131
|
+
});
|
|
132
|
+
socket.on('close', (hadError) => {
|
|
133
|
+
clearTimeout(timeoutId);
|
|
134
|
+
if (hadError && !response) {
|
|
135
|
+
const err = new ReckerError('WHOIS connection closed unexpectedly', undefined, undefined, [
|
|
136
|
+
'The WHOIS server may be rate limiting requests.',
|
|
137
|
+
'Try again in a few seconds.',
|
|
138
|
+
'Some TLDs have unreliable WHOIS servers.'
|
|
139
|
+
]);
|
|
140
|
+
err.code = 'ECONNRESET';
|
|
141
|
+
reject(err);
|
|
142
|
+
}
|
|
128
143
|
});
|
|
129
144
|
});
|
|
130
145
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "recker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "AI & DevX focused HTTP client for Node.js 18+",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
116
|
"dependencies": {
|
|
117
|
+
"cheerio": "^1.0.0",
|
|
117
118
|
"commander": "^12.0.0",
|
|
118
119
|
"ora": "^8.0.0",
|
|
119
120
|
"undici": "^7.16.0",
|
|
@@ -121,7 +122,6 @@
|
|
|
121
122
|
},
|
|
122
123
|
"peerDependencies": {
|
|
123
124
|
"cardinal": "^2.1.0",
|
|
124
|
-
"cheerio": "^1.0.0",
|
|
125
125
|
"ioredis": "^5.0.0",
|
|
126
126
|
"ssh2-sftp-client": "^11.0.0"
|
|
127
127
|
},
|
|
@@ -129,9 +129,6 @@
|
|
|
129
129
|
"cardinal": {
|
|
130
130
|
"optional": true
|
|
131
131
|
},
|
|
132
|
-
"cheerio": {
|
|
133
|
-
"optional": true
|
|
134
|
-
},
|
|
135
132
|
"ioredis": {
|
|
136
133
|
"optional": true
|
|
137
134
|
},
|
|
@@ -149,7 +146,6 @@
|
|
|
149
146
|
"cardinal": "^2.1.1",
|
|
150
147
|
"cheerio": "^1.0.0",
|
|
151
148
|
"commander": "^14.0.0",
|
|
152
|
-
"docsify-cli": "^4.4.4",
|
|
153
149
|
"domhandler": "^5.0.3",
|
|
154
150
|
"got": "^14.6.5",
|
|
155
151
|
"husky": "^9.1.7",
|
|
@@ -158,6 +154,7 @@
|
|
|
158
154
|
"needle": "^3.3.1",
|
|
159
155
|
"ora": "^9.0.0",
|
|
160
156
|
"picocolors": "^1.1.1",
|
|
157
|
+
"serve": "^14.2.5",
|
|
161
158
|
"ssh2-sftp-client": "^12.0.1",
|
|
162
159
|
"superagent": "^10.2.3",
|
|
163
160
|
"tsx": "^4.20.6",
|
|
@@ -171,7 +168,7 @@
|
|
|
171
168
|
"test:coverage": "vitest run --coverage",
|
|
172
169
|
"bench": "tsx benchmark/index.ts",
|
|
173
170
|
"bench:all": "tsx benchmark/run-all.ts",
|
|
174
|
-
"docs": "
|
|
171
|
+
"docs": "serve docs -p 3000 -o",
|
|
175
172
|
"lint": "echo \"No linting configured for this project.\" && exit 0",
|
|
176
173
|
"cli": "tsx src/cli/index.ts"
|
|
177
174
|
}
|