unprint 0.10.2 → 0.10.3
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 +1 -1
- package/src/app.js +4 -2
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const { JSDOM, VirtualConsole } = require('jsdom');
|
|
4
|
+
const http = require('http');
|
|
5
|
+
const https = require('https');
|
|
4
6
|
const axios = require('axios').default;
|
|
5
7
|
const moment = require('moment-timezone');
|
|
6
8
|
const merge = require('deepmerge');
|
|
@@ -791,8 +793,8 @@ async function request(url, body, customOptions = {}, method = 'GET') {
|
|
|
791
793
|
...options,
|
|
792
794
|
timeout: options.timeout,
|
|
793
795
|
signal: options.abortSignal,
|
|
794
|
-
httpAgent: options.
|
|
795
|
-
httpsAgent: options.
|
|
796
|
+
httpAgent: new http.Agent({ ...options.agent }),
|
|
797
|
+
httpsAgent: new https.Agent({ ...options.agent }),
|
|
796
798
|
});
|
|
797
799
|
|
|
798
800
|
if (!(res.status >= 200 && res.status < 300)) {
|