Skip to content

Commit

Permalink
Merge branch 'main' into workspace/vnext
Browse files Browse the repository at this point in the history
  • Loading branch information
obany committed Jan 12, 2024
2 parents a7a83d7 + e9864f5 commit 5f9ac8c
Show file tree
Hide file tree
Showing 33 changed files with 220 additions and 33 deletions.
8 changes: 7 additions & 1 deletion how-to/customize-home-templates/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-server-authentication/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-bloomberg-basic/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-excel/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-ms365-basic/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-ms365-low-code/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-ms365/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-openid-connect/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-rss/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-salesforce-basic/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-salesforce/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-servicenow-basic/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-servicenow/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-snap-basic/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/integrate-with-snap/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/register-with-browser/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/register-with-dock-basic/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/register-with-dock/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/register-with-home-basic/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/register-with-home/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/register-with-platform-windows/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/register-with-store-basic/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/register-with-store/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/support-context-and-intents/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
8 changes: 7 additions & 1 deletion how-to/use-notifications/scripts/launch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ async function run(manifestUrl) {
await platform.quit();
}
} catch (err) {
console.error(err);
if (err.toString().includes('no longer connected')) {
console.log('Platform no longer connected');
console.log('Exiting process');
process.exit();
} else {
console.error(err);
}
}
};
console.log(`Wrapped target platform: ${manifest.platform.uuid}`);
Expand Down
Loading

0 comments on commit 5f9ac8c

Please sign in to comment.