@ms-cloudpack/cli 0.72.12 → 0.72.14

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 (87) hide show
  1. package/lib/commands/bundle/execute.d.ts.map +1 -1
  2. package/lib/commands/bundle/execute.js +7 -8
  3. package/lib/commands/bundle/execute.js.map +1 -1
  4. package/lib/commands/cache/clean.d.ts.map +1 -1
  5. package/lib/commands/cache/clean.js +6 -11
  6. package/lib/commands/cache/clean.js.map +1 -1
  7. package/lib/commands/config/delete.js +4 -4
  8. package/lib/commands/config/delete.js.map +1 -1
  9. package/lib/commands/config/get.js +5 -5
  10. package/lib/commands/config/get.js.map +1 -1
  11. package/lib/commands/config/list.js +5 -5
  12. package/lib/commands/config/list.js.map +1 -1
  13. package/lib/commands/config/set.js +4 -4
  14. package/lib/commands/config/set.js.map +1 -1
  15. package/lib/commands/info/lockFile/execute.d.ts.map +1 -1
  16. package/lib/commands/info/lockFile/execute.js +10 -14
  17. package/lib/commands/info/lockFile/execute.js.map +1 -1
  18. package/lib/commands/info/nonSemverDeps/execute.d.ts.map +1 -1
  19. package/lib/commands/info/nonSemverDeps/execute.js +8 -10
  20. package/lib/commands/info/nonSemverDeps/execute.js.map +1 -1
  21. package/lib/commands/init/evaluatePath.d.ts +2 -2
  22. package/lib/commands/init/evaluatePath.d.ts.map +1 -1
  23. package/lib/commands/init/evaluatePath.js +2 -2
  24. package/lib/commands/init/evaluatePath.js.map +1 -1
  25. package/lib/commands/init/execute.js +4 -4
  26. package/lib/commands/init/execute.js.map +1 -1
  27. package/lib/commands/init/init.js +148 -146
  28. package/lib/commands/init/init.js.map +1 -1
  29. package/lib/commands/link/execute.d.ts.map +1 -1
  30. package/lib/commands/link/execute.js +8 -4
  31. package/lib/commands/link/execute.js.map +1 -1
  32. package/lib/commands/link/getSessionToLink.d.ts +5 -4
  33. package/lib/commands/link/getSessionToLink.d.ts.map +1 -1
  34. package/lib/commands/link/getSessionToLink.js +36 -20
  35. package/lib/commands/link/getSessionToLink.js.map +1 -1
  36. package/lib/commands/setup/execute.js +2 -2
  37. package/lib/commands/setup/execute.js.map +1 -1
  38. package/lib/commands/start/execute.d.ts.map +1 -1
  39. package/lib/commands/start/execute.js +37 -21
  40. package/lib/commands/start/execute.js.map +1 -1
  41. package/lib/commands/start/getStartingAppPath.d.ts +5 -2
  42. package/lib/commands/start/getStartingAppPath.d.ts.map +1 -1
  43. package/lib/commands/start/getStartingAppPath.js +36 -9
  44. package/lib/commands/start/getStartingAppPath.js.map +1 -1
  45. package/lib/commands/sync/execute.d.ts.map +1 -1
  46. package/lib/commands/sync/execute.js +43 -42
  47. package/lib/commands/sync/execute.js.map +1 -1
  48. package/lib/commands/unlink/execute.d.ts.map +1 -1
  49. package/lib/commands/unlink/execute.js +8 -4
  50. package/lib/commands/unlink/execute.js.map +1 -1
  51. package/lib/types/CommandAction.d.ts +14 -8
  52. package/lib/types/CommandAction.d.ts.map +1 -1
  53. package/lib/types/CommandAction.js.map +1 -1
  54. package/lib/utilities/CommandExecutor.d.ts +8 -4
  55. package/lib/utilities/CommandExecutor.d.ts.map +1 -1
  56. package/lib/utilities/CommandExecutor.js +58 -49
  57. package/lib/utilities/CommandExecutor.js.map +1 -1
  58. package/lib/utilities/parseMatch.d.ts.map +1 -1
  59. package/lib/utilities/parseMatch.js +5 -0
  60. package/lib/utilities/parseMatch.js.map +1 -1
  61. package/lib/utilities/runPrerequisites.js +1 -1
  62. package/lib/utilities/runPrerequisites.js.map +1 -1
  63. package/package.json +13 -13
  64. package/lib/commands/link/getSessionFromUser.d.ts +0 -9
  65. package/lib/commands/link/getSessionFromUser.d.ts.map +0 -1
  66. package/lib/commands/link/getSessionFromUser.js +0 -26
  67. package/lib/commands/link/getSessionFromUser.js.map +0 -1
  68. package/lib/commands/start/createPathToChoiceMap.d.ts +0 -16
  69. package/lib/commands/start/createPathToChoiceMap.d.ts.map +0 -1
  70. package/lib/commands/start/createPathToChoiceMap.js +0 -29
  71. package/lib/commands/start/createPathToChoiceMap.js.map +0 -1
  72. package/lib/commands/start/getAppPathFromUser.d.ts +0 -9
  73. package/lib/commands/start/getAppPathFromUser.d.ts.map +0 -1
  74. package/lib/commands/start/getAppPathFromUser.js +0 -28
  75. package/lib/commands/start/getAppPathFromUser.js.map +0 -1
  76. package/lib/commands/start/getMatchingApps.d.ts +0 -9
  77. package/lib/commands/start/getMatchingApps.d.ts.map +0 -1
  78. package/lib/commands/start/getMatchingApps.js +0 -10
  79. package/lib/commands/start/getMatchingApps.js.map +0 -1
  80. package/lib/performance/registerPerformanceObservers.d.ts +0 -7
  81. package/lib/performance/registerPerformanceObservers.d.ts.map +0 -1
  82. package/lib/performance/registerPerformanceObservers.js +0 -20
  83. package/lib/performance/registerPerformanceObservers.js.map +0 -1
  84. package/lib/utilities/stopServers.d.ts +0 -13
  85. package/lib/utilities/stopServers.d.ts.map +0 -1
  86. package/lib/utilities/stopServers.js +0 -18
  87. package/lib/utilities/stopServers.js.map +0 -1
@@ -1,7 +0,0 @@
1
- import type { TelemetryClient } from '@ms-cloudpack/telemetry';
2
- /**
3
- * Registers a performance observer that will log all performance measurements and markers to Application Insights.
4
- * @param span The span to add the events to.
5
- */
6
- export declare function registerPerformanceObservers(telemetryClient: TelemetryClient): void;
7
- //# sourceMappingURL=registerPerformanceObservers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registerPerformanceObservers.d.ts","sourceRoot":"","sources":["../../src/performance/registerPerformanceObservers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG/D;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,eAAe,EAAE,eAAe,QAc5E"}
@@ -1,20 +0,0 @@
1
- import { PerformanceObserver } from 'perf_hooks';
2
- /**
3
- * Registers a performance observer that will log all performance measurements and markers to Application Insights.
4
- * @param span The span to add the events to.
5
- */
6
- export function registerPerformanceObservers(telemetryClient) {
7
- const perfMeasurementObserver = new PerformanceObserver((items) => {
8
- for (const { name, duration } of items.getEntries()) {
9
- telemetryClient.performance.record({ name, value: duration });
10
- }
11
- });
12
- perfMeasurementObserver.observe({ entryTypes: ['measure'] });
13
- const perfMarkObserver = new PerformanceObserver((items) => {
14
- for (const { name, startTime } of items.getEntries()) {
15
- telemetryClient.performance.record({ name, value: startTime });
16
- }
17
- });
18
- perfMarkObserver.observe({ entryTypes: ['mark'] });
19
- }
20
- //# sourceMappingURL=registerPerformanceObservers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registerPerformanceObservers.js","sourceRoot":"","sources":["../../src/performance/registerPerformanceObservers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAAC,eAAgC;IAC3E,MAAM,uBAAuB,GAAG,IAAI,mBAAmB,CAAC,CAAC,KAAK,EAAE,EAAE;QAChE,KAAK,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC;YACpD,eAAe,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChE,CAAC;IACH,CAAC,CAAC,CAAC;IACH,uBAAuB,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAE7D,MAAM,gBAAgB,GAAG,IAAI,mBAAmB,CAAC,CAAC,KAAK,EAAE,EAAE;QACzD,KAAK,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC;YACrD,eAAe,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACjE,CAAC;IACH,CAAC,CAAC,CAAC;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACrD,CAAC","sourcesContent":["import type { TelemetryClient } from '@ms-cloudpack/telemetry';\nimport { PerformanceObserver } from 'perf_hooks';\n\n/**\n * Registers a performance observer that will log all performance measurements and markers to Application Insights.\n * @param span The span to add the events to.\n */\nexport function registerPerformanceObservers(telemetryClient: TelemetryClient) {\n const perfMeasurementObserver = new PerformanceObserver((items) => {\n for (const { name, duration } of items.getEntries()) {\n telemetryClient.performance.record({ name, value: duration });\n }\n });\n perfMeasurementObserver.observe({ entryTypes: ['measure'] });\n\n const perfMarkObserver = new PerformanceObserver((items) => {\n for (const { name, startTime } of items.getEntries()) {\n telemetryClient.performance.record({ name, value: startTime });\n }\n });\n perfMarkObserver.observe({ entryTypes: ['mark'] });\n}\n"]}
@@ -1,13 +0,0 @@
1
- import type { CommandActionParams } from '../types/CommandAction.ts';
2
- type ExitFunction = CommandActionParams<object>['exit'];
3
- /**
4
- * Set the exit function to be used for `stopServers` (see that function for more details).
5
- * Called by `start`'s executor.
6
- */
7
- export declare function setStopServersFunction(exit: ExitFunction): void;
8
- /**
9
- * Emulate the user pressing ctrl+C for the start command (no-op for other commands).
10
- */
11
- export declare function stopServers(): Promise<void>;
12
- export {};
13
- //# sourceMappingURL=stopServers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stopServers.d.ts","sourceRoot":"","sources":["../../src/utilities/stopServers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAIrE,KAAK,YAAY,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,YAAY,QAExD;AAED;;GAEG;AACH,wBAAsB,WAAW,kBAKhC"}
@@ -1,18 +0,0 @@
1
- let exitFunction;
2
- /**
3
- * Set the exit function to be used for `stopServers` (see that function for more details).
4
- * Called by `start`'s executor.
5
- */
6
- export function setStopServersFunction(exit) {
7
- exitFunction = exit;
8
- }
9
- /**
10
- * Emulate the user pressing ctrl+C for the start command (no-op for other commands).
11
- */
12
- export async function stopServers() {
13
- if (exitFunction) {
14
- await exitFunction({ exitCode: 0, message: 'stopServers called' });
15
- exitFunction = undefined;
16
- }
17
- }
18
- //# sourceMappingURL=stopServers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stopServers.js","sourceRoot":"","sources":["../../src/utilities/stopServers.ts"],"names":[],"mappings":"AAKA,IAAI,YAAsC,CAAC;AAE3C;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAkB;IACvD,YAAY,GAAG,IAAI,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC,CAAC;QACnE,YAAY,GAAG,SAAS,CAAC;IAC3B,CAAC;AACH,CAAC","sourcesContent":["import type { CommandActionParams } from '../types/CommandAction.ts';\n\n// This is in a separate file so that unrelated tests don't have to import the `start` executor.\n\ntype ExitFunction = CommandActionParams<object>['exit'];\nlet exitFunction: ExitFunction | undefined;\n\n/**\n * Set the exit function to be used for `stopServers` (see that function for more details).\n * Called by `start`'s executor.\n */\nexport function setStopServersFunction(exit: ExitFunction) {\n exitFunction = exit;\n}\n\n/**\n * Emulate the user pressing ctrl+C for the start command (no-op for other commands).\n */\nexport async function stopServers() {\n if (exitFunction) {\n await exitFunction({ exitCode: 0, message: 'stopServers called' });\n exitFunction = undefined;\n }\n}\n"]}