From 9ba11af8fbcf549be1af12884d9f07228acd1aa4 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 3 Dec 2020 22:25:01 -0700 Subject: [PATCH] boilerplate --- .eslintrc.json | 6 ++++++ .jshintrc | 4 ++++ .prettierrc.json | 24 +++++++++++++++++++++++ AUTHORS | 1 + README.md | 10 +++++++++- SECURITY.md | 14 +++++++++++++ index.js | 4 ++++ lib/index.js | 7 +++++++ package-lock.json | 50 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 31 +++++++++++++++++++++++++++++ 10 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 .eslintrc.json create mode 100644 .jshintrc create mode 100644 .prettierrc.json create mode 100644 AUTHORS create mode 100644 SECURITY.md create mode 100644 index.js create mode 100644 lib/index.js create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..9a0fd96 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,6 @@ +{ + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module" + } +} diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..ed094d2 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,4 @@ +{ + "node": true, + "esversion": "8" +} diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..ea47743 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,24 @@ +{ + "tabWidth": 4, + "overrides": [ + { + "files": "**/*.{html}", + "options": { + "printWidth": 10000 + } + }, + { + "files": "**/*.js", + "options": { + "printWidth": 100 + } + }, + { + "files": "**/*.json", + "options": { + "tabWidth": 2, + "printWidth": 80 + } + } + ] +} diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..f2496e6 --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +AJ ONeal (https://coolaj86.com/) diff --git a/README.md b/README.md index 96f3510..aa0275a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # pocketid.js -PocketID for Node.js \ No newline at end of file +PocketID for Node.js + +# Security + +See [SECURITY.md](/SECURITY.md). + +# License + +See [AUTHORS](/AUTHORS) and [LICENSE](/LICENSE) diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..160797a --- /dev/null +++ b/SECURITY.md @@ -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 diff --git a/index.js b/index.js new file mode 100644 index 0000000..0402ff6 --- /dev/null +++ b/index.js @@ -0,0 +1,4 @@ +"use strict"; + +import PocketId from "./lib/"; +export default PocketId; diff --git a/lib/index.js b/lib/index.js new file mode 100644 index 0000000..b6bec93 --- /dev/null +++ b/lib/index.js @@ -0,0 +1,7 @@ +"use strict"; + +import Keypairs from "@root/keypairs"; + +const PocketId = {}; + +export default PocketId; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..dfab705 --- /dev/null +++ b/package-lock.json @@ -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==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..718095e --- /dev/null +++ b/package.json @@ -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 (https://rootprojects.org/)", + "license": "MPL-2.0" +}