@k03mad/request 14.0.0 → 14.0.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/.editorconfig CHANGED
@@ -8,8 +8,5 @@ indent_style = space
8
8
  insert_final_newline = true
9
9
  trim_trailing_whitespace = true
10
10
 
11
- [*.json]
12
- indent_size = 2
13
-
14
- [*.{yml,yaml}]
11
+ [*.{json,yml,yaml}]
15
12
  indent_size = 2
@@ -5,10 +5,10 @@ updates:
5
5
  schedule:
6
6
  interval: monthly
7
7
  assignees:
8
- - "k03mad"
8
+ - 'k03mad'
9
9
  - package-ecosystem: github-actions
10
10
  directory: /
11
11
  schedule:
12
12
  interval: monthly
13
13
  assignees:
14
- - "k03mad"
14
+ - 'k03mad'
package/.oxfmtrc.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "./node_modules/oxfmt/configuration_schema.json",
3
+ "ignorePatterns": ["node_modules/**"],
4
+ "singleQuote": true,
5
+ "arrowParens": "avoid",
6
+ "bracketSpacing": false,
7
+ "quoteProps": "consistent",
8
+ "experimentalSortImports": {
9
+ "groups": [
10
+ ["builtin"],
11
+ ["external", "type-external"],
12
+ ["internal", "type-internal"],
13
+ ["parent", "type-parent"],
14
+ ["sibling", "type-sibling"],
15
+ ["index", "type-index"]
16
+ ]
17
+ }
18
+ }
package/.oxlintrc.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "extends": ["./node_modules/@k03mad/oxlint-config/.oxlintrc.json"],
4
+ "env": {
5
+ "node": true
6
+ }
7
+ }
@@ -1,5 +1,3 @@
1
1
  {
2
- "cSpell.words": [
3
- "eslintcache"
4
- ]
2
+ "cSpell.words": ["eslintcache", "oxfmt", "oxlint", "oxlintrc"]
5
3
  }
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 ((/^[12]/).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 ((/^[45]/).test(statusCodeStringify)) {
49
+ } else if (/^[45]/.test(statusCodeStringify)) {
50
50
  bgColor = bgRed;
51
51
  }
52
52
 
package/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "@k03mad/request",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "Request library",
5
+ "license": "MIT",
5
6
  "maintainers": [
6
7
  "Kirill Molchanov <k03.mad@gmail.com"
7
8
  ],
8
- "main": "app/index.js",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/k03mad/request.git"
12
12
  },
13
- "license": "MIT",
14
13
  "type": "module",
15
- "engines": {
16
- "node": ">=24"
14
+ "main": "app/index.js",
15
+ "scripts": {
16
+ "lint": "oxlint --report-unused-disable-directives && oxfmt --check",
17
+ "prepare": "husky || true"
17
18
  },
18
19
  "dependencies": {
19
20
  "chalk": "5.6.2",
@@ -24,12 +25,12 @@
24
25
  "strip-ansi": "7.1.2"
25
26
  },
26
27
  "devDependencies": {
27
- "@k03mad/eslint-config": "34.1.2",
28
- "eslint": "10.0.0",
29
- "husky": "9.1.7"
28
+ "@k03mad/oxlint-config": "0.0.8",
29
+ "husky": "9.1.7",
30
+ "oxfmt": "0.34.0",
31
+ "oxlint": "1.49.0"
30
32
  },
31
- "scripts": {
32
- "lint": "eslint ./ --cache",
33
- "prepare": "husky || true"
33
+ "engines": {
34
+ "node": ">=24"
34
35
  }
35
36
  }
package/eslint.config.js DELETED
@@ -1 +0,0 @@
1
- export {default} from '@k03mad/eslint-config';