Socket
Socket
Sign inDemoInstall

@octokit/endpoint

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/endpoint - npm Package Compare versions

Comparing version 6.0.5 to 6.0.6

12

dist-node/index.js

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

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var isPlainObject = _interopDefault(require('is-plain-object'));
var isPlainObject = require('is-plain-object');
var universalUserAgent = require('universal-user-agent');

@@ -25,3 +23,3 @@

Object.keys(options).forEach(key => {
if (isPlainObject(options[key])) {
if (isPlainObject.isPlainObject(options[key])) {
if (!(key in defaults)) Object.assign(result, {

@@ -289,5 +287,5 @@ [key]: options[key]

const remainingParameters = omit(parameters, omittedParameters);
const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
if (!isBinaryRequset) {
if (!isBinaryRequest) {
if (options.mediaType.format) {

@@ -361,3 +359,3 @@ // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw

const VERSION = "6.0.5";
const VERSION = "6.0.6";

@@ -364,0 +362,0 @@ const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.

@@ -30,4 +30,4 @@ import { addQueryParameters } from "./util/add-query-parameters";

const remainingParameters = omit(parameters, omittedParameters);
const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
if (!isBinaryRequset) {
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
if (!isBinaryRequest) {
if (options.mediaType.format) {

@@ -34,0 +34,0 @@ // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw

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

import isPlainObject from "is-plain-object";
import { isPlainObject } from "is-plain-object";
export function mergeDeep(defaults, options) {

@@ -3,0 +3,0 @@ const result = Object.assign({}, defaults);

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

export const VERSION = "6.0.5";
export const VERSION = "6.0.6";

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

export declare const VERSION = "6.0.5";
export declare const VERSION = "6.0.6";

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

import isPlainObject from 'is-plain-object';
import { isPlainObject } from 'is-plain-object';
import { getUserAgent } from 'universal-user-agent';

@@ -280,4 +280,4 @@

const remainingParameters = omit(parameters, omittedParameters);
const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
if (!isBinaryRequset) {
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
if (!isBinaryRequest) {
if (options.mediaType.format) {

@@ -349,3 +349,3 @@ // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw

const VERSION = "6.0.5";
const VERSION = "6.0.6";

@@ -352,0 +352,0 @@ const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;

{
"name": "@octokit/endpoint",
"description": "Turns REST API endpoints into generic request options",
"version": "6.0.5",
"version": "6.0.6",
"license": "MIT",

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

"@octokit/types": "^5.0.0",
"is-plain-object": "^4.0.0",
"is-plain-object": "^5.0.0",
"universal-user-agent": "^6.0.0"

@@ -39,7 +39,7 @@ },

"jest": "^26.0.1",
"prettier": "2.0.5",
"prettier": "2.1.1",
"semantic-release": "^17.0.0",
"semantic-release-plugin-update-version-in-files": "^1.0.0",
"ts-jest": "^26.0.0",
"typescript": "^3.4.5"
"typescript": "^4.0.2"
},

@@ -46,0 +46,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