Socket
Socket
Sign inDemoInstall

@octokit/request

Package Overview
Dependencies
Maintainers
3
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 6.0.2 to 6.1.0

6

dist-node/index.js

@@ -13,3 +13,3 @@ 'use strict';

const VERSION = "6.0.2";
const VERSION = "6.1.0";

@@ -30,3 +30,5 @@ function getBufferResponse(response) {

let url;
const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;
const fetch = requestOptions.request && requestOptions.request.fetch || globalThis.fetch ||
/* istanbul ignore next */
nodeFetch;
return fetch(requestOptions.url, Object.assign({

@@ -33,0 +35,0 @@ method: requestOptions.method,

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

let url;
const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;
const fetch = (requestOptions.request && requestOptions.request.fetch) ||
globalThis.fetch ||
/* istanbul ignore next */ nodeFetch;
return fetch(requestOptions.url, Object.assign({

@@ -19,0 +21,0 @@ method: requestOptions.method,

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

export const VERSION = "6.0.2";
export const VERSION = "6.1.0";

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

export declare const VERSION = "6.0.2";
export declare const VERSION = "6.1.0";

@@ -7,3 +7,3 @@ import { endpoint } from '@octokit/endpoint';

const VERSION = "6.0.2";
const VERSION = "6.1.0";

@@ -25,3 +25,5 @@ function getBufferResponse(response) {

let url;
const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;
const fetch = (requestOptions.request && requestOptions.request.fetch) ||
globalThis.fetch ||
/* istanbul ignore next */ nodeFetch;
return fetch(requestOptions.url, Object.assign({

@@ -28,0 +30,0 @@ method: requestOptions.method,

{
"name": "@octokit/request",
"description": "Send parameterized requests to GitHub's APIs with sensible defaults in browsers and Node",
"version": "6.0.2",
"version": "6.1.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

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