@hellocoop/quickstart 1.0.16 → 1.0.17

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
@@ -63,7 +63,8 @@ const quickstart = async function (params) {
63
63
  response_uri,
64
64
  }
65
65
  const queryString = new URLSearchParams(queryParams).toString();
66
- const quickstartURL = `https://quickstart.hello.coop/?${queryString}`
66
+ const hellooDomain = process.env.HELLO_DOMAIN || 'hello.coop'
67
+ const quickstartURL = `https://quickstart.${hellooDomain}/?${queryString}`
67
68
  server.listen(port, host, () => {
68
69
  console.log('Obtaining a client_id from Hellō Quickstart using:')
69
70
  console.log(quickstartURL)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/quickstart",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
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": {
@@ -34,6 +34,7 @@
34
34
  },
35
35
  "homepage": "https://github.com/hellocoop/packages#readme",
36
36
  "dependencies": {
37
+ "dotenv": "^16.3.1",
37
38
  "get-port": "^7.0.0",
38
39
  "open": "^9.1.0"
39
40
  },
package/quickstart.mjs CHANGED
@@ -1,8 +1,6 @@
1
1
  #!/usr/bin/env node
2
-
2
+ import 'dotenv/config'
3
3
  import qs from './index.js';
4
4
 
5
- (async () => {
6
- const client_id = await qs();
7
- console.log({ client_id });
8
- })();
5
+ const client_id = await qs();
6
+ console.log({ client_id });