teeny-request
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -0,1 +1,16 @@ | ||
/*! | ||
* Copyright 2018 Google LLC. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/// <reference types="node" /> | ||
@@ -5,3 +20,3 @@ import { Agent } from 'https'; | ||
export interface CoreOptions { | ||
method?: 'GET' | 'POST' | 'PUT' | 'HEAD' | 'OPTIONS'; | ||
method?: 'GET' | 'POST' | 'PUT' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE'; | ||
timeout?: number; | ||
@@ -47,3 +62,3 @@ gzip?: boolean; | ||
interface Headers { | ||
[index: string]: string; | ||
[index: string]: string | undefined; | ||
} | ||
@@ -50,0 +65,0 @@ declare function teenyRequest(reqOpts: Options): Request; |
"use strict"; | ||
/*! | ||
* Copyright 2018 Google LLC. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
var __extends = (this && this.__extends) || (function () { | ||
@@ -63,2 +78,3 @@ var extendStatics = function (d, b) { | ||
} | ||
// tslint:disable-next-line no-any | ||
options.headers = reqOpts.headers; | ||
@@ -65,0 +81,0 @@ var uri = (reqOpts.uri || |
# Changelog | ||
### [5.1.2](https://www.github.com/googleapis/teeny-request/compare/v5.1.1...v5.1.2) (2019-08-06) | ||
### Bug Fixes | ||
* **types:** expand method and header types ([#61](https://www.github.com/googleapis/teeny-request/issues/61)) ([c04d2f1](https://www.github.com/googleapis/teeny-request/commit/c04d2f1)) | ||
### [5.1.1](https://www.github.com/googleapis/teeny-request/compare/v5.1.0...v5.1.1) (2019-07-23) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "teeny-request", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"description": "Like request, but smaller.", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
36294
321
2