@plasmicapp/cli 0.1.300 → 0.1.301

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/dist/index.js CHANGED
@@ -736636,7 +736636,10 @@ async function startAuth(opts) {
736636
736636
  let prompt;
736637
736637
  const initToken = v4_default();
736638
736638
  const url = `${opts.host}/auth/plasmic-init/${initToken}`;
736639
- (0, import_open.default)(url);
736639
+ (0, import_open.default)(url).then((subprocess) => {
736640
+ subprocess.on("error", () => {
736641
+ });
736642
+ });
736640
736643
  logger.info(
736641
736644
  `
736642
736645
  If your browser doesn't automatically open, enter the following URL:
package/dist/lib.js CHANGED
@@ -731976,7 +731976,10 @@ async function startAuth(opts) {
731976
731976
  let prompt;
731977
731977
  const initToken = v4_default();
731978
731978
  const url = `${opts.host}/auth/plasmic-init/${initToken}`;
731979
- (0, import_open.default)(url);
731979
+ (0, import_open.default)(url).then((subprocess) => {
731980
+ subprocess.on("error", () => {
731981
+ });
731982
+ });
731980
731983
  logger.info(
731981
731984
  `
731982
731985
  If your browser doesn't automatically open, enter the following URL:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/cli",
3
- "version": "0.1.300",
3
+ "version": "0.1.301",
4
4
  "description": "plasmic cli for syncing local code with Plasmic designs",
5
5
  "engines": {
6
6
  "node": ">=12"
@@ -78,5 +78,5 @@
78
78
  "wrap-ansi": "^7.0.0",
79
79
  "yargs": "^15.4.1"
80
80
  },
81
- "gitHead": "d77514328c5ed3df3af84ff5c9f35f351fc1c276"
81
+ "gitHead": "eb28b8015d98fcffb97ed126463f35476a2ecf13"
82
82
  }
@@ -102,7 +102,12 @@ export async function startAuth(opts: Partial<CommonArgs> & { host: string }) {
102
102
 
103
103
  const initToken = uuidv4();
104
104
  const url = `${opts.host}/auth/plasmic-init/${initToken}`;
105
- open(url);
105
+ open(url).then((subprocess) => {
106
+ subprocess.on("error", () => {
107
+ // Browser failed to start. This needs to be handled to avoid
108
+ // crashing the CLI.
109
+ });
110
+ });
106
111
  logger.info(
107
112
  `\nIf your browser doesn't automatically open, enter the following URL:\n${url}\n`
108
113
  );