@uipath/project-packager 1.202.0-preview.138 → 1.202.0-preview.140

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/browser.js CHANGED
@@ -24342,18 +24342,24 @@ class ProjectLoader {
24342
24342
  }
24343
24343
  const json = typeof fileContent === "string" ? fileContent : new TextDecoder("utf-8").decode(fileContent);
24344
24344
  const projectData = JSON.parse(json);
24345
- const outputType = useProjectJson ? projectData.designOptions?.outputType : undefined;
24345
+ const projectJson = useProjectJson ? projectData : undefined;
24346
+ const outputType = projectJson?.designOptions?.outputType;
24346
24347
  const projectType = outputType ?? (projectData?.ProjectType || projectData?.type);
24347
24348
  if (!projectData || !projectType) {
24348
24349
  throw new Error(translate4.t("solutionpackager.projectLoader.errors.invalidProject", {
24349
24350
  path: projectFilePath
24350
24351
  }));
24351
24352
  }
24353
+ const declaredName = projectJson?.name?.trim() || projectData.Name;
24354
+ const declaredDescription = projectJson?.description?.trim() || projectData.Description?.trim() || undefined;
24355
+ const declaredAuthor = projectJson?.author?.trim() || projectData.Author?.trim() || undefined;
24352
24356
  return {
24353
24357
  type: projectType,
24354
- name: projectData.Name || Path2.basename(projectPath),
24358
+ name: declaredName || Path2.basename(projectPath),
24355
24359
  projectPath,
24356
- projectFilePath
24360
+ projectFilePath,
24361
+ description: declaredDescription,
24362
+ author: declaredAuthor
24357
24363
  };
24358
24364
  }
24359
24365
  loadFromWebAppManifest(projectPath, webAppManifestPath) {
@@ -24383,7 +24389,9 @@ class ProjectPackOptionsBuilder {
24383
24389
  const packageId = !parameters.package.id || parameters.package.id.trim() === "" ? project.name : parameters.package.id;
24384
24390
  const packageInfo = {
24385
24391
  ...parameters.package,
24386
- id: this.packService.sanitizePackageId(packageId)
24392
+ id: this.packService.sanitizePackageId(packageId),
24393
+ description: parameters.package.description || project.description,
24394
+ author: parameters.package.author || project.author
24387
24395
  };
24388
24396
  return {
24389
24397
  projectPath: project.projectPath,
@@ -24823,4 +24831,4 @@ export {
24823
24831
  createBrowserProjectPackager
24824
24832
  };
24825
24833
 
24826
- //# debugId=4D97505750F8AF8064756E2164756E21
24834
+ //# debugId=4202187E65EF48E164756E2164756E21
package/dist/index.js CHANGED
@@ -24215,7 +24215,7 @@ import { translate as translate3 } from "@uipath/solutionpackager-tool-core";
24215
24215
  var package_default = {
24216
24216
  name: "@uipath/project-packager",
24217
24217
  license: "MIT",
24218
- version: "1.202.0-preview.138",
24218
+ version: "1.202.0-preview.140",
24219
24219
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
24220
24220
  type: "module",
24221
24221
  main: "./dist/index.js",
@@ -24980,18 +24980,24 @@ class ProjectLoader {
24980
24980
  }
24981
24981
  const json = typeof fileContent === "string" ? fileContent : new TextDecoder("utf-8").decode(fileContent);
24982
24982
  const projectData = JSON.parse(json);
24983
- const outputType = useProjectJson ? projectData.designOptions?.outputType : undefined;
24983
+ const projectJson = useProjectJson ? projectData : undefined;
24984
+ const outputType = projectJson?.designOptions?.outputType;
24984
24985
  const projectType = outputType ?? (projectData?.ProjectType || projectData?.type);
24985
24986
  if (!projectData || !projectType) {
24986
24987
  throw new Error(translate8.t("solutionpackager.projectLoader.errors.invalidProject", {
24987
24988
  path: projectFilePath
24988
24989
  }));
24989
24990
  }
24991
+ const declaredName = projectJson?.name?.trim() || projectData.Name;
24992
+ const declaredDescription = projectJson?.description?.trim() || projectData.Description?.trim() || undefined;
24993
+ const declaredAuthor = projectJson?.author?.trim() || projectData.Author?.trim() || undefined;
24990
24994
  return {
24991
24995
  type: projectType,
24992
- name: projectData.Name || Path2.basename(projectPath),
24996
+ name: declaredName || Path2.basename(projectPath),
24993
24997
  projectPath,
24994
- projectFilePath
24998
+ projectFilePath,
24999
+ description: declaredDescription,
25000
+ author: declaredAuthor
24995
25001
  };
24996
25002
  }
24997
25003
  loadFromWebAppManifest(projectPath, webAppManifestPath) {
@@ -25049,7 +25055,9 @@ class ProjectPackOptionsBuilder {
25049
25055
  const packageId = !parameters.package.id || parameters.package.id.trim() === "" ? project.name : parameters.package.id;
25050
25056
  const packageInfo = {
25051
25057
  ...parameters.package,
25052
- id: this.packService.sanitizePackageId(packageId)
25058
+ id: this.packService.sanitizePackageId(packageId),
25059
+ description: parameters.package.description || project.description,
25060
+ author: parameters.package.author || project.author
25053
25061
  };
25054
25062
  return {
25055
25063
  projectPath: project.projectPath,
@@ -25495,4 +25503,4 @@ export {
25495
25503
  signNupkgsAsync
25496
25504
  };
25497
25505
 
25498
- //# debugId=D9B7AF690882782364756E2164756E21
25506
+ //# debugId=44627DB4B21B8D7C64756E2164756E21
package/dist/node.js CHANGED
@@ -13134,18 +13134,24 @@ class ProjectLoader {
13134
13134
  }
13135
13135
  const json2 = typeof fileContent === "string" ? fileContent : new TextDecoder("utf-8").decode(fileContent);
13136
13136
  const projectData = JSON.parse(json2);
13137
- const outputType = useProjectJson ? projectData.designOptions?.outputType : undefined;
13137
+ const projectJson = useProjectJson ? projectData : undefined;
13138
+ const outputType = projectJson?.designOptions?.outputType;
13138
13139
  const projectType = outputType ?? (projectData?.ProjectType || projectData?.type);
13139
13140
  if (!projectData || !projectType) {
13140
13141
  throw new Error(translate5.t("solutionpackager.projectLoader.errors.invalidProject", {
13141
13142
  path: projectFilePath
13142
13143
  }));
13143
13144
  }
13145
+ const declaredName = projectJson?.name?.trim() || projectData.Name;
13146
+ const declaredDescription = projectJson?.description?.trim() || projectData.Description?.trim() || undefined;
13147
+ const declaredAuthor = projectJson?.author?.trim() || projectData.Author?.trim() || undefined;
13144
13148
  return {
13145
13149
  type: projectType,
13146
- name: projectData.Name || Path2.basename(projectPath),
13150
+ name: declaredName || Path2.basename(projectPath),
13147
13151
  projectPath,
13148
- projectFilePath
13152
+ projectFilePath,
13153
+ description: declaredDescription,
13154
+ author: declaredAuthor
13149
13155
  };
13150
13156
  }
13151
13157
  loadFromWebAppManifest(projectPath, webAppManifestPath) {
@@ -13175,7 +13181,9 @@ class ProjectPackOptionsBuilder {
13175
13181
  const packageId = !parameters.package.id || parameters.package.id.trim() === "" ? project.name : parameters.package.id;
13176
13182
  const packageInfo = {
13177
13183
  ...parameters.package,
13178
- id: this.packService.sanitizePackageId(packageId)
13184
+ id: this.packService.sanitizePackageId(packageId),
13185
+ description: parameters.package.description || project.description,
13186
+ author: parameters.package.author || project.author
13179
13187
  };
13180
13188
  return {
13181
13189
  projectPath: project.projectPath,
@@ -13872,7 +13880,7 @@ import { translate as translate9 } from "@uipath/solutionpackager-tool-core";
13872
13880
  var package_default = {
13873
13881
  name: "@uipath/project-packager",
13874
13882
  license: "MIT",
13875
- version: "1.202.0-preview.138",
13883
+ version: "1.202.0-preview.140",
13876
13884
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
13877
13885
  type: "module",
13878
13886
  main: "./dist/index.js",
@@ -14329,4 +14337,4 @@ export {
14329
14337
  signNupkgsAsync
14330
14338
  };
14331
14339
 
14332
- //# debugId=53FF7A8B99C7C4D464756E2164756E21
14340
+ //# debugId=B4F9A7CDDC58FE1E64756E2164756E21
@@ -12,4 +12,14 @@ export interface LoadedUiProject {
12
12
  projectPath: string;
13
13
  /** Path to the project file (project.uiproj or webAppManifest.json) */
14
14
  projectFilePath: string;
15
+ /**
16
+ * The description declared in the project file, when it declares one.
17
+ * Becomes the package `<description>` if the caller passes none.
18
+ */
19
+ description?: string;
20
+ /**
21
+ * The author declared in the project file, when it declares one.
22
+ * Becomes the package `<authors>` if the caller passes none.
23
+ */
24
+ author?: string;
15
25
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/project-packager",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.138",
4
+ "version": "1.202.0-preview.140",
5
5
  "description": "UiPath Project Packager - core library for packing individual UiPath projects",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -39,5 +39,5 @@
39
39
  "peerDependencies": {
40
40
  "fflate": "^0.8.2"
41
41
  },
42
- "gitHead": "46372d5c4c4ae9352e9457a99e9d5efc1890cb48"
42
+ "gitHead": "1861498d8a158a710a718c04614523ba59c93781"
43
43
  }