@k03mad/request 7.23.2 → 7.24.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.
@@ -12,7 +12,7 @@ jobs:
12
12
  lint:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v5
15
+ - uses: actions/checkout@v6
16
16
  - uses: actions/setup-node@v6
17
17
  with:
18
18
  node-version-file: '.nvmrc'
@@ -10,7 +10,7 @@ jobs:
10
10
  environment: npm
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v5
13
+ - uses: actions/checkout@v6
14
14
  with:
15
15
  fetch-depth: 0
16
16
 
@@ -106,7 +106,7 @@ export const request = (url, opts = {}, params = {}) => {
106
106
  * @param {number} [params.rps]
107
107
  * @returns {Promise<import('got').Response>}
108
108
  */
109
- export const requestCache = (url, opts = {}, {cacheBy, expire = 43_200, queueBy, ...params} = {}) => {
109
+ export const requestCache = (url, opts = {}, {cacheBy, expire = 3600, queueBy, ...params} = {}) => {
110
110
  const queue = getQueue(queueBy || new URL(url).host, params);
111
111
 
112
112
  return queue.add(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/request",
3
- "version": "7.23.2",
3
+ "version": "7.24.0",
4
4
  "description": "Request library",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"
@@ -24,7 +24,7 @@
24
24
  "strip-ansi": "7.1.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@k03mad/eslint-config": "29.14.0",
27
+ "@k03mad/eslint-config": "29.14.1",
28
28
  "eslint": "9.39.1",
29
29
  "husky": "9.1.7"
30
30
  },