@octokit/plugin-enterprise-compatibility
Advanced tools
Comparing version 1.2.12 to 1.3.0
@@ -7,3 +7,3 @@ 'use strict'; | ||
const VERSION = "1.2.12"; | ||
const VERSION = "1.3.0"; | ||
@@ -22,3 +22,3 @@ function enterpriseCompatibility(octokit) { | ||
if (!error.headers || !error.headers["x-github-enterprise-version"]) { | ||
if (!error.response || !error.response.headers["x-github-enterprise-version"]) { | ||
throw error; | ||
@@ -25,0 +25,0 @@ } |
@@ -15,3 +15,4 @@ import { RequestError } from "@octokit/request-error"; | ||
} | ||
if (!error.headers || !error.headers["x-github-enterprise-version"]) { | ||
if (!error.response || | ||
!error.response.headers["x-github-enterprise-version"]) { | ||
throw error; | ||
@@ -18,0 +19,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "1.2.12"; | ||
export const VERSION = "1.3.0"; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "1.2.12"; | ||
export declare const VERSION = "1.3.0"; |
import { RequestError } from '@octokit/request-error'; | ||
const VERSION = "1.2.12"; | ||
const VERSION = "1.3.0"; | ||
@@ -17,3 +17,4 @@ function enterpriseCompatibility(octokit) { | ||
} | ||
if (!error.headers || !error.headers["x-github-enterprise-version"]) { | ||
if (!error.response || | ||
!error.response.headers["x-github-enterprise-version"]) { | ||
throw error; | ||
@@ -20,0 +21,0 @@ } |
{ | ||
"name": "@octokit/plugin-enterprise-compatibility", | ||
"description": "Octokit plugin for improving GHE compatibility", | ||
"version": "1.2.12", | ||
"version": "1.3.0", | ||
"license": "MIT", | ||
@@ -22,3 +22,3 @@ "files": [ | ||
"dependencies": { | ||
"@octokit/request-error": "^2.0.4", | ||
"@octokit/request-error": "^2.1.0", | ||
"@octokit/types": "^6.0.3" | ||
@@ -25,0 +25,0 @@ }, |
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
14499
106