Socket
Socket
Sign inDemoInstall

teeny-request

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

teeny-request - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

19

build/src/index.d.ts

@@ -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 @@

2

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

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