Comparing version 1.0.7 to 1.1.0
@@ -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?: { |
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43646
485
99
1