@sentry/junior-google 0.303.0 → 0.305.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -428,12 +428,12 @@ async function runStatus(ctx) {
428
428
  function createGoogleCliCommand() {
429
429
  return {
430
430
  name: "google",
431
- summary: "Connect and inspect Junior's Google account",
431
+ summary: "Connect and inspect the bot's Google account",
432
432
  configure(command, junior) {
433
- command.command("connect").description("Sign in as Junior's Google account in a browser and store the grant").option("--port <port>", "Loopback port registered as an OAuth redirect URI", parsePort, DEFAULT_LOOPBACK_PORT).action(junior.action(async (ctx, options) => {
433
+ command.command("connect").description("Sign in as the bot's Google account in a browser and store the grant").option("--port <port>", "Loopback port registered as an OAuth redirect URI", parsePort, DEFAULT_LOOPBACK_PORT).action(junior.action(async (ctx, options) => {
434
434
  return await runConnect(ctx, options);
435
435
  }));
436
- command.command("status").description("Show whether Junior's Google account is connected").action(junior.action(async (ctx) => await runStatus(ctx)));
436
+ command.command("status").description("Show whether the bot's Google account is connected").action(junior.action(async (ctx) => await runStatus(ctx)));
437
437
  }
438
438
  };
439
439
  }
@@ -1663,7 +1663,7 @@ function adminEmail(context) {
1663
1663
  return email;
1664
1664
  }
1665
1665
  function forbidden() {
1666
- return htmlPage("Google setup", "<p>Only Junior admins can connect Junior's Google account. An operator can grant the role with <code>junior admin grant &lt;email&gt;</code>.</p>", { status: 403 });
1666
+ return htmlPage("Google setup", "<p>Only admins can connect the bot's Google account. An operator can grant the role with <code>junior admin grant &lt;email&gt;</code>.</p>", { status: 403 });
1667
1667
  }
1668
1668
  function readCookie(request, name) {
1669
1669
  for (const part of (request.headers.get("cookie") ?? "").split(";")) {
@@ -1705,7 +1705,7 @@ async function finishSignIn(input) {
1705
1705
  const code = url.searchParams.get("code");
1706
1706
  if (!code) return failed("Google did not return an authorization code.");
1707
1707
  try {
1708
- return htmlPage("Google connected", `<p>Junior now acts as <code>${escapeHtml((await connectGoogleAccount({
1708
+ return htmlPage("Google connected", `<p>The bot now acts as <code>${escapeHtml((await connectGoogleAccount({
1709
1709
  code,
1710
1710
  codeVerifier,
1711
1711
  config: input.config,
@@ -1744,7 +1744,7 @@ function createGoogleSetupPage() {
1744
1744
  return {
1745
1745
  id: "account",
1746
1746
  label: "Google account",
1747
- description: "Connect the Google Workspace account that Junior acts as.",
1747
+ description: "Connect the Google Workspace account that the bot acts as.",
1748
1748
  navigation: "admin",
1749
1749
  async read(ctx) {
1750
1750
  const config = readGoogleConfig();
@@ -1763,7 +1763,7 @@ function createGoogleSetupPage() {
1763
1763
  records: [{
1764
1764
  id: config.accountEmail,
1765
1765
  title: config.accountEmail,
1766
- description: status ? "Connected. Reconnect after Google revokes access or Junior needs new permissions." : `Not connected. Sign in as ${config.accountEmail}, not as yourself.`,
1766
+ description: status ? "Connected. Reconnect after Google revokes access or the plugin needs new permissions." : `Not connected. Sign in as ${config.accountEmail}, not as yourself.`,
1767
1767
  ...status ? { metadata: [
1768
1768
  {
1769
1769
  label: "Connected by",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-google",
3
- "version": "0.303.0",
3
+ "version": "0.305.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,7 +22,7 @@
22
22
  "migrations"
23
23
  ],
24
24
  "dependencies": {
25
- "@sentry/junior-plugin-api": "0.303.0",
25
+ "@sentry/junior-plugin-api": "0.305.0",
26
26
  "commander": "^14.0.3",
27
27
  "drizzle-orm": "^0.45.4",
28
28
  "parse5": "^7.3.0",