@abp/jquery
Advanced tools
Comparing version 4.2.2 to 4.3.0-rc.1
{ | ||
"version": "4.2.2", | ||
"version": "4.3.0-rc.1", | ||
"name": "@abp/jquery", | ||
@@ -8,3 +8,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@abp/core": "~4.2.2", | ||
"@abp/core": "~4.3.0-rc.1", | ||
"jquery": "~3.5.1" | ||
@@ -11,0 +11,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
var abp = abp || {}; | ||
var abp = abp || {}; | ||
(function($) { | ||
@@ -102,4 +102,5 @@ | ||
return $.Deferred(function ($dfd) { | ||
$.ajax(options) | ||
var xhr = null; | ||
var promise = $.Deferred(function ($dfd) { | ||
xhr = $.ajax(options) | ||
.done(function (data, textStatus, jqXHR) { | ||
@@ -109,2 +110,6 @@ $dfd.resolve(data); | ||
}).fail(function (jqXHR) { | ||
if(jqXHR.status === 0 || jqXHR.statusText === 'abort') { | ||
//ajax request is abort, ignore error handle. | ||
return; | ||
} | ||
if (jqXHR.getResponseHeader('_AbpErrorFormat') === 'true') { | ||
@@ -116,3 +121,7 @@ abp.ajax.handleAbpErrorResponse(jqXHR, userOptions, $dfd); | ||
}); | ||
}); | ||
}).promise(); | ||
promise['jqXHR'] = xhr; | ||
return promise; | ||
}; | ||
@@ -119,0 +128,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13203
334
2
+ Added@abp/core@4.3.3(transitive)
- Removed@abp/core@4.2.2(transitive)
Updated@abp/core@~4.3.0-rc.1