@octokit/request
Advanced tools
Comparing version 5.4.7 to 5.4.8
@@ -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
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
50464
- Removedis-plain-object@4.1.1(transitive)
Updatedis-plain-object@^5.0.0