@forge/cli-shared 8.0.1-next.5 → 8.1.0-experimental-b2e5f99

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/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 8.1.0-experimental-b2e5f99
4
+
5
+ ### Minor Changes
6
+
7
+ - 05d33ea: Upgraded archiver from 6.0.2 to 7.0.1, moved atlassian-openapi to @atlassian/atlassian-openapi, bumped get-folder-size from 2.0.1 to 5.0.0
8
+
9
+ ## 8.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - effab31: Bumped cheerio from 0.22 to 1.1
14
+ - 620aea7: Added support for Dashboards context for app creation
15
+
16
+ ### Patch Changes
17
+
18
+ - 25a3da2: Update attribution header
19
+ - 195411c: patch dependencies
20
+ - Updated dependencies [effab31]
21
+ - Updated dependencies [5d07fbf]
22
+ - Updated dependencies [4b15e26]
23
+ - Updated dependencies [634d7b9]
24
+ - Updated dependencies [b9574d4]
25
+ - Updated dependencies [195411c]
26
+ - Updated dependencies [d97a252]
27
+ - Updated dependencies [46daa27]
28
+ - Updated dependencies [1479d2d]
29
+ - Updated dependencies [ca7e661]
30
+ - Updated dependencies [5ab2c49]
31
+ - Updated dependencies [609f68b]
32
+ - @forge/manifest@10.1.0
33
+ - @forge/i18n@0.0.7
34
+ - @forge/util@1.4.10
35
+
36
+ ## 8.1.0-next.9
37
+
38
+ ### Minor Changes
39
+
40
+ - effab31: Bumped cheerio from 0.22 to 1.1
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [effab31]
45
+ - Updated dependencies [609f68b]
46
+ - @forge/manifest@10.1.0-next.9
47
+
48
+ ## 8.1.0-next.8
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [46daa27]
53
+ - @forge/manifest@10.1.0-next.8
54
+
55
+ ## 8.1.0-next.7
56
+
57
+ ### Minor Changes
58
+
59
+ - 620aea7: Added support for Dashboards context for app creation
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [634d7b9]
64
+ - @forge/manifest@10.0.1-next.7
65
+
66
+ ## 8.0.1-next.6
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [5d07fbf]
71
+ - @forge/manifest@10.0.1-next.6
72
+
3
73
  ## 8.0.1-next.5
4
74
 
5
75
  ### Patch Changes
@@ -23,6 +23,6 @@ export declare class CreateAppCommand {
23
23
  constructor(templater: Templater, registerAppCommand: RegisterAppCommand, packageInstaller: PackageInstaller, statsig: StatsigService);
24
24
  execute({ name, description, template, directory, requiredProduct }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
25
25
  getAvailableTemplates(): Promise<string[]>;
26
- filterAvailableProducts<T extends string>(products: T[], teamworkGraph: T, crossContext: T): Promise<T[]>;
26
+ filterAvailableProducts<T extends string>(products: T[], teamworkGraph: T, crossContext: T, dashboards: T): Promise<T[]>;
27
27
  }
28
28
  //# sourceMappingURL=create-an-app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,gBAAiB,SAAQ,KAAK;;CAI1C;AAED,oBAAY,sBAAsB,GAAG,iBAAiB,GAAG;IACvD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;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M,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAHP,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,EACtC,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,cAAc;IAG7B,OAAO,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,SAAS,EACT,eAAe,EAChB,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAa7C,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAS1C,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACnD,QAAQ,EAAE,CAAC,EAAE,EACb,aAAa,EAAE,CAAC,EAChB,YAAY,EAAE,CAAC,EACf,UAAU,EAAE,CAAC,GACZ,OAAO,CAAC,CAAC,EAAE,CAAC;CAkBhB"}
@@ -38,15 +38,18 @@ class CreateAppCommand {
38
38
  }
39
39
  return availableTemplates;
40
40
  }
41
- async filterAvailableProducts(products, teamworkGraph, crossContext) {
41
+ async filterAvailableProducts(products, teamworkGraph, crossContext, dashboards) {
42
42
  const useTeamworkGraph = await this.statsig.isTeamworkGraphProductSupported();
43
43
  const useCrossProduct = await this.statsig.enableCrossProductAppInstallation();
44
+ const useDashboards = await this.statsig.isDashboardsContextSupported();
44
45
  return products.filter((product) => {
45
46
  switch (product) {
46
47
  case teamworkGraph:
47
48
  return useTeamworkGraph;
48
49
  case crossContext:
49
50
  return useCrossProduct;
51
+ case dashboards:
52
+ return useDashboards;
50
53
  default:
51
54
  return true;
52
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"file-system-reader.d.ts","sourceRoot":"","sources":["../../src/file-system/file-system-reader.ts"],"names":[],"mappings":";;;AAAA,OAAO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M,EAAE,CAAC;CAIpE"}
@@ -8,7 +8,6 @@ const os_1 = require("os");
8
8
  const path_1 = tslib_1.__importStar(require("path"));
9
9
  const util_1 = require("util");
10
10
  const recursive_readdir_1 = tslib_1.__importDefault(require("recursive-readdir"));
11
- const get_folder_size_1 = tslib_1.__importDefault(require("get-folder-size"));
12
11
  const shared_1 = require("../shared");
13
12
  const FILE_NOT_FOUND_CODE = 'ENOENT';
14
13
  class FileSystemReader {
@@ -97,14 +96,12 @@ class FileSystemReader {
97
96
  }
98
97
  }
99
98
  async getFolderSizeAsync(directory) {
100
- return new Promise((resolve) => {
101
- (0, get_folder_size_1.default)(directory, (err, size) => {
102
- if (err) {
103
- resolve(undefined);
104
- }
105
- return resolve(size);
106
- });
107
- });
99
+ const getFolderSize = (await import('get-folder-size')).default;
100
+ const result = await getFolderSize(directory);
101
+ if (result.errors) {
102
+ return undefined;
103
+ }
104
+ return result.size;
108
105
  }
109
106
  handleFileError(error) {
110
107
  if (error && error.code === FILE_NOT_FOUND_CODE) {