Socket
Socket
Sign inDemoInstall

@octokit/request

Package Overview
Dependencies
Maintainers
2
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 5.4.7 to 5.4.8

6

dist-node/index.js

@@ -9,7 +9,7 @@ 'use strict';

var universalUserAgent = require('universal-user-agent');
var isPlainObject = _interopDefault(require('is-plain-object'));
var isPlainObject = require('is-plain-object');
var nodeFetch = _interopDefault(require('node-fetch'));
var requestError = require('@octokit/request-error');
const VERSION = "5.4.7";
const VERSION = "5.4.8";

@@ -21,3 +21,3 @@ function getBufferResponse(response) {

function fetchWrapper(requestOptions) {
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
if (isPlainObject.isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
requestOptions.body = JSON.stringify(requestOptions.body);

@@ -24,0 +24,0 @@ }

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

import isPlainObject from "is-plain-object";
import { isPlainObject } from "is-plain-object";
import nodeFetch from "node-fetch";

@@ -3,0 +3,0 @@ import { RequestError } from "@octokit/request-error";

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

export const VERSION = "5.4.7";
export const VERSION = "5.4.8";

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

export declare const VERSION = "5.4.7";
export declare const VERSION = "5.4.8";
import { endpoint } from '@octokit/endpoint';
import { getUserAgent } from 'universal-user-agent';
import isPlainObject from 'is-plain-object';
import { isPlainObject } from 'is-plain-object';
import nodeFetch from 'node-fetch';
import { RequestError } from '@octokit/request-error';
const VERSION = "5.4.7";
const VERSION = "5.4.8";

@@ -9,0 +9,0 @@ function getBufferResponse(response) {

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

@@ -31,3 +31,3 @@ "files": [

"deprecation": "^2.0.0",
"is-plain-object": "^4.0.0",
"is-plain-object": "^5.0.0",
"node-fetch": "^2.3.0",

@@ -56,3 +56,3 @@ "once": "^1.4.0",

"ts-jest": "^26.1.0",
"typescript": "^3.9.5"
"typescript": "^4.0.2"
},

@@ -59,0 +59,0 @@ "publishConfig": {

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