boilerplate
This commit is contained in:
parent
32fe9eb209
commit
9ba11af8fb
6
.eslintrc.json
Normal file
6
.eslintrc.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 6,
|
||||||
|
"sourceType": "module"
|
||||||
|
}
|
||||||
|
}
|
24
.prettierrc.json
Normal file
24
.prettierrc.json
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"tabWidth": 4,
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": "**/*.{html}",
|
||||||
|
"options": {
|
||||||
|
"printWidth": 10000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": "**/*.js",
|
||||||
|
"options": {
|
||||||
|
"printWidth": 100
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": "**/*.json",
|
||||||
|
"options": {
|
||||||
|
"tabWidth": 2,
|
||||||
|
"printWidth": 80
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
10
README.md
10
README.md
@ -1,3 +1,11 @@
|
|||||||
# pocketid.js
|
# pocketid.js
|
||||||
|
|
||||||
PocketID for Node.js
|
PocketID for Node.js
|
||||||
|
|
||||||
|
# Security
|
||||||
|
|
||||||
|
See [SECURITY.md](/SECURITY.md).
|
||||||
|
|
||||||
|
# License
|
||||||
|
|
||||||
|
See [AUTHORS](/AUTHORS) and [LICENSE](/LICENSE)
|
||||||
|
14
SECURITY.md
Normal file
14
SECURITY.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
| Version | Supported |
|
||||||
|
| ------- | ------------------ |
|
||||||
|
| >= 1.x | :white_check_mark: |
|
||||||
|
| < 1.0 | :x: |
|
||||||
|
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
Please send details to:
|
||||||
|
|
||||||
|
- AJ ONeal <aj@therootcompany.com>
|
4
index.js
Normal file
4
index.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
import PocketId from "./lib/";
|
||||||
|
export default PocketId;
|
7
lib/index.js
Normal file
7
lib/index.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
import Keypairs from "@root/keypairs";
|
||||||
|
|
||||||
|
const PocketId = {};
|
||||||
|
|
||||||
|
export default PocketId;
|
50
package-lock.json
generated
Normal file
50
package-lock.json
generated
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"name": "pocketid",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@root/asn1": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@root/asn1/-/asn1-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-0lfZNuOULKJDJmdIkP8V9RnbV3XaK6PAHD3swnFy4tZwtlMDzLKoM/dfNad7ut8Hu3r91wy9uK0WA/9zym5mig==",
|
||||||
|
"requires": {
|
||||||
|
"@root/encoding": "^1.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@root/encoding": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@root/encoding/-/encoding-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-OaEub02ufoU038gy6bsNHQOjIn8nUjGiLcaRmJ40IUykneJkIW5fxDqKxQx48cszuNflYldsJLPPXCrGfHs8yQ=="
|
||||||
|
},
|
||||||
|
"@root/keypairs": {
|
||||||
|
"version": "0.10.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@root/keypairs/-/keypairs-0.10.1.tgz",
|
||||||
|
"integrity": "sha512-LuBheiQwMLCN5iWmhjyW9Mgc7uX16+gABSDfFafaBQnSPVylnOksHa22bqZmDkMCsinOOjUecgy2UgREOT3cOg==",
|
||||||
|
"requires": {
|
||||||
|
"@root/encoding": "^1.0.1",
|
||||||
|
"@root/pem": "^1.0.4",
|
||||||
|
"@root/x509": "^0.7.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@root/pem": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@root/pem/-/pem-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-rEUDiUsHtild8GfIjFE9wXtcVxeS+ehCJQBwbQQ3IVfORKHK93CFnRtkr69R75lZFjcmKYVc+AXDB+AeRFOULA=="
|
||||||
|
},
|
||||||
|
"@root/x509": {
|
||||||
|
"version": "0.7.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@root/x509/-/x509-0.7.2.tgz",
|
||||||
|
"integrity": "sha512-ENq3LGYORK5NiMFHEVeNMt+fTXaC7DTS6sQXoqV+dFdfT0vmiL5cDLjaXQhaklJQq0NiwicZegzJRl1ZOTp3WQ==",
|
||||||
|
"requires": {
|
||||||
|
"@root/asn1": "^1.0.0",
|
||||||
|
"@root/encoding": "^1.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"basetag": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/basetag/-/basetag-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-U9BrHuwNyBzGBA5FGYjD9TdSvvFGDmviMYKHFxY2saT7QZF6Xp/Kv6yxATp1RuEKsd1CBMcpEyl3KmikMUjwqA=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
31
package.json
Normal file
31
package.json
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"name": "pocketid",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"description": "PocketID for Node.js",
|
||||||
|
"main": "index.js",
|
||||||
|
"type": "module",
|
||||||
|
"dependencies": {
|
||||||
|
"@root/keypairs": "^0.10.1",
|
||||||
|
"basetag": "^1.0.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {},
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.rootprojects.org/root/pocketid.js"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"Pocket",
|
||||||
|
"PocketID",
|
||||||
|
"OAuth",
|
||||||
|
"OAuth2",
|
||||||
|
"OIDC",
|
||||||
|
"JWT",
|
||||||
|
"JWS",
|
||||||
|
"JWK"
|
||||||
|
],
|
||||||
|
"author": "AJ ONeal <aj@therootcompany.com> (https://rootprojects.org/)",
|
||||||
|
"license": "MPL-2.0"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user