cloudcms-server 3.2.287 → 3.2.288

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.
Files changed (2) hide show
  1. package/index.js +7 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -48,6 +48,13 @@ if (process.env.DEFAULT_HTTP_TIMEOUT_MS)
48
48
  }
49
49
  }
50
50
 
51
+ // dns fix for Node 17 +
52
+ // see: https://nodejs.org/api/dns.html#dnssetdefaultresultorderorder
53
+ var dns = require("dns");
54
+ if (typeof(dns.setDefaultResultOrder) !== "undefined") {
55
+ dns.setDefaultResultOrder("ipv4first");
56
+ }
57
+
51
58
  // default agents
52
59
  var HttpKeepAliveAgent = require('agentkeepalive');
53
60
  var HttpsKeepAliveAgent = require('agentkeepalive').HttpsAgent;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "cloudcms-server",
8
8
  "description": "Cloud CMS Application Server Module",
9
- "version": "3.2.287",
9
+ "version": "3.2.288",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"