initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
30
node_modules/rxjs/dist/cjs/internal/ajax/getXHRResponse.js
generated
vendored
Normal file
30
node_modules/rxjs/dist/cjs/internal/ajax/getXHRResponse.js
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getXHRResponse = void 0;
|
||||
function getXHRResponse(xhr) {
|
||||
switch (xhr.responseType) {
|
||||
case 'json': {
|
||||
if ('response' in xhr) {
|
||||
return xhr.response;
|
||||
}
|
||||
else {
|
||||
var ieXHR = xhr;
|
||||
return JSON.parse(ieXHR.responseText);
|
||||
}
|
||||
}
|
||||
case 'document':
|
||||
return xhr.responseXML;
|
||||
case 'text':
|
||||
default: {
|
||||
if ('response' in xhr) {
|
||||
return xhr.response;
|
||||
}
|
||||
else {
|
||||
var ieXHR = xhr;
|
||||
return ieXHR.responseText;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.getXHRResponse = getXHRResponse;
|
||||
//# sourceMappingURL=getXHRResponse.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue