@friggframework/devtools 1.0.1-v1-alpha-package-update.1 → 1.0.1-v1-alpha.1

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "1.0.1-v1-alpha-package-update.1",
4
+ "version": "1.0.1-v1-alpha.1",
5
5
  "dependencies": {
6
6
  "@babel/eslint-parser": "^7.18.9",
7
- "@friggframework/core": "1.0.1-v1-alpha-package-update.1",
7
+ "@friggframework/core": "1.0.1-v1-alpha.1",
8
8
  "eslint": "^8.22.0",
9
9
  "eslint-config-prettier": "^8.5.0",
10
10
  "eslint-plugin-json": "^3.1.0",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "9a24f4fcdcb147e9ad2eef15756b142cc6bca463"
40
+ "gitHead": "c63d67db8bb7801469fd7c84132dd977eaa4ef5b"
41
41
  }
@@ -14,7 +14,7 @@ class Authenticator {
14
14
  return result;
15
15
  }
16
16
 
17
- static async oauth2(authorizeUrl, port = 3000) {
17
+ static async oauth2(authorizeUrl, port = 3000, browserName = undefined) {
18
18
  return new Promise((resolve, reject) => {
19
19
  const server = http
20
20
  .createServer(async (req, res) => {
@@ -49,8 +49,9 @@ class Authenticator {
49
49
  }
50
50
  })
51
51
  .listen(port, () => {
52
+ const options = browserName ? {app: {name: browserName }} : undefined
52
53
  // open the browser to the authorize url to start the workflow
53
- open(authorizeUrl).then((childProcess) => {
54
+ open(authorizeUrl, options).then((childProcess) => {
54
55
  childProcess.unref();
55
56
  clearTimeout(timeoutId);
56
57
  });