Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lion/ajax

Package Overview
Dependencies
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lion/ajax - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"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

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