netlify 10.1.1 → 10.1.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.
package/README.md CHANGED
@@ -123,7 +123,7 @@ try {
123
123
  deploy_id: '4567',
124
124
  })
125
125
  // Calls may fail!
126
- } catch (error) {
126
+ } catch {
127
127
  // handle error
128
128
  }
129
129
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify",
3
3
  "description": "Netlify Node.js API client",
4
- "version": "10.1.1",
4
+ "version": "10.1.2",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "src/**/*.js",
@@ -10,6 +10,7 @@
10
10
  "exports": "./src/index.js",
11
11
  "main": "./src/index.js",
12
12
  "scripts": {
13
+ "prepare": "husky install node_modules/@netlify/eslint-config-node/.husky/",
13
14
  "prepublishOnly": "npm ci && npm test",
14
15
  "test": "run-s format test:dev",
15
16
  "format": "run-s format:check-fix:*",
@@ -21,19 +22,13 @@
21
22
  "format:check:prettier": "cross-env-shell prettier --check $npm_package_config_prettier",
22
23
  "format:fix:prettier": "cross-env-shell prettier --write $npm_package_config_prettier",
23
24
  "test:dev": "ava",
24
- "test:ci": "nyc -r lcovonly -r text -r json ava",
25
+ "test:ci": "c8 -r lcovonly -r text -r json ava",
25
26
  "update-snapshots": "ava -u"
26
27
  },
27
28
  "config": {
28
29
  "eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{src,tests,.github}/**/*.{cjs,mjs,js,md,html}\" \"*.{cjs,mjs,js,md,html}\" \".*.{cjs,mjs,js,md,html}\"",
29
30
  "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tests,.github}/**/*.{cjs,mjs,js,md,yml,json,html}\" \"*.{cjs,mjs,js,yml,json,html}\" \".*.{cjs,mjs,js,yml,json,html}\" \"!package-lock.json\" \"!CHANGELOG.md\""
30
31
  },
31
- "husky": {
32
- "hooks": {
33
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
34
- "pre-push": "npm run format"
35
- }
36
- },
37
32
  "license": "MIT",
38
33
  "author": "Netlify Inc.",
39
34
  "contributors": [
@@ -66,13 +61,13 @@
66
61
  "qs": "^6.9.6"
67
62
  },
68
63
  "devDependencies": {
69
- "@netlify/eslint-config-node": "^4.0.6",
64
+ "@netlify/eslint-config-node": "^4.1.3",
70
65
  "ava": "^3.0.0",
66
+ "c8": "^7.11.0",
71
67
  "from2-string": "^1.1.0",
72
- "husky": "^4.3.8",
68
+ "husky": "^7.0.4",
73
69
  "nock": "^13.0.0",
74
70
  "npm-run-all": "^4.1.5",
75
- "nyc": "^15.1.0",
76
71
  "uuid": "^8.3.2"
77
72
  },
78
73
  "engines": {
@@ -33,7 +33,7 @@ const parseJsonResponse = function (response, textResponse, responseType) {
33
33
 
34
34
  try {
35
35
  return JSON.parse(textResponse)
36
- } catch (error) {
36
+ } catch {
37
37
  throw new TextHTTPError(response, textResponse)
38
38
  }
39
39
  }