New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@github1/ajax-service

Package Overview
Dependencies
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github1/ajax-service - npm Package Compare versions

Comparing version 0.4.60 to 0.4.61

3

es5/src/index.js

@@ -132,2 +132,3 @@ "use strict";

retry: function (e, attemptNumber) {
var _a;
e.retryAttemptNumber = attemptNumber;

@@ -137,3 +138,3 @@ retryState.attemptNumber = attemptNumber;

retryState.err = e;
return (e.status === 503 ||
return (((_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.status) === 503 ||
/network request failed/i.test(e.message) ||

@@ -140,0 +141,0 @@ /^request to.*failed, reason:/i.test(e.message) ||

@@ -16,5 +16,5 @@ "use strict";

function isAjaxServiceError(err) {
return err && 'response' in err;
return err && typeof err === 'object' && 'response' in err;
}
exports.isAjaxServiceError = isAjaxServiceError;
//# sourceMappingURL=types.js.map
{
"name": "@github1/ajax-service",
"private": false,
"version": "0.4.60",
"version": "0.4.61",
"description": "Library for invoking HTTP requests for JSON and AMF media types",

@@ -18,3 +18,3 @@ "main": "es5/index.js",

"devDependencies": {
"@github1/build-tools": "^0.4.60"
"@github1/build-tools": "^0.4.61"
},

@@ -21,0 +21,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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