ps-toolkit-ui 1.17.44 → 1.17.45
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/bundles/ps-toolkit-ui.umd.js +7 -3
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/request.class.js +6 -2
- package/fesm2015/ps-toolkit-ui.js +6 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/request.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1802,6 +1802,7 @@
|
|
|
1802
1802
|
return HelperClass;
|
|
1803
1803
|
}());
|
|
1804
1804
|
|
|
1805
|
+
exports.request = null;
|
|
1805
1806
|
var RequestClass = /** @class */ (function () {
|
|
1806
1807
|
function RequestClass(environment, l) {
|
|
1807
1808
|
if (environment === void 0) { environment = null; }
|
|
@@ -2152,14 +2153,17 @@
|
|
|
2152
2153
|
data: data,
|
|
2153
2154
|
headers: token == null ? {} : { Authorization: token }
|
|
2154
2155
|
};
|
|
2155
|
-
|
|
2156
|
-
|
|
2156
|
+
if (exports.request != null) {
|
|
2157
|
+
exports.request.abort();
|
|
2158
|
+
}
|
|
2159
|
+
exports.request = $$1.ajax(settings);
|
|
2160
|
+
exports.request.done(function (response) {
|
|
2157
2161
|
if (!_this.environment.production) {
|
|
2158
2162
|
console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #2f6054; color: white', response);
|
|
2159
2163
|
}
|
|
2160
2164
|
done(response);
|
|
2161
2165
|
});
|
|
2162
|
-
request.fail(function (response) {
|
|
2166
|
+
exports.request.fail(function (response) {
|
|
2163
2167
|
if (!_this.environment.production) {
|
|
2164
2168
|
console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #8c413a; color: white', response);
|
|
2165
2169
|
}
|