@forge/lint 6.1.1-next.2 → 6.2.0-next.10
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 +64 -0
- package/out/lint/linters/permission-linter/permission-linter.d.ts.map +1 -1
- package/out/lint/linters/permission-linter/permission-linter.js +1 -2
- package/out/lint/linters/server-side-linter/server-side-linter.d.ts.map +1 -1
- package/out/lint/linters/server-side-linter/server-side-linter.js +8 -3
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# @forge/lint
|
|
2
2
|
|
|
3
|
+
## 6.2.0-next.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [873db00]
|
|
8
|
+
- @forge/csp@6.3.1-next.0
|
|
9
|
+
|
|
10
|
+
## 6.2.0-next.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [9afd5c3]
|
|
15
|
+
- @forge/cli-shared@9.4.0-next.8
|
|
16
|
+
|
|
17
|
+
## 6.2.0-next.8
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [ccd5143]
|
|
22
|
+
- @forge/manifest@13.3.1-next.1
|
|
23
|
+
- @forge/cli-shared@9.4.0-next.7
|
|
24
|
+
|
|
25
|
+
## 6.2.0-next.7
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [d1767a0]
|
|
30
|
+
- @forge/cli-shared@9.4.0-next.6
|
|
31
|
+
|
|
32
|
+
## 6.2.0-next.6
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [016ed9d]
|
|
37
|
+
- @forge/cli-shared@9.4.0-next.5
|
|
38
|
+
|
|
39
|
+
## 6.2.0-next.5
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- 2b13c2e: Move from node-fetch to native fetch
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies [2b13c2e]
|
|
48
|
+
- @forge/cli-shared@9.4.0-next.4
|
|
49
|
+
|
|
50
|
+
## 6.2.0-next.4
|
|
51
|
+
|
|
52
|
+
### Minor Changes
|
|
53
|
+
|
|
54
|
+
- ff4f2bf: Add `forge site provision` to provision a new demo site or get an existing demo site.
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- Updated dependencies [ff4f2bf]
|
|
59
|
+
- @forge/cli-shared@9.4.0-next.3
|
|
60
|
+
|
|
61
|
+
## 6.2.0-next.3
|
|
62
|
+
|
|
63
|
+
### Minor Changes
|
|
64
|
+
|
|
65
|
+
- 47fb0a1: Fix manifest validation logic when using interpolation
|
|
66
|
+
|
|
3
67
|
## 6.1.1-next.2
|
|
4
68
|
|
|
5
69
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/permission-linter/permission-linter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAe,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"permission-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/permission-linter/permission-linter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAe,MAAM,iBAAiB,CAAC;AAC/E,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EACL,OAAO,EAEP,eAAe,EACf,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,aAAa,EACd,MAAM,sBAAsB,CAA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vE,MAAM,CAAC,mBAAmB,SAAqC;IAE/D,OAAO,CAAC,IAAI,CAAC,CAA0B;IACvC,OAAO,CAAC,UAAU,CAAC,CAA0B;IAC7C,OAAO,CAAC,SAAS,CAAC,CAA0B;IAC5C,OAAO,CAAC,KAAK,CAAC,CAAa;gBAGzB,WAAW,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAC1B,MAAM,EAAE,UAAU;IAKP,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IA6FvC,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAejD,SAAS,CAAC,QAAQ,IACd,CAAC,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,GACtG,SAAS;IAIb,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAyB3D,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAWtE,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAKrE,OAAO,CAAC,YAAY;CAarB"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PermissionLinter = exports.fixMissingPermissions = exports.deprecatedEgressPermissions = exports.findMissingPermissions = exports.NON_FWD_SLASH_REGEX = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
6
|
-
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
|
|
7
6
|
const base_linter_1 = tslib_1.__importDefault(require("../../base-linter"));
|
|
8
7
|
const api_call_interface_1 = require("./api-call-interface");
|
|
9
8
|
const verifiers_1 = require("./verifiers");
|
|
@@ -248,7 +247,7 @@ class PermissionLinter extends base_linter_1.default {
|
|
|
248
247
|
async getProductPaths(cacheKey, url) {
|
|
249
248
|
const cached = this.cache?.get(cacheKey);
|
|
250
249
|
if (!cached) {
|
|
251
|
-
const response = await (
|
|
250
|
+
const response = await fetch(url);
|
|
252
251
|
const jsonBody = await response.json();
|
|
253
252
|
void this.cache?.set(cacheKey, jsonBody, 12 * ONE_HOUR_MS);
|
|
254
253
|
return jsonBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/server-side-linter/server-side-linter.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"server-side-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/server-side-linter/server-side-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,UAAU,EAAkB,MAAM,wBAAwB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAsC,MAAM,mBAAmB,CAAC;AACtH,OAAO,EAAE,aAAa,EAAqB,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,qBAAa,gBAAiB,SAAQ,cAAc;IAIhD,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAE7B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAV1B,OAAO,CAAC,iBAAiB,CAAqB;gBAG3B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,gBAAgB,EAC5B,QAAQ,EAAE,WAAW,EACrB,YAAY,EAAE,YAAY,EAC3C,MAAM,EAAE,UAAU,EACD,OAAO,EAAE;QACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;WAKU,QAAQ,CACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE;QACP,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;IAeH,OAAO,CAAC,qBAAqB;IAsBvB,gBAAgB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAmBzC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAsBhC,OAAO,CAAC,gBAAgB;CAIzB"}
|
|
@@ -52,11 +52,16 @@ class ServerSideLinter extends abstract_linter_1.AbstractLinter {
|
|
|
52
52
|
return [this.mapServerSideResponse(results)];
|
|
53
53
|
}
|
|
54
54
|
async bootstrap() {
|
|
55
|
-
const
|
|
56
|
-
if (!
|
|
55
|
+
const manifestRawContent = this.fileReader.readFile(cli_shared_1.manifestFileName);
|
|
56
|
+
if (!manifestRawContent) {
|
|
57
57
|
throw new Error('No Manifest content found');
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
const manifestParser = new manifest_1.ManifestParserBuilder().withInterpolators().build();
|
|
60
|
+
const manifestContent = manifestParser.parseManifestAsString({
|
|
61
|
+
content: manifestRawContent,
|
|
62
|
+
filePath: cli_shared_1.manifestFileName
|
|
63
|
+
});
|
|
64
|
+
this.archiver.addFile(cli_shared_1.manifestFileName, Buffer.from(manifestContent));
|
|
60
65
|
const archivePath = await this.archiver.finalise();
|
|
61
66
|
const uploadUrl = await this.client.createAppManifestUploadUrl(this.manifest.app.id, this.environment);
|
|
62
67
|
await this.fileUploader.uploadFromPath(uploadUrl, archivePath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/lint",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0-next.10",
|
|
4
4
|
"description": "Linting for forge apps",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -15,20 +15,18 @@
|
|
|
15
15
|
"@types/array.prototype.flatmap": "^1.2.6",
|
|
16
16
|
"@types/cross-spawn": "^6.0.6",
|
|
17
17
|
"@types/eslint": "8.56.12",
|
|
18
|
-
"@types/node-fetch": "^2.6.12",
|
|
19
18
|
"eslint-plugin-import": "^2.29.1"
|
|
20
19
|
},
|
|
21
20
|
"dependencies": {
|
|
22
|
-
"@forge/cli-shared": "9.
|
|
23
|
-
"@forge/csp": "6.3.0",
|
|
21
|
+
"@forge/cli-shared": "9.4.0-next.8",
|
|
22
|
+
"@forge/csp": "6.3.1-next.0",
|
|
24
23
|
"@forge/egress": "3.0.0",
|
|
25
|
-
"@forge/manifest": "13.3.1-next.
|
|
24
|
+
"@forge/manifest": "13.3.1-next.1",
|
|
26
25
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
27
26
|
"archiver": "^8.0.0",
|
|
28
27
|
"array.prototype.flatmap": "^1.3.3",
|
|
29
28
|
"@atlassian/atlassian-openapi": "^1.0.6",
|
|
30
29
|
"cross-spawn": "^7.0.6",
|
|
31
|
-
"node-fetch": "2.7.0",
|
|
32
30
|
"tmp": "^0.2.3",
|
|
33
31
|
"typescript": "5.9.2"
|
|
34
32
|
},
|