@lion/ajax
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "@lion/ajax", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Thin wrapper around fetch with support for interceptors.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -206,3 +206,4 @@ /* eslint-disable consistent-return */ | ||
async __parseBody(response) { | ||
let responseText = await response.text(); | ||
// clone the response, so the consumer can also read it out manually as well | ||
let responseText = await response.clone().text(); | ||
@@ -209,0 +210,0 @@ const { jsonPrefix } = this.__config; |
@@ -218,2 +218,4 @@ import { expect } from '@open-wc/testing'; | ||
expect(_e.body).to.equal('my response'); | ||
const bodyFromResponse = await _e.response.text(); | ||
expect(bodyFromResponse).to.equal('my response'); | ||
thrown = true; | ||
@@ -220,0 +222,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
182488
3094