@uipath/codedapp-tool 1.202.1 → 1.202.2-preview.174

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.
@@ -4535,6 +4535,20 @@ class FilterImplicitLimitError extends Error {
4535
4535
  this.instructions = "Pass --limit <n> to choose how many records the filter applies to. " + "To filter over all records, pass the command's maximum accepted --limit (see the option's description in --help).";
4536
4536
  }
4537
4537
  }
4538
+
4539
+ class ConfigurationError extends Error {
4540
+ __brand = "ConfigurationError";
4541
+ errorCode = "configuration_error";
4542
+ retry = "RetryWillNotFix";
4543
+ result = RESULTS.ConfigError;
4544
+ constructor(message) {
4545
+ super(message);
4546
+ this.name = "ConfigurationError";
4547
+ }
4548
+ }
4549
+ function isConfigurationError(error) {
4550
+ return typeof error === "object" && error !== null && "__brand" in error && error.__brand === "ConfigurationError";
4551
+ }
4538
4552
  function applyFilter(data, filter) {
4539
4553
  const codec = requireJmespath();
4540
4554
  let result;
@@ -5133,6 +5147,20 @@ Command.prototype.trackedAction = function(context, fn, properties) {
5133
5147
  });
5134
5148
  };
5135
5149
 
5150
+ // ../common/src/confirmation.ts
5151
+ function requireConfirmation(flags, operation) {
5152
+ if (flags.yes === true || flags.force === true) {
5153
+ return true;
5154
+ }
5155
+ OutputFormatter.error({
5156
+ Result: RESULTS.Failure,
5157
+ Message: `Confirmation required: this will ${operation} and cannot be undone.`,
5158
+ Instructions: "Re-run with --yes to confirm."
5159
+ });
5160
+ processContext.exit(1);
5161
+ return false;
5162
+ }
5163
+
5136
5164
  // ../common/src/package-metadata-options.ts
5137
5165
  function registerPackageMetadataOptions(command) {
5138
5166
  return command.option("--author <author>", "Package author").option("--description <text>", "Package description").option("--repository-url <url>", "Source repository URL (recorded in the package for traceability)").option("--repository-commit <sha>", "Source repository commit hash (recorded in the package for traceability)").option("--repository-branch <branch>", "Source repository branch").option("--repository-type <type>", "Source repository type (defaults to 'git' when --repository-url is set)").option("--release-notes <text>", "Release notes for the package").option("--project-url <url>", "Automation Hub idea URL");
@@ -5920,6 +5948,6 @@ async function findSolutionFileUpward(fs, startDir) {
5920
5948
  }
5921
5949
  }
5922
5950
 
5923
- export { catchError, describeConnectivityError, extractErrorDetails, extractErrorMessage, getOutputSink, logger, RESULTS, OutputFormatter, InvalidArgumentError, Command, Option, processContext, isGuid, canPrompt, registerPackageMetadataOptions, mapPackageMetadataOptions, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, trackShipSucceeded, normalizeProjectType, tryRegisterProjectInParentSolution, findNearestParentUipxFile, findSolutionFileUpward };
5951
+ export { catchError, describeConnectivityError, extractErrorDetails, extractErrorMessage, getOutputSink, logger, RESULTS, EXIT_CODES, ConfigurationError, isConfigurationError, OutputFormatter, InvalidArgumentError, Command, Option, processContext, requireConfirmation, isGuid, canPrompt, registerPackageMetadataOptions, mapPackageMetadataOptions, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, trackShipSucceeded, normalizeProjectType, tryRegisterProjectInParentSolution, findNearestParentUipxFile, findSolutionFileUpward };
5924
5952
 
5925
- //# debugId=DE37B105000E327A64756E2164756E21
5953
+ //# debugId=221D447EF9BC866A64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./packager-tool-thnw8kwh.js";
5
- import"./packager-tool-58asqeb7.js";
4
+ } from "./packager-tool-3nn8qp3y.js";
5
+ import"./packager-tool-ckanbe2q.js";
6
6
  import"./packager-tool-pvtdkdk8.js";
7
7
  import"./packager-tool-05wez2xw.js";
8
8
  import"./packager-tool-aybzcdfg.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/codedapp-tool",
3
3
  "license": "SEE LICENSE IN LICENSE.txt",
4
- "version": "1.202.1",
4
+ "version": "1.202.2-preview.174",
5
5
  "description": "Build, pack, publish, deploy, and manage UiPath Coded Web Applications.",
6
6
  "keywords": [
7
7
  "cli-tool",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "registry": "https://registry.npmjs.org/"
30
30
  },
31
- "gitHead": "280b581b7893224d512dd194f47dd57243cc6a5c"
31
+ "gitHead": "3b161253539f57f0abbd7752bee79ccf12238f02"
32
32
  }