New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@idearium/fetch

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idearium/fetch - npm Package Compare versions

Comparing version 2.0.0-beta.1 to 2.0.2

14

CHANGELOG.md
# @idearium/fetch
## v2.0.0-beta.1
## v2.0.2
### Changed
- Re-release with updated version number.
## v2.0.1
### Changed
- Re-release with updated version number.
## v2.0.0
### Removed

@@ -6,0 +18,0 @@

2

package.json
{
"name": "@idearium/fetch",
"version": "2.0.0-beta.1",
"version": "2.0.2",
"description": "A package to make fetching trivial.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -48,2 +48,18 @@ 'use strict';

it('result contains the main response properties', async () => {
expect.assertions(6);
fetchMock.get(testUrl, {});
const response = await fetchApi(testUrl);
// https://developer.mozilla.org/en-US/docs/Web/API/Response#properties
expect(response).toHaveProperty('headers');
expect(response).toHaveProperty('ok');
expect(response).toHaveProperty('redirected');
expect(response).toHaveProperty('status');
expect(response).toHaveProperty('statusText');
expect(response).toHaveProperty('url');
});
it('automatically sets the content-type header', async () => {

@@ -50,0 +66,0 @@ expect.assertions(1);

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