@uipath/solution-packager 1.199.0 → 1.201.0-preview.115

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/index.js CHANGED
@@ -1172,7 +1172,7 @@ class SolutionPackager {
1172
1172
  return this.setupAsync(zipData, operationId);
1173
1173
  }
1174
1174
  async packSolutionAsync(options, cancellationToken) {
1175
- return await this.telemetryService.trackRequest("SolutionPackager.PackSolution" /* SolutionPackagerPackSolution */, async () => {
1175
+ return await this.telemetryService.trackDependencyOperation("SolutionPackager.PackSolution" /* SolutionPackagerPackSolution */, "pack", async () => {
1176
1176
  try {
1177
1177
  await this.governancePolicyService.resolveGovernancePolicyAsync(options.validateOptions, options.connection, cancellationToken);
1178
1178
  let result = await this.packOptionsValidator.validateAsync(options, cancellationToken);
@@ -1202,7 +1202,7 @@ class SolutionPackager {
1202
1202
  });
1203
1203
  }
1204
1204
  async validateSolutionAsync(options, cancellationToken) {
1205
- return await this.telemetryService.trackRequest("SolutionPackager.ValidateSolution" /* SolutionPackagerValidateSolution */, async () => {
1205
+ return await this.telemetryService.trackDependencyOperation("SolutionPackager.ValidateSolution" /* SolutionPackagerValidateSolution */, "validate", async () => {
1206
1206
  try {
1207
1207
  await this.governancePolicyService.resolveGovernancePolicyAsync(options.validateOptions, options.connection, cancellationToken);
1208
1208
  const validationResult = await this.validateOptionsValidator.validateAsync(options, cancellationToken);
@@ -1229,7 +1229,7 @@ class SolutionPackager {
1229
1229
  });
1230
1230
  }
1231
1231
  async restoreSolutionAsync(options, cancellationToken) {
1232
- return await this.telemetryService.trackRequest("SolutionPackager.RestoreSolution" /* SolutionPackagerRestoreSolution */, async () => {
1232
+ return await this.telemetryService.trackDependencyOperation("SolutionPackager.RestoreSolution" /* SolutionPackagerRestoreSolution */, "restore", async () => {
1233
1233
  try {
1234
1234
  if (!options.outputPath) {
1235
1235
  options.outputPath = await this.temporaryStorage.getTempSubfolderPathAsync("restore");
@@ -1254,7 +1254,7 @@ class SolutionPackager {
1254
1254
  });
1255
1255
  }
1256
1256
  async cleanupSolutionAsync(options, cancellationToken) {
1257
- return await this.telemetryService.trackRequest("SolutionPackager.CleanupSolution" /* SolutionPackagerCleanupSolution */, async () => {
1257
+ return await this.telemetryService.trackDependencyOperation("SolutionPackager.CleanupSolution" /* SolutionPackagerCleanupSolution */, "cleanup", async () => {
1258
1258
  try {
1259
1259
  const loadedSolution = await this.solutionLoader.loadSolution(options.inputPath);
1260
1260
  const solution = this.filterSolutionProjects(loadedSolution, options.projectDesignIds);
@@ -1300,7 +1300,8 @@ class SolutionPackager {
1300
1300
  connection: options.connection,
1301
1301
  logger: this.logger,
1302
1302
  workflowCompilerVersion: options.workflowCompilerVersion,
1303
- lockKey: options.lockKey
1303
+ lockKey: options.lockKey,
1304
+ jobTarget: options.jobTarget
1304
1305
  };
1305
1306
  }
1306
1307
  async getPackageStreamsAsync(result) {
@@ -1368,6 +1369,7 @@ class SolutionPackOptions extends PackagerParameters {
1368
1369
  skipImports: false
1369
1370
  };
1370
1371
  lockKey;
1372
+ jobTarget;
1371
1373
  }
1372
1374
  export {
1373
1375
  createBrowserSolutionPackager,
@@ -1378,4 +1380,4 @@ export {
1378
1380
  BuildConfiguration2 as BuildConfiguration
1379
1381
  };
1380
1382
 
1381
- //# debugId=4E45DDAB7049468C64756E2164756E21
1383
+ //# debugId=F712ECC6898F8E0A64756E2164756E21
package/dist/node.js CHANGED
@@ -379,6 +379,9 @@ I18nManager.registerTranslations("zh-CN", zh_CN_default);
379
379
  I18nManager.registerTranslations("zh-TW", zh_TW_default);
380
380
  I18nManager.registerTranslations("zu", zu_default);
381
381
 
382
+ // src/node.ts
383
+ import { RulesConfigFileType as RulesConfigFileType2 } from "@uipath/project-packager";
384
+
382
385
  // src/models/solution-pack-options.ts
383
386
  import {
384
387
  PackagerParameters,
@@ -406,6 +409,7 @@ class SolutionPackOptions extends PackagerParameters {
406
409
  skipImports: false
407
410
  };
408
411
  lockKey;
412
+ jobTarget;
409
413
  }
410
414
  // src/node-solution-packager-factory.ts
411
415
  import {
@@ -1197,7 +1201,7 @@ class SolutionPackager {
1197
1201
  return this.setupAsync(zipData, operationId);
1198
1202
  }
1199
1203
  async packSolutionAsync(options, cancellationToken) {
1200
- return await this.telemetryService.trackRequest("SolutionPackager.PackSolution" /* SolutionPackagerPackSolution */, async () => {
1204
+ return await this.telemetryService.trackDependencyOperation("SolutionPackager.PackSolution" /* SolutionPackagerPackSolution */, "pack", async () => {
1201
1205
  try {
1202
1206
  await this.governancePolicyService.resolveGovernancePolicyAsync(options.validateOptions, options.connection, cancellationToken);
1203
1207
  let result = await this.packOptionsValidator.validateAsync(options, cancellationToken);
@@ -1227,7 +1231,7 @@ class SolutionPackager {
1227
1231
  });
1228
1232
  }
1229
1233
  async validateSolutionAsync(options, cancellationToken) {
1230
- return await this.telemetryService.trackRequest("SolutionPackager.ValidateSolution" /* SolutionPackagerValidateSolution */, async () => {
1234
+ return await this.telemetryService.trackDependencyOperation("SolutionPackager.ValidateSolution" /* SolutionPackagerValidateSolution */, "validate", async () => {
1231
1235
  try {
1232
1236
  await this.governancePolicyService.resolveGovernancePolicyAsync(options.validateOptions, options.connection, cancellationToken);
1233
1237
  const validationResult = await this.validateOptionsValidator.validateAsync(options, cancellationToken);
@@ -1254,7 +1258,7 @@ class SolutionPackager {
1254
1258
  });
1255
1259
  }
1256
1260
  async restoreSolutionAsync(options, cancellationToken) {
1257
- return await this.telemetryService.trackRequest("SolutionPackager.RestoreSolution" /* SolutionPackagerRestoreSolution */, async () => {
1261
+ return await this.telemetryService.trackDependencyOperation("SolutionPackager.RestoreSolution" /* SolutionPackagerRestoreSolution */, "restore", async () => {
1258
1262
  try {
1259
1263
  if (!options.outputPath) {
1260
1264
  options.outputPath = await this.temporaryStorage.getTempSubfolderPathAsync("restore");
@@ -1279,7 +1283,7 @@ class SolutionPackager {
1279
1283
  });
1280
1284
  }
1281
1285
  async cleanupSolutionAsync(options, cancellationToken) {
1282
- return await this.telemetryService.trackRequest("SolutionPackager.CleanupSolution" /* SolutionPackagerCleanupSolution */, async () => {
1286
+ return await this.telemetryService.trackDependencyOperation("SolutionPackager.CleanupSolution" /* SolutionPackagerCleanupSolution */, "cleanup", async () => {
1283
1287
  try {
1284
1288
  const loadedSolution = await this.solutionLoader.loadSolution(options.inputPath);
1285
1289
  const solution = this.filterSolutionProjects(loadedSolution, options.projectDesignIds);
@@ -1325,7 +1329,8 @@ class SolutionPackager {
1325
1329
  connection: options.connection,
1326
1330
  logger: this.logger,
1327
1331
  workflowCompilerVersion: options.workflowCompilerVersion,
1328
- lockKey: options.lockKey
1332
+ lockKey: options.lockKey,
1333
+ jobTarget: options.jobTarget
1329
1334
  };
1330
1335
  }
1331
1336
  async getPackageStreamsAsync(result) {
@@ -1372,7 +1377,8 @@ async function createNodeSolutionPackager(options) {
1372
1377
  export {
1373
1378
  createNodeSolutionPackager,
1374
1379
  SolutionPackager,
1375
- SolutionPackOptions
1380
+ SolutionPackOptions,
1381
+ RulesConfigFileType2 as RulesConfigFileType
1376
1382
  };
1377
1383
 
1378
- //# debugId=C0442107986FE5B364756E2164756E21
1384
+ //# debugId=5A92CC39129F93DD64756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import type { PackageSigningInfo, PackOptions, PublishInfo, ValidateOptions } from "@uipath/project-packager";
2
2
  import { PackagerParameters } from "@uipath/project-packager";
3
- import { BuildConfiguration, type NugetPackageInfo } from "@uipath/solutionpackager-tool-core";
3
+ import { BuildConfiguration, type NugetPackageInfo, type PackJobTarget } from "@uipath/solutionpackager-tool-core";
4
4
  /**
5
5
  * Solution-specific parameters extending base packager parameters
6
6
  */
@@ -50,6 +50,11 @@ export declare class SolutionPackOptions extends PackagerParameters {
50
50
  * by that session. Set by the caller that holds the lock.
51
51
  */
52
52
  lockKey?: string;
53
+ /**
54
+ * Where the remote-agent job that compiles RPA projects should run. Omit for
55
+ * serverless, which is the default and the only prior behaviour.
56
+ */
57
+ jobTarget?: PackJobTarget;
53
58
  }
54
59
  /**
55
60
  * Options controlling the cleanup operation.
@@ -1,4 +1,5 @@
1
1
  import "./i18n/index.js";
2
+ export { RulesConfigFileType } from "@uipath/project-packager";
2
3
  export { SolutionPackOptions } from "./models/solution-pack-options.js";
3
4
  export { createNodeSolutionPackager } from "./node-solution-packager-factory.js";
4
5
  export type { ISolutionPackager } from "./services/solution-packager.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/solution-packager",
3
3
  "license": "MIT",
4
- "version": "1.199.0",
4
+ "version": "1.201.0-preview.115",
5
5
  "description": "UiPath Solution Packager - core library for packing UiPath solutions",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -28,11 +28,11 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@uipath/project-packager": "1.199.0",
32
- "@uipath/solutionpackager-tool-core": "1.199.0"
31
+ "@uipath/project-packager": "1.201.0",
32
+ "@uipath/solutionpackager-tool-core": "1.201.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "fflate": "^0.8.2"
36
36
  },
37
- "gitHead": "723e6801b77b5926ba75e75b6a756cc38b1b7adc"
37
+ "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
38
38
  }