@hellocoop/quickstart 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -27,11 +27,13 @@ const quickstart = async function (params) {
27
27
  console.error(error)
28
28
  return error
29
29
  }
30
- const paramKeys = Object.keys(params)
31
- paramKeys || paramKeys.forEach( param => {
32
- if (!validQuickstartParams.includes(parm))
33
- throw(new Error(`Invalid param:${param}`))
34
- })
30
+ const paramKeys = Object.keys(params || {})
31
+ if (paramKeys) {
32
+ paramKeys.forEach( param => {
33
+ if (!validQuickstartParams.includes(param))
34
+ throw(new Error(`Invalid param:${param}`))
35
+ })
36
+ }
35
37
 
36
38
  const port = await getPort()
37
39
  const host = 'localhost'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/quickstart",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "A CLI and module to start the Hello Quickstart web app and return a client_id",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -16,6 +16,9 @@
16
16
  },
17
17
  "keywords": [
18
18
  "hello",
19
+ "oauth",
20
+ "oauth2",
21
+ "OIDC",
19
22
  "auth",
20
23
  "sso",
21
24
  "quickstart"
package/quickstart.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import quickstart from './quickstart.js';
3
+ import qs from './index.js';
4
4
 
5
5
  (async () => {
6
- const client_id = await quickstart();
6
+ const client_id = await qs();
7
7
  console.log({ client_id });
8
8
  })();