Comparing version 10.1.1 to 10.1.2
{ | ||
"name": "netlify", | ||
"description": "Netlify Node.js API client", | ||
"version": "10.1.1", | ||
"version": "10.1.2", | ||
"type": "module", | ||
@@ -13,2 +13,3 @@ "files": [ | ||
"scripts": { | ||
"prepare": "husky install node_modules/@netlify/eslint-config-node/.husky/", | ||
"prepublishOnly": "npm ci && npm test", | ||
@@ -25,3 +26,3 @@ "test": "run-s format test:dev", | ||
"test:dev": "ava", | ||
"test:ci": "nyc -r lcovonly -r text -r json ava", | ||
"test:ci": "c8 -r lcovonly -r text -r json ava", | ||
"update-snapshots": "ava -u" | ||
@@ -33,8 +34,2 @@ }, | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
"pre-push": "npm run format" | ||
} | ||
}, | ||
"license": "MIT", | ||
@@ -72,9 +67,9 @@ "author": "Netlify Inc.", | ||
"devDependencies": { | ||
"@netlify/eslint-config-node": "^4.0.6", | ||
"@netlify/eslint-config-node": "^4.1.3", | ||
"ava": "^3.0.0", | ||
"c8": "^7.11.0", | ||
"from2-string": "^1.1.0", | ||
"husky": "^4.3.8", | ||
"husky": "^7.0.4", | ||
"nock": "^13.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^15.1.0", | ||
"uuid": "^8.3.2" | ||
@@ -81,0 +76,0 @@ }, |
@@ -126,3 +126,3 @@ ![netlify/js-client](js-client.png) | ||
// Calls may fail! | ||
} catch (error) { | ||
} catch { | ||
// handle error | ||
@@ -129,0 +129,0 @@ } |
@@ -36,3 +36,3 @@ import { JSONHTTPError, TextHTTPError } from 'micro-api-client' | ||
return JSON.parse(textResponse) | ||
} catch (error) { | ||
} catch { | ||
throw new TextHTTPError(response, textResponse) | ||
@@ -39,0 +39,0 @@ } |
20709