@octokit/auth-token
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
21768
11
0
1
1
11
256
258
+ Added@octokit/request@^5.0.1
+ Added@octokit/endpoint@6.0.12(transitive)
+ Added@octokit/openapi-types@12.11.0(transitive)
+ Added@octokit/request@5.6.3(transitive)
+ Added@octokit/request-error@2.1.0(transitive)
+ Added@octokit/types@6.41.0(transitive)
+ Addeddeprecation@2.3.1(transitive)
+ Addedis-plain-object@5.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addeduniversal-user-agent@6.0.1(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)