@k03mad/request 1.2.2 → 1.3.2

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,6 +4,8 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - master
7
+ paths:
8
+ - '**.js'
7
9
 
8
10
  jobs:
9
11
  eslint:
@@ -20,11 +22,14 @@ jobs:
20
22
  node-version-file: '.nvmrc'
21
23
 
22
24
  - name: Install dependencies
23
- run: npm run setup
25
+ run: npm ci
24
26
 
25
27
  - name: Set credentials
26
28
  run: git config user.email "auto@action.autoaction_1" && git config user.name "Action"
27
29
 
30
+ - name: Git status
31
+ run: git status
32
+
28
33
  - name: Update version
29
34
  run: npm version patch
30
35
 
package/app/lib/curl.js CHANGED
@@ -80,7 +80,7 @@ export default (url, {
80
80
  if (res) {
81
81
  const message = JSON.stringify(res.body || res.message);
82
82
 
83
- if (message?.length < 1000) {
83
+ if (message?.length < 1500) {
84
84
  msg.push(`\n${dim(green(message))}`);
85
85
  }
86
86
  }
@@ -17,7 +17,7 @@ const prepareRequestOpts = (opts = {}) => {
17
17
 
18
18
  const preparedOpts = {...opts};
19
19
 
20
- if (!preparedOpts.dnsCache) {
20
+ if (preparedOpts.dnsCache === undefined) {
21
21
  preparedOpts.dnsCache = true;
22
22
  }
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/request",
3
- "version": "1.2.2",
3
+ "version": "1.3.2",
4
4
  "description": "Request library",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"
@@ -20,7 +20,7 @@
20
20
  "pretty-bytes": "6.1.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@k03mad/eslint-config": "12.0.4",
23
+ "@k03mad/eslint-config": "12.0.5",
24
24
  "@microsoft/eslint-formatter-sarif": "3.0.0",
25
25
  "eslint": "8.46.0",
26
26
  "eslint-plugin-import": "2.28.0",