@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 +1 -4
- package/.github/dependabot.yml +2 -2
- package/.oxfmtrc.json +18 -0
- package/.oxlintrc.json +7 -0
- package/.vscode/settings.json +1 -3
- package/app/lib/curl.js +2 -2
- package/package.json +12 -11
- package/eslint.config.js +0 -1
package/.editorconfig
CHANGED
package/.github/dependabot.yml
CHANGED
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
package/.vscode/settings.json
CHANGED
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 (
|
|
45
|
+
if (/^[12]/.test(statusCodeStringify)) {
|
|
46
46
|
bgColor = bgGreen;
|
|
47
47
|
} else if (statusCodeStringify.startsWith('3')) {
|
|
48
48
|
bgColor = bgYellow;
|
|
49
|
-
} else if (
|
|
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.
|
|
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
|
-
"
|
|
16
|
-
|
|
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/
|
|
28
|
-
"
|
|
29
|
-
"
|
|
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
|
-
"
|
|
32
|
-
"
|
|
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';
|