egg 3.21.0 → 3.23.0

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.
@@ -1,7 +1,7 @@
1
- const dns = require('dns').promises;
1
+ const dns = require('node:dns').promises;
2
2
  const LRU = require('ylru');
3
+ const { assign } = require('utility');
3
4
  const HttpClient = require('./httpclient');
4
- const utility = require('utility');
5
5
  const utils = require('./utils');
6
6
 
7
7
  const IP_REGEX = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
@@ -84,7 +84,7 @@ module.exports = DNSCacheHttpClient;
84
84
 
85
85
  function formatDnsLookupUrl(host, url, address) {
86
86
  if (typeof url === 'string') return url.replace(host, address);
87
- const urlObj = utility.assign({}, url);
87
+ const urlObj = assign({}, url);
88
88
  urlObj.hostname = urlObj.hostname.replace(host, address);
89
89
  if (urlObj.host) {
90
90
  urlObj.host = urlObj.host.replace(host, address);
package/lib/egg.js CHANGED
@@ -304,6 +304,14 @@ class EggApplication extends EggCore {
304
304
  return this[HTTPCLIENT];
305
305
  }
306
306
 
307
+ /**
308
+ * @alias httpclient
309
+ * @member {HttpClient}
310
+ */
311
+ get httpClient() {
312
+ return this.httpclient;
313
+ }
314
+
307
315
  /**
308
316
  * All loggers contain logger, coreLogger and customLogger
309
317
  * @member {Object}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egg",
3
- "version": "3.21.0",
3
+ "version": "3.23.0",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "egg-cluster": "^2.0.0",
29
29
  "egg-cookies": "^2.6.1",
30
30
  "egg-core": "^5.4.0",
31
- "egg-development": "^2.7.0",
31
+ "egg-development": "^3.0.0",
32
32
  "egg-errors": "^2.3.1",
33
33
  "egg-i18n": "^2.1.1",
34
34
  "egg-jsonp": "^2.0.0",
@@ -45,7 +45,7 @@
45
45
  "extend2": "^1.0.1",
46
46
  "graceful": "^1.1.0",
47
47
  "humanize-ms": "^1.2.1",
48
- "is-type-of": "^1.2.1",
48
+ "is-type-of": "^2.1.0",
49
49
  "koa-bodyparser": "^4.4.1",
50
50
  "koa-is-json": "^1.0.0",
51
51
  "koa-override": "^3.0.0",
@@ -55,7 +55,7 @@
55
55
  "sendmessage": "^2.0.0",
56
56
  "urllib": "^2.33.0",
57
57
  "urllib-next": "npm:urllib@^3.22.4",
58
- "utility": "^1.17.0",
58
+ "utility": "^2.1.0",
59
59
  "ylru": "^1.3.2"
60
60
  },
61
61
  "devDependencies": {