@tramvai/module-cache-warmup 6.64.1 → 6.66.1
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/lib/utils.es.js +1 -11
- package/lib/utils.js +1 -13
- package/package.json +8 -7
package/lib/utils.es.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import http from 'http';
|
|
2
|
-
import https from 'https';
|
|
3
1
|
import { format } from '@tinkoff/url';
|
|
4
2
|
import requestFactory from '@tinkoff/request-core';
|
|
5
3
|
import httpPlugin from '@tinkoff/request-plugin-protocol-http';
|
|
6
4
|
|
|
7
|
-
const
|
|
8
|
-
keepAlive: true,
|
|
9
|
-
scheduling: 'lifo',
|
|
10
|
-
};
|
|
11
|
-
const agent = {
|
|
12
|
-
http: new http.Agent(agentOptions),
|
|
13
|
-
https: new https.Agent(agentOptions),
|
|
14
|
-
};
|
|
15
|
-
const request = requestFactory([httpPlugin({ agent })]);
|
|
5
|
+
const request = requestFactory([httpPlugin()]);
|
|
16
6
|
async function queueRequests(options) {
|
|
17
7
|
const { maxSimultaneous = 2, makeRequest, requestsOptions } = options;
|
|
18
8
|
const req = async (option) => {
|
package/lib/utils.js
CHANGED
|
@@ -2,28 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var http = require('http');
|
|
6
|
-
var https = require('https');
|
|
7
5
|
var url = require('@tinkoff/url');
|
|
8
6
|
var requestFactory = require('@tinkoff/request-core');
|
|
9
7
|
var httpPlugin = require('@tinkoff/request-plugin-protocol-http');
|
|
10
8
|
|
|
11
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
10
|
|
|
13
|
-
var http__default = /*#__PURE__*/_interopDefaultLegacy(http);
|
|
14
|
-
var https__default = /*#__PURE__*/_interopDefaultLegacy(https);
|
|
15
11
|
var requestFactory__default = /*#__PURE__*/_interopDefaultLegacy(requestFactory);
|
|
16
12
|
var httpPlugin__default = /*#__PURE__*/_interopDefaultLegacy(httpPlugin);
|
|
17
13
|
|
|
18
|
-
const
|
|
19
|
-
keepAlive: true,
|
|
20
|
-
scheduling: 'lifo',
|
|
21
|
-
};
|
|
22
|
-
const agent = {
|
|
23
|
-
http: new http__default["default"].Agent(agentOptions),
|
|
24
|
-
https: new https__default["default"].Agent(agentOptions),
|
|
25
|
-
};
|
|
26
|
-
const request = requestFactory__default["default"]([httpPlugin__default["default"]({ agent })]);
|
|
14
|
+
const request = requestFactory__default["default"]([httpPlugin__default["default"]()]);
|
|
27
15
|
async function queueRequests(options) {
|
|
28
16
|
const { maxSimultaneous = 2, makeRequest, requestsOptions } = options;
|
|
29
17
|
const req = async (option) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-cache-warmup",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.66.1",
|
|
4
4
|
"description": "tramvai cache warmup module",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -20,14 +20,15 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@tinkoff/request-core": "^0.10.0",
|
|
23
|
-
"@tinkoff/request-plugin-protocol-http": "
|
|
24
|
-
"@tinkoff/url": "0.12.1"
|
|
23
|
+
"@tinkoff/request-plugin-protocol-http": "0.15.0",
|
|
24
|
+
"@tinkoff/url": "0.12.1",
|
|
25
|
+
"undici": "^7.16.0"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
27
|
-
"@tramvai/core": "6.
|
|
28
|
-
"@tramvai/module-common": "6.
|
|
29
|
-
"@tramvai/state": "6.
|
|
30
|
-
"@tramvai/tokens-http-client": "6.
|
|
28
|
+
"@tramvai/core": "6.66.1",
|
|
29
|
+
"@tramvai/module-common": "6.66.1",
|
|
30
|
+
"@tramvai/state": "6.66.1",
|
|
31
|
+
"@tramvai/tokens-http-client": "6.66.1",
|
|
31
32
|
"tslib": "^2.4.0"
|
|
32
33
|
},
|
|
33
34
|
"module": "lib/server.es.js",
|