Socket
Socket
Sign inDemoInstall

@octokit/request

Package Overview
Dependencies
Maintainers
4
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/request - npm Package Compare versions

Comparing version 8.0.2 to 8.0.3

6

dist-node/index.js

@@ -30,3 +30,3 @@ "use strict";

// pkg/dist-src/version.js
var VERSION = "8.0.2";
var VERSION = "8.0.3";

@@ -44,3 +44,3 @@ // pkg/dist-src/fetch-wrapper.js

function fetchWrapper(requestOptions) {
var _a;
var _a, _b;
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;

@@ -66,3 +66,3 @@ if ((0, import_is_plain_object.isPlainObject)(requestOptions.body) || Array.isArray(requestOptions.body)) {

headers: requestOptions.headers,
signal: requestOptions.signal,
signal: (_b = requestOptions.request) == null ? void 0 : _b.signal,
// duplex must be set if request.body is ReadableStream or Async Iterables.

@@ -69,0 +69,0 @@ // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.

@@ -25,3 +25,3 @@ import { isPlainObject } from "is-plain-object";

headers: requestOptions.headers,
signal: requestOptions.signal,
signal: requestOptions.request?.signal,
// duplex must be set if request.body is ReadableStream or Async Iterables.

@@ -28,0 +28,0 @@ // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.

@@ -1,4 +0,4 @@

const VERSION = "8.0.2";
const VERSION = "8.0.3";
export {
VERSION
};

@@ -1,1 +0,1 @@

export declare const VERSION = "8.0.2";
export declare const VERSION = "8.0.3";

@@ -6,3 +6,3 @@ // pkg/dist-src/index.js

// pkg/dist-src/version.js
var VERSION = "8.0.2";
var VERSION = "8.0.3";

@@ -40,3 +40,3 @@ // pkg/dist-src/fetch-wrapper.js

headers: requestOptions.headers,
signal: requestOptions.signal,
signal: requestOptions.request?.signal,
// duplex must be set if request.body is ReadableStream or Async Iterables.

@@ -43,0 +43,0 @@ // See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.

{
"name": "@octokit/request",
"version": "8.0.2",
"version": "8.0.3",
"publishConfig": {

@@ -25,3 +25,3 @@ "access": "public"

"devDependencies": {
"@octokit/auth-app": "^5.0.3",
"@octokit/auth-app": "^6.0.0",
"@octokit/tsconfig": "^2.0.0",

@@ -28,0 +28,0 @@ "@types/fetch-mock": "^7.2.4",

@@ -19,15 +19,16 @@ # request.js

- [Features](#features)
- [Usage](#usage)
- [REST API example](#rest-api-example)
- [GraphQL example](#graphql-example)
- [Alternative: pass `method` & `url` as part of options](#alternative-pass-method--url-as-part-of-options)
- [Authentication](#authentication)
- [request()](#request)
- [`request.defaults()`](#requestdefaults)
- [`request.endpoint`](#requestendpoint)
- [Special cases](#special-cases)
- [The `data` parameter – set request body directly](#the-data-parameter-%E2%80%93-set-request-body-directly)
- [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body)
- [LICENSE](#license)
- [request.js](#requestjs)
- [Features](#features)
- [Usage](#usage)
- [REST API example](#rest-api-example)
- [GraphQL example](#graphql-example)
- [Alternative: pass `method` \& `url` as part of options](#alternative-pass-method--url-as-part-of-options)
- [Authentication](#authentication)
- [request()](#request)
- [`request.defaults()`](#requestdefaults)
- [`request.endpoint`](#requestendpoint)
- [Special cases](#special-cases)
- [The `data` parameter – set request body directly](#the-data-parameter--set-request-body-directly)
- [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body)
- [LICENSE](#license)

@@ -60,3 +61,3 @@ <!-- tocstop -->

- `headers.accept`: `application/vnd.github.v3+json`
- `headers.agent`: `octokit-request.js/<current version> <OS information>`, e.g. `octokit-request.js/1.2.3 Node.js/10.15.0 (macOS Mojave; x64)`
- `headers['user-agent']`: `octokit-request.js/<current version> <OS information>`, e.g. `octokit-request.js/1.2.3 Node.js/10.15.0 (macOS Mojave; x64)`

@@ -63,0 +64,0 @@ 👌 Simple to test: mock requests by passing a custom fetch method.

Sorry, the diff of this file is not supported yet

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