@forge/cli-shared 5.5.0-next.9 → 5.5.1-next.0

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,114 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 5.5.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [01ed6bd]
8
+ - @forge/manifest@7.7.1-next.0
9
+
10
+ ## 5.5.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 6f27f26: Block forge deploy in production if app.connect.key is mutated.
15
+ - ac1a61b: Bundle files on disk instead of memory
16
+ - 60a4b5b: Include i18n resource utility functions to support Forge i18n in the CLI and bundler
17
+ - be67acb: Interpolate string resources in modules
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [10f4545]
22
+ - Updated dependencies [bf34881]
23
+ - Updated dependencies [c341349]
24
+ - Updated dependencies [c113f86]
25
+ - Updated dependencies [c74ca63]
26
+ - Updated dependencies [be67acb]
27
+ - Updated dependencies [c74ca63]
28
+ - Updated dependencies [9a546fd]
29
+ - Updated dependencies [c6377ba]
30
+ - Updated dependencies [d51b7be]
31
+ - Updated dependencies [13fb92c]
32
+ - Updated dependencies [23f6675]
33
+ - Updated dependencies [c81fa57]
34
+ - Updated dependencies [27249cd]
35
+ - Updated dependencies [99b6dd4]
36
+ - Updated dependencies [b0ad6d7]
37
+ - Updated dependencies [ce41b8c]
38
+ - Updated dependencies [7160171]
39
+ - Updated dependencies [b90e809]
40
+ - Updated dependencies [5f82d22]
41
+ - Updated dependencies [f40d3b5]
42
+ - Updated dependencies [26f8528]
43
+ - Updated dependencies [313b8e1]
44
+ - Updated dependencies [bf0fab6]
45
+ - Updated dependencies [fdaaeab]
46
+ - @forge/manifest@7.7.0
47
+ - @forge/i18n@0.0.1
48
+
49
+ ## 5.5.0-next.16
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [99b6dd4]
54
+ - @forge/manifest@7.7.0-next.15
55
+
56
+ ## 5.5.0-next.15
57
+
58
+ ### Minor Changes
59
+
60
+ - 6f27f26: Block forge deploy in production if app.connect.key is mutated.
61
+
62
+ ## 5.5.0-next.14
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [d51b7be]
67
+ - @forge/i18n@0.0.1-next.13
68
+ - @forge/manifest@7.7.0-next.14
69
+
70
+ ## 5.5.0-next.13
71
+
72
+ ### Minor Changes
73
+
74
+ - ac1a61b: Bundle files on disk instead of memory
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies [23f6675]
79
+ - Updated dependencies [27249cd]
80
+ - Updated dependencies [5f82d22]
81
+ - @forge/i18n@0.0.1-next.12
82
+ - @forge/manifest@7.7.0-next.13
83
+
84
+ ## 5.5.0-next.12
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [ce41b8c]
89
+ - @forge/manifest@7.7.0-next.12
90
+ - @forge/i18n@0.0.1-next.11
91
+
92
+ ## 5.5.0-next.11
93
+
94
+ ### Minor Changes
95
+
96
+ - 60a4b5b: Include i18n resource utility functions to support Forge i18n in the CLI and bundler
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [bf34881]
101
+ - Updated dependencies [c81fa57]
102
+ - @forge/manifest@7.7.0-next.11
103
+ - @forge/i18n@0.0.1-next.10
104
+
105
+ ## 5.5.0-next.10
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [26f8528]
110
+ - @forge/manifest@7.7.0-next.10
111
+
3
112
  ## 5.5.0-next.9
4
113
 
5
114
  ### Patch Changes
@@ -45,7 +45,7 @@ class ZipTemplateExtractor {
45
45
  this.zipAccessor = zipAccessor;
46
46
  }
47
47
  async extract(zipFile, destDirectory) {
48
- const extractDirectory = tmp_1.default.dirSync({ prefix: 'template' }).name;
48
+ const extractDirectory = tmp_1.default.dirSync({ prefix: 'template', unsafeCleanup: true }).name;
49
49
  try {
50
50
  await this.zipAccessor.extract(zipFile, extractDirectory);
51
51
  await this.moveArchiveFilesToDirectory(extractDirectory, destDirectory);
@@ -114,7 +114,7 @@ class ConfigFile {
114
114
  }
115
115
  getHostedResourceModules(modules) {
116
116
  const modulesArray = (0, shared_1.flat)(Object.values(modules));
117
- return modulesArray.filter((module) => (0, config_1.isHostedResourceModule)(module));
117
+ return modulesArray.filter(config_1.isHostedResourceModule);
118
118
  }
119
119
  assertNoMissingResources(modules, resources) {
120
120
  const missingResources = modules.filter(({ resource }) => !resources.some(({ key }) => resource === key));
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAuE,CAAC;AAExG,eAAO,MAAM,iBAAiB,sDAAuD,CAAC;AACtF,oBAAY,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,oBAAY,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,UAAU;CAC9C,CAAC;AAEF,oBAAY,qBAAqB,GAAG,UAAU,GAAG;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC/B,GAAG;KACD,UAAU,IAAI,gBAAgB,CAAC,CAAC,EAAE,qBAAqB;CACzD,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,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C,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAAY,GAAG,oCAGjD,CAAC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isHostedResourceModule = exports.validateResource = exports.ModuleEntryPoints = exports.dependencyFileNames = exports.manifestFileName = void 0;
4
4
  exports.manifestFileName = 'manifest.yml';
5
- exports.dependencyFileNames = [exports.manifestFileName, 'package.json', 'package-lock.json', 'yarn.lock'];
5
+ exports.dependencyFileNames = ['package.json', 'package-lock.json', 'yarn.lock'];
6
6
  exports.ModuleEntryPoints = ['view', 'edit', 'create', 'contextConfig'];
7
7
  const validateResource = (resource) => {
8
8
  const { key, path } = resource;