Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

netlify

Package Overview
Dependencies
Maintainers
15
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify - npm Package Compare versions

Comparing version 10.1.2 to 11.0.0

8

package.json
{
"name": "netlify",
"description": "Netlify Node.js API client",
"version": "10.1.2",
"version": "11.0.0",
"type": "module",

@@ -58,9 +58,9 @@ "files": [

"micro-api-client": "^3.3.0",
"node-fetch": "^2.6.1",
"node-fetch": "^3.0.0",
"omit.js": "^2.0.2",
"p-wait-for": "^3.2.0",
"p-wait-for": "^4.0.0",
"qs": "^6.9.6"
},
"devDependencies": {
"@netlify/eslint-config-node": "^4.1.3",
"@netlify/eslint-config-node": "^5.1.4",
"ava": "^3.0.0",

@@ -67,0 +67,0 @@ "c8": "^7.11.0",

@@ -13,3 +13,3 @@ import { JSONHTTPError, TextHTTPError } from 'micro-api-client'

const ErrorType = responseType === 'json' ? JSONHTTPError : TextHTTPError
throw new ErrorType(response, parsedResponse)
throw addFallbackErrorMessage(new ErrorType(response, parsedResponse), textResponse)
}

@@ -38,9 +38,16 @@

} catch {
throw new TextHTTPError(response, textResponse)
throw addFallbackErrorMessage(new TextHTTPError(response, textResponse), textResponse)
}
}
const addFallbackErrorMessage = function (error, textResponse) {
error.message = error.message || textResponse
return error
}
export const getFetchError = function (error, url, opts) {
const data = omit.default(opts, ['Authorization'])
error.name = 'FetchError'
if (error.name !== 'FetchError') {
error.name = 'FetchError'
}
error.url = url

@@ -47,0 +54,0 @@ error.data = data

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc