@k03mad/request 6.0.4 → 6.2.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.
@@ -4,7 +4,11 @@ updates:
4
4
  directory: /
5
5
  schedule:
6
6
  interval: monthly
7
+ assignees:
8
+ - "k03mad"
7
9
  - package-ecosystem: github-actions
8
10
  directory: /
9
11
  schedule:
10
12
  interval: monthly
13
+ assignees:
14
+ - "k03mad"
@@ -14,7 +14,7 @@ jobs:
14
14
  with:
15
15
  fetch-depth: 0
16
16
 
17
- - uses: tj-actions/changed-files@v44
17
+ - uses: tj-actions/changed-files@v45
18
18
  id: changed-files
19
19
  with:
20
20
  files: package.json
@@ -1,3 +1,5 @@
1
1
  {
2
- "eslint.experimental.useFlatConfig": true
2
+ "cSpell.words": [
3
+ "eslintcache"
4
+ ]
3
5
  }
package/app/lib/curl.js CHANGED
@@ -42,11 +42,11 @@ export const getCurl = (res, {body, form, json}, {skipResponse} = {}) => {
42
42
  const statusCodeStringify = String(response.statusCode);
43
43
  let bgColor = bgWhite;
44
44
 
45
- if ((/^(1|2)/).test(statusCodeStringify)) {
45
+ if ((/^[12]/).test(statusCodeStringify)) {
46
46
  bgColor = bgGreen;
47
47
  } else if (statusCodeStringify.startsWith('3')) {
48
48
  bgColor = bgYellow;
49
- } else if ((/^(4|5)/).test(statusCodeStringify)) {
49
+ } else if ((/^[45]/).test(statusCodeStringify)) {
50
50
  bgColor = bgRed;
51
51
  }
52
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/request",
3
- "version": "6.0.4",
3
+ "version": "6.2.0",
4
4
  "description": "Request library",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"
@@ -24,9 +24,9 @@
24
24
  "strip-ansi": "7.1.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@k03mad/eslint-config": "22.5.0",
27
+ "@k03mad/eslint-config": "23.2.0",
28
28
  "eslint": "8.57.0",
29
- "husky": "9.1.4"
29
+ "husky": "9.1.5"
30
30
  },
31
31
  "scripts": {
32
32
  "lint": "npm run lint:eslint",