@octokit/core
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -10,3 +10,3 @@ 'use strict'; | ||
const VERSION = "1.3.2"; | ||
const VERSION = "1.4.0"; | ||
@@ -51,2 +51,6 @@ function withAuthorizationPrefix(authorization) { | ||
if (options.timeZone) { | ||
requestDefaults.headers["time-zone"] = options.timeZone; | ||
} | ||
if (options.auth) { | ||
@@ -53,0 +57,0 @@ if (typeof options.auth === "string") { |
@@ -34,2 +34,5 @@ import { getUserAgent } from "universal-user-agent"; | ||
} | ||
if (options.timeZone) { | ||
requestDefaults.headers["time-zone"] = options.timeZone; | ||
} | ||
if (options.auth) { | ||
@@ -36,0 +39,0 @@ if (typeof options.auth === "string") { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "1.3.2"; | ||
export const VERSION = "1.4.0"; |
@@ -8,2 +8,3 @@ /// <reference types="node" /> | ||
request?: OctokitRequestOptions; | ||
timeZone?: string; | ||
[option: string]: any; | ||
@@ -10,0 +11,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "1.3.2"; | ||
export declare const VERSION = "1.4.0"; |
@@ -6,3 +6,3 @@ import { getUserAgent } from 'universal-user-agent'; | ||
const VERSION = "1.3.2"; | ||
const VERSION = "1.4.0"; | ||
@@ -47,2 +47,5 @@ function withAuthorizationPrefix(authorization) { | ||
} | ||
if (options.timeZone) { | ||
requestDefaults.headers["time-zone"] = options.timeZone; | ||
} | ||
if (options.auth) { | ||
@@ -49,0 +52,0 @@ if (typeof options.auth === "string") { |
{ | ||
"name": "@octokit/core", | ||
"description": "Extendable client for GitHub's REST & GraphQL APIs", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"license": "MIT", | ||
@@ -29,5 +29,5 @@ "files": [ | ||
"@pika/pack": "^0.5.0", | ||
"@pika/plugin-build-node": "^0.6.0", | ||
"@pika/plugin-build-web": "^0.6.0", | ||
"@pika/plugin-ts-standard-pkg": "^0.6.0", | ||
"@pika/plugin-build-node": "^0.7.0", | ||
"@pika/plugin-build-web": "^0.7.0", | ||
"@pika/plugin-ts-standard-pkg": "^0.7.0", | ||
"@types/fetch-mock": "^7.3.1", | ||
@@ -41,5 +41,5 @@ "@types/jest": "^24.0.17", | ||
"jest": "^24.8.0", | ||
"lolex": "^4.2.0", | ||
"lolex": "^5.0.0", | ||
"prettier": "^1.18.2", | ||
"proxy": "^0.2.4", | ||
"proxy": "^1.0.1", | ||
"semantic-release": "^15.13.21", | ||
@@ -56,3 +56,3 @@ "semantic-release-plugin-update-version-in-files": "^1.0.0", | ||
"main": "dist-node/index.js", | ||
"module": "dist-web/index.js" | ||
"deno": "dist-web/index.js" | ||
} |
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
43237
461