Socket
Socket
Sign inDemoInstall

gaxios

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gaxios - npm Package Compare versions

Comparing version 1.0.7 to 1.1.0

1

build/src/common.d.ts

@@ -24,2 +24,3 @@ /// <reference types="node" />

url?: string;
baseUrl?: string;
method?: 'GET' | 'HEAD' | 'POST' | 'DELETE' | 'PUT' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';

@@ -26,0 +27,0 @@ headers?: {

3

build/src/gaxios.d.ts

@@ -20,4 +20,3 @@ import { GaxiosOptions, GaxiosPromise } from './common';

/**
* Validate the options, and massage them to match the
* fetch format.
* Validate the options, and massage them to match the fetch format.
* @param opts The original options passed from the client.

@@ -24,0 +23,0 @@ */

@@ -105,4 +105,3 @@ "use strict";

/**
* Validate the options, and massage them to match the
* fetch format.
* Validate the options, and massage them to match the fetch format.
* @param opts The original options passed from the client.

@@ -115,2 +114,5 @@ */

}
if (opts.baseUrl) {
opts.url = (new url_1.URL(opts.url, opts.baseUrl)).toString();
}
opts.headers = opts.headers || {};

@@ -117,0 +119,0 @@ if (opts.data) {

{
"name": "gaxios",
"version": "1.0.7",
"version": "1.1.0",
"description": "A simple common HTTP client specifically for Google APIs and services.",

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

@@ -6,2 +6,3 @@ # gaxios

[![codecov](https://codecov.io/gh/JustinBeckwith/gaxios/branch/master/graph/badge.svg)](https://codecov.io/gh/JustinBeckwith/gaxios)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

@@ -8,0 +9,0 @@ > An HTTP request client that provides an `axios` like interfance over top of `node-fetch`. Only really useful if you're trying to migrate from axios to the fetch.

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