@todesktop/cli 1.9.6 → 1.9.7

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/README.md CHANGED
@@ -1117,6 +1117,14 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
1117
1117
 
1118
1118
  ## Changelog
1119
1119
 
1120
+ ### v1.9.8
1121
+
1122
+ - Chore: bump dependencies
1123
+
1124
+ ### v1.9.7
1125
+
1126
+ - Add support for additional token verification
1127
+
1120
1128
  ### v1.9.6
1121
1129
 
1122
1130
  - Add support for `mas.x64ArchFiles` in config.
package/dist/cli.js CHANGED
@@ -2295,6 +2295,7 @@ async function uploadApplicationSource({
2295
2295
  config: config2,
2296
2296
  onProgress
2297
2297
  }) {
2298
+ var _a;
2298
2299
  logger_default.debug(
2299
2300
  {
2300
2301
  appId,
@@ -2445,7 +2446,7 @@ async function uploadApplicationSource({
2445
2446
  key: generateS3Key_default({
2446
2447
  appId,
2447
2448
  buildId,
2448
- filenameSuffix: `${appPkgJson.name}.zip`
2449
+ filenameSuffix: `${(_a = appPkgJson.name) == null ? void 0 : _a.replaceAll("/", "")}.zip`
2449
2450
  }),
2450
2451
  onProgress({ loaded, total }) {
2451
2452
  onProgress(loaded / total * 100, loaded);
@@ -2469,7 +2470,7 @@ async function runBuild({
2469
2470
  onBuildFinishedWebhook,
2470
2471
  updateState
2471
2472
  }) {
2472
- var _a;
2473
+ var _a, _b, _c;
2473
2474
  logForCI_default("Getting application information...");
2474
2475
  const primaryUserId = (_a = currentUser()) == null ? void 0 : _a.uid;
2475
2476
  const { config: config2, unprocessedConfig } = getProjectConfig(configPath);
@@ -2498,7 +2499,8 @@ async function runBuild({
2498
2499
  shouldCodeSign: shouldCodeSign !== false,
2499
2500
  shouldRelease: false,
2500
2501
  userId: primaryUserId,
2501
- versionControlInfo: await getVersionControlInfo_default(config2.appPath)
2502
+ versionControlInfo: await getVersionControlInfo_default(config2.appPath),
2503
+ idToken: await ((_b = currentUser()) == null ? void 0 : _b.getIdToken())
2502
2504
  });
2503
2505
  buildId = prepareResult.appData.meta.currentBuildProgress.id;
2504
2506
  buildObserver.subscribe({ appId, buildId, userId: prepareResult.userId });
@@ -2545,7 +2547,8 @@ async function runBuild({
2545
2547
  nodeVersion: config2.nodeVersion,
2546
2548
  npmVersion: config2.npmVersion,
2547
2549
  pnpmVersion: config2.pnpmVersion,
2548
- appBuilderLibVersion: config2.appBuilderLibVersion
2550
+ appBuilderLibVersion: config2.appBuilderLibVersion,
2551
+ idToken: await ((_c = currentUser()) == null ? void 0 : _c.getIdToken())
2549
2552
  });
2550
2553
  } catch (e) {
2551
2554
  throw addErrorMessage(e, "Failed while kicking off build");
@@ -5052,6 +5055,7 @@ async function queueSmokeTest({
5052
5055
  pnpmVersion,
5053
5056
  userId
5054
5057
  }) {
5058
+ var _a;
5055
5059
  try {
5056
5060
  await postToFirebaseFunction_default("queueSmokeTest_HTTP", {
5057
5061
  appId,
@@ -5060,7 +5064,8 @@ async function queueSmokeTest({
5060
5064
  npmVersion,
5061
5065
  pnpmVersion,
5062
5066
  userId,
5063
- contextUserId
5067
+ contextUserId,
5068
+ idToken: await ((_a = currentUser()) == null ? void 0 : _a.getIdToken())
5064
5069
  });
5065
5070
  } catch (e) {
5066
5071
  logger_default.error({ error: e });
@@ -5285,7 +5290,7 @@ var package_default = {
5285
5290
  access: "public"
5286
5291
  },
5287
5292
  name: "@todesktop/cli",
5288
- version: "1.9.6-0",
5293
+ version: "1.9.6",
5289
5294
  license: "MIT",
5290
5295
  author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
5291
5296
  homepage: "https://todesktop.com/cli",
@@ -5322,12 +5327,12 @@ var package_default = {
5322
5327
  "README.md"
5323
5328
  ],
5324
5329
  dependencies: {
5325
- "@sentry/node": "^5.27.2",
5330
+ "@sentry/node": "^8.35.0",
5326
5331
  ajv: "^8.11.2",
5327
5332
  "ajv-formats": "^2.1.1",
5328
5333
  "analytics-node": "^4.0.1",
5329
5334
  archiver: "^5.2.0",
5330
- axios: "^0.21.1",
5335
+ axios: "^1.7.7",
5331
5336
  "better-ajv-errors": "^1.2.0",
5332
5337
  bunyan: "^1.8.14",
5333
5338
  chalk: "^4.1.0",
@@ -5367,7 +5372,7 @@ var package_default = {
5367
5372
  "xdg-basedir": "^4.0.0"
5368
5373
  },
5369
5374
  devDependencies: {
5370
- "@todesktop/shared": "^7.188.64",
5375
+ "@todesktop/shared": "^7.188.79",
5371
5376
  "@types/bunyan": "^1.8.6",
5372
5377
  "@types/is-ci": "^3.0.4",
5373
5378
  "@types/node": "^20.8.4",
@@ -5461,38 +5466,37 @@ var initSentry_default = () => {
5461
5466
  Sentry3.init({
5462
5467
  dsn: TODESKTOP_CLI_SENTRY_DSN
5463
5468
  });
5464
- Sentry3.configureScope((scope) => {
5465
- try {
5466
- scope.setUser({ email: getAuthConfig().email });
5467
- } catch (err) {
5468
- }
5469
- try {
5470
- scope.setContext("os", {
5471
- name: import_os2.default.platform(),
5472
- version: import_os2.default.release()
5473
- });
5474
- } catch (err) {
5475
- }
5476
- try {
5477
- scope.setContext("runtime", {
5478
- name: "Node.js",
5479
- version: process.version
5480
- });
5481
- } catch (err) {
5482
- }
5483
- try {
5484
- scope.setContext("app", {
5485
- app_name: package_default.name,
5486
- app_version: package_default.version
5487
- });
5488
- } catch (err) {
5489
- }
5490
- try {
5491
- const configResult = getProjectConfig();
5492
- scope.setExtra("config", configResult);
5493
- } catch (err) {
5494
- }
5495
- });
5469
+ const scope = Sentry3.getCurrentScope();
5470
+ try {
5471
+ scope.setUser({ email: getAuthConfig().email });
5472
+ } catch (err) {
5473
+ }
5474
+ try {
5475
+ scope.setContext("os", {
5476
+ name: import_os2.default.platform(),
5477
+ version: import_os2.default.release()
5478
+ });
5479
+ } catch (err) {
5480
+ }
5481
+ try {
5482
+ scope.setContext("runtime", {
5483
+ name: "Node.js",
5484
+ version: process.version
5485
+ });
5486
+ } catch (err) {
5487
+ }
5488
+ try {
5489
+ scope.setContext("app", {
5490
+ app_name: package_default.name,
5491
+ app_version: package_default.version
5492
+ });
5493
+ } catch (err) {
5494
+ }
5495
+ try {
5496
+ const configResult = getProjectConfig();
5497
+ scope.setExtra("config", configResult);
5498
+ } catch (err) {
5499
+ }
5496
5500
  };
5497
5501
 
5498
5502
  // src/utilities/onCommand.ts