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

@octokit/auth-token

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/auth-token - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

.travis.yml

78

package.json
{
"name": "@octokit/auth-token",
"publishConfig": {
"access": "public"
},
"version": "2.0.1",
"description": "GitHub API token authentication for browsers and Node.js",
"version": "2.0.0",
"license": "MIT",
"files": [
"dist-*/",
"bin/"
],
"pika": true,
"sideEffects": false,
"scripts": {
"build": "pika build",
"test": "jest --coverage"
},
"repository": "https://github.com/octokit/auth-token.js",
"keywords": [

@@ -18,15 +19,16 @@ "github",

],
"homepage": "https://github.com/octokit/auth-token.js#readme",
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "MIT",
"bugs": {
"url": "https://github.com/octokit/auth-token.js/issues"
},
"repository": "https://github.com/octokit/auth-token.js",
"dependencies": {},
"homepage": "https://github.com/octokit/auth-token.js#readme",
"dependencies": {
"@octokit/request": "^5.0.1"
},
"devDependencies": {
"@octokit/request": "^5.0.1",
"@pika/pack": "^0.4.0",
"@pika/plugin-build-node": "^0.4.0",
"@pika/plugin-build-web": "^0.4.0",
"@pika/plugin-bundle-web": "^0.4.0",
"@pika/plugin-ts-standard-pkg": "^0.4.0",
"@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",
"@types/fetch-mock": "^7.3.1",

@@ -36,3 +38,2 @@ "@types/jest": "^24.0.13",

"jest": "^24.8.0",
"pika-plugin-unpkg-field": "^1.1.0",
"semantic-release": "^15.13.12",

@@ -42,10 +43,37 @@ "ts-jest": "^24.0.2",

},
"publishConfig": {
"access": "public"
"jest": {
"preset": "ts-jest",
"coverageThreshold": {
"global": {
"statements": 100,
"branches": 100,
"functions": 100,
"lines": 100
}
}
},
"source": "dist-src/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js",
"module": "dist-web/index.js",
"unpkg": "dist-web/index.bundled.js"
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"@semantic-release/npm",
{
"pkgRoot": "./pkg"
}
]
],
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-ts-standard-pkg"
],
[
"@pika/plugin-build-node"
],
[
"@pika/plugin-build-web"
]
]
}
}

@@ -27,3 +27,3 @@ # auth-token.js

<script type="module">
import { createBasicAuth } from "https://cdn.pika.dev/@octokit/auth-token";
import { createTokenAuth } from "https://cdn.pika.dev/@octokit/auth-token";
</script>

@@ -40,4 +40,4 @@ ```

```js
const { createBasicAuth } = require("@octokit/auth-token");
// or: import { createBasicAuth } from "@octokit/auth-token";
const { createTokenAuth } = require("@octokit/auth-token");
// or: import { createTokenAuth } from "@octokit/auth-token";
```

@@ -50,4 +50,2 @@

```js
import { createTokenAuth } from "@octokit/auth-token";
const auth = createTokenAuth("1234567890abcdef1234567890abcdef12345678");

@@ -58,7 +56,3 @@ const authentication = await auth();

// token: '1234567890abcdef1234567890abcdef12345678',
// tokenType: 'oauth',
// headers: {
// authorization: 'token 1234567890abcdef1234567890abcdef12345678'
// }
// }
// tokenType: 'oauth'
```

@@ -85,10 +79,6 @@

## `auth()` options
## `auth()`
The `auth()` method has no options.
The `auth()` method has no options. It returns a promise which resolves with the the authentication object.
## `auth()` result
The async `auth()` method resolves with the authentication object.
## Authentication object

@@ -95,0 +85,0 @@

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