Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

githubauthreq

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

githubauthreq - npm Package Compare versions

Comparing version 6.0.0 to 6.3.0-next.1627837855.a38a12fc4cf11195b5527a57ab9cc28acc0ced2a

2

compiled-types/index.d.ts

@@ -18,3 +18,3 @@ import type { StrictUnion } from 'simplytyped';

} | {
/** https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#about-the-github_token-secret */
/** https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret */
GITHUB_TOKEN: string;

@@ -21,0 +21,0 @@ }>;

@@ -102,6 +102,6 @@ /**

getSearchParams(credentials, url.searchParams);
if (props === null || props === void 0 ? void 0 : props.searchParams)
if (props?.searchParams)
props.searchParams.forEach((value, key) => url.searchParams.set(key, value));
// apply pathname via append, as otherwise urls like `https://bevry.me/api/github` will not work
if (props === null || props === void 0 ? void 0 : props.pathname)
if (props?.pathname)
url.pathname += props.pathname;

@@ -108,0 +108,0 @@ // return

# History
## v6.3.0 2021 July 30
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
## v6.2.0 2021 July 29
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
## v6.1.0 2021 July 28
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
## v6.0.0 2020 November 12

@@ -4,0 +16,0 @@

@@ -18,3 +18,3 @@ <!-- LICENSEFILE/ -->

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

@@ -21,0 +21,0 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

{
"name": "githubauthreq",
"version": "6.0.0",
"version": "6.3.0-next.1627837855.a38a12fc4cf11195b5527a57ab9cc28acc0ced2a",
"description": "Authorize GitHub API requests with the appropriate credentials and preferences.",

@@ -12,4 +12,2 @@ "homepage": "https://github.com/bevry/githubauthreq",

"es2019",
"esnext",
"export-default",
"github",

@@ -25,3 +23,3 @@ "module",

"list": [
"travisci",
"githubworkflow",
"npmversion",

@@ -43,2 +41,3 @@ "npmdownloads",

"config": {
"githubWorkflow": "bevry",
"githubSponsorsUsername": "balupton",

@@ -53,3 +52,2 @@ "buymeacoffeeUsername": "balupton",

"wishlistURL": "https://bevry.me/wishlist",
"travisTLD": "com",
"githubUsername": "bevry",

@@ -92,3 +90,3 @@ "githubRepository": "githubauthreq",

{
"description": "TypeScript compiled against ES2019 for web browsers with Import for modules",
"description": "TypeScript compiled against ES2020 for web browsers with Import for modules",
"directory": "edition-browsers",

@@ -107,18 +105,3 @@ "entry": "index.js",

{
"description": "TypeScript compiled against ESNext for Node.js 14 || 15 with Require for modules",
"directory": "edition-esnext",
"entry": "index.js",
"tags": [
"compiled",
"javascript",
"esnext",
"require"
],
"engines": {
"node": "14 || 15",
"browsers": false
}
},
{
"description": "TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 15 with Require for modules",
"description": "TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules",
"directory": "edition-es2019",

@@ -133,3 +116,3 @@ "entry": "index.js",

"engines": {
"node": "10 || 12 || 14 || 15",
"node": "10 || 12 || 14 || 16",
"browsers": false

@@ -139,3 +122,3 @@ }

{
"description": "TypeScript compiled against ES2019 for Node.js 12 || 14 || 15 with Import for modules",
"description": "TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules",
"directory": "edition-es2019-esm",

@@ -150,3 +133,3 @@ "entry": "index.js",

"engines": {
"node": "12 || 14 || 15",
"node": "12 || 14 || 16",
"browsers": false

@@ -158,8 +141,7 @@ }

"type": "module",
"main": "index.cjs",
"main": "edition-es2019/index.js",
"exports": {
"node": {
"import": "./edition-es2019-esm/index.js",
"default": "./index.cjs",
"require": "./edition-esnext/index.js"
"require": "./edition-es2019/index.js"
},

@@ -173,33 +155,31 @@ "browser": {

"dependencies": {
"editions": "^6.1.0",
"simplytyped": "^3.3.0"
},
"devDependencies": {
"@bevry/update-contributors": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^4.7.0",
"@typescript-eslint/parser": "^4.7.0",
"assert-helpers": "^8.1.0",
"cross-fetch": "^3.0.6",
"eslint": "^7.13.0",
"eslint-config-bevry": "^3.23.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"kava": "^5.13.0",
"make-deno-edition": "^1.2.0",
"prettier": "^2.1.2",
"projectz": "^2.17.0",
"surge": "^0.21.7",
"typedoc": "^0.19.2",
"typescript": "^4.0.5",
"valid-directory": "^3.5.0",
"valid-module": "^1.15.0"
"@bevry/update-contributors": "^1.19.0",
"@typescript-eslint/eslint-plugin": "^4.28.5",
"@typescript-eslint/parser": "^4.28.5",
"assert-helpers": "^8.4.0",
"cross-fetch": "^3.1.4",
"eslint": "^7.31.0",
"eslint-config-bevry": "^3.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"kava": "^5.14.0",
"make-deno-edition": "^1.3.0",
"prettier": "^2.3.2",
"projectz": "^2.21.0",
"surge": "^0.23.0",
"typedoc": "^0.21.4",
"typescript": "4.3.5",
"valid-directory": "^3.7.0",
"valid-module": "^1.16.0"
},
"scripts": {
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-esnext && npm run our:compile:types",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:types",
"our:compile:deno": "make-deno-edition --attempt",
"our:compile:edition-browsers": "tsc --module ESNext --target ES2019 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )",
"our:compile:edition-browsers": "tsc --module ESNext --target ES2020 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )",
"our:compile:edition-es2019": "tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && echo '{\"type\": \"commonjs\"}' > edition-es2019/package.json",
"our:compile:edition-es2019-esm": "tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && echo '{\"type\": \"module\"}' > edition-es2019-esm/package.json",
"our:compile:edition-esnext": "tsc --module commonjs --target ESNext --outDir ./edition-esnext --project tsconfig.json && ( test ! -d edition-esnext/source || ( mv edition-esnext/source edition-temp && rm -Rf edition-esnext && mv edition-temp edition-esnext ) ) && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json",
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )",

@@ -210,3 +190,3 @@ "our:deploy": "echo no need for this project",

"our:meta:docs": "npm run our:meta:docs:typedoc",
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --mode file --exclude '**/+(*test*|node_modules)' --excludeExternals --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source",
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
"our:meta:projectz": "projectz compile",

@@ -217,3 +197,3 @@ "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",

"our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
"our:release:push": "git push origin master && git push origin --tags",
"our:release:push": "git push origin && git push origin --tags",
"our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"",

@@ -228,3 +208,3 @@ "our:setup": "npm run our:setup:install",

"our:verify:prettier": "prettier --write .",
"test": "node ./test.cjs"
"test": "node ./edition-es2019/test.js"
},

@@ -239,3 +219,8 @@ "eslintConfig": {

"singleQuote": true
},
"boundation": {
"githubActionTestEnv": {
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}"
}
}
}

@@ -10,3 +10,3 @@ <!-- TITLE/ -->

<span class="badge-travisci"><a href="http://travis-ci.com/bevry/githubauthreq" title="Check this project's build status on TravisCI"><img src="https://img.shields.io/travis/com/bevry/githubauthreq/master.svg" alt="Travis CI Build Status" /></a></span>
<span class="badge-githubworkflow"><a href="https://github.com/bevry/githubauthreq/actions?query=workflow%3Abevry" title="View the status of this project's GitHub Workflow: bevry"><img src="https://github.com/bevry/githubauthreq/workflows/bevry/badge.svg" alt="Status of the GitHub Workflow: bevry" /></a></span>
<span class="badge-npmversion"><a href="https://npmjs.org/package/githubauthreq" title="View this project on NPM"><img src="https://img.shields.io/npm/v/githubauthreq.svg" alt="NPM version" /></a></span>

@@ -39,3 +39,3 @@ <span class="badge-npmdownloads"><a href="https://npmjs.org/package/githubauthreq" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/githubauthreq.svg" alt="NPM downloads" /></a></span>

[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/globals.html)
[Complete API Documentation.](http://master.githubauthreq.bevry.surge.sh/docs/)

@@ -72,4 +72,4 @@ ```typescript

<li>Install: <code>npm install --save githubauthreq</code></li>
<li>Import: <code>import pkg from ('githubauthreq')</code></li>
<li>Require: <code>const pkg = require('githubauthreq').default</code></li>
<li>Import: <code>import * as pkg from ('githubauthreq')</code></li>
<li>Require: <code>const pkg = require('githubauthreq')</code></li>
</ul>

@@ -81,3 +81,3 @@

<script type="module">
import pkg from '//cdn.skypack.dev/githubauthreq@^6.0.0'
import * as pkg from '//cdn.skypack.dev/githubauthreq@^6.3.0'
</script>

@@ -90,3 +90,3 @@ ```

<script type="module">
import pkg from '//unpkg.com/githubauthreq@^6.0.0'
import * as pkg from '//unpkg.com/githubauthreq@^6.3.0'
</script>

@@ -99,3 +99,3 @@ ```

<script type="module">
import pkg from '//dev.jspm.io/githubauthreq@6.0.0'
import * as pkg from '//dev.jspm.io/githubauthreq@6.3.0'
</script>

@@ -108,8 +108,7 @@ ```

<ul><li><code>githubauthreq</code> aliases <code>githubauthreq/index.cjs</code> which uses the <a href="https://github.com/bevry/editions" title="You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>
<li><code>githubauthreq/source/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>githubauthreq/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>githubauthreq/edition-esnext/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 14 || 15 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>githubauthreq/edition-es2019/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 10 || 12 || 14 || 15 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 15 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul>
<ul><li><code>githubauthreq/source/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>githubauthreq/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#11th_Edition_–_ECMAScript_2020" title="ECMAScript ES2020">ES2020</a> for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li>
<li><code>githubauthreq</code> aliases <code>githubauthreq/edition-es2019/index.js</code></li>
<li><code>githubauthreq/edition-es2019/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 10 || 12 || 14 || 16 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li>
<li><code>githubauthreq/edition-es2019-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_-_ECMAScript_2019" title="ECMAScript ES2019">ES2019</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 16 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul>

@@ -116,0 +115,0 @@ <!-- /INSTALL -->

@@ -25,3 +25,3 @@ import type { StrictUnion } from 'simplytyped'

| {
/** https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#about-the-github_token-secret */
/** https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret */
GITHUB_TOKEN: string

@@ -28,0 +28,0 @@ }

@@ -9,4 +9,3 @@ {

"strict": true,
"target": "ESNext",
"lib": ["ESNext", "DOM"],
"target": "ES2019",
"module": "ESNext"

@@ -13,0 +12,0 @@ },

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