@forge/lint 3.5.0-next.7 → 3.5.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,37 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 3.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cf0ab7be: Add egress permissions check for Image component URLs
8
+ - aa9b9754: Add scope validations for forge remote compute scopes
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies [5eff9d5f]
13
+ - Updated dependencies [7dd1550b]
14
+ - Updated dependencies [0449769b]
15
+ - Updated dependencies [d94f614e]
16
+ - Updated dependencies [aa9b9754]
17
+ - Updated dependencies [83eb996c]
18
+ - Updated dependencies [08c6f1a8]
19
+ - Updated dependencies [05d6c05e]
20
+ - @forge/cli-shared@3.12.0
21
+ - @forge/manifest@4.13.0
22
+
23
+ ## 3.5.0-next.8
24
+
25
+ ### Minor Changes
26
+
27
+ - aa9b9754: Add scope validations for forge remote compute scopes
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [aa9b9754]
32
+ - @forge/manifest@4.13.0-next.4
33
+ - @forge/cli-shared@3.12.0-next.7
34
+
3
35
  ## 3.5.0-next.7
4
36
 
5
37
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/lint/lint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;AAIpB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAC;AASxG,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MA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AM,IAAI,gBACF,MAAM,EAAE,YACX,QAAQ,eACL,MAAM,UACX,UAAU,6BAhBR,MAAM,UACR,eAAe,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAAC,YAeV,eAAe,EAAE,KASzB,QAAQ,UAAU,EAAE,CAmCtB,CAAC;AAEF,eAAO,MAAM,QAAQ,WACX,UAAU,WACV,eAAe,KACtB,QAAQ,UAAU,EAAE,CAGtB,CAAC"}
package/out/lint/lint.js CHANGED
@@ -14,6 +14,7 @@ const permissions_manifest_linter_1 = require("./linters/manifest-linter/permiss
14
14
  const permission_linter_1 = require("./linters/permission-linter/permission-linter");
15
15
  const deprecated_csp_permissions_manifest_linter_1 = require("./linters/manifest-linter/deprecated-csp-permissions-manifest-linter");
16
16
  const dynamic_properties_permissions_linter_1 = require("./linters/dynamic-properties-linter/dynamic-properties-permissions-linter");
17
+ const remote_compute_manifest_linter_1 = require("./linters/manifest-linter/remote-compute-manifest-linter");
17
18
  const reportLintResults = (logger, lintResults, showSummary = true) => {
18
19
  let numErrors = 0, numWarnings = 0;
19
20
  let noProblemsFound = true;
@@ -79,6 +80,7 @@ const lint = async (filesToLint, manifest, environment, logger, parseFunction =
79
80
  new permission_linter_1.PermissionLinter(environment, manifest, logger),
80
81
  new permissions_manifest_linter_1.PermissionsManifestLinter(logger),
81
82
  new deprecated_csp_permissions_manifest_linter_1.DeprecatedCspPermissionsManifestLinter(logger),
83
+ new remote_compute_manifest_linter_1.RemoteComputeManifestLinter(logger),
82
84
  new full_manifest_linter_1.FullManifestLinter(logger),
83
85
  new handler_linter_1.HandlerLinter(environment, manifest, logger),
84
86
  new dynamic_properties_permissions_linter_1.DynamicPropertiesPermissionsLinter(environment, manifest, logger)
@@ -0,0 +1,9 @@
1
+ import { ManifestValidationResult, SchemaValidationError } from '@forge/manifest';
2
+ import { AbstractManifestLinter } from './abstract-manifest-linter';
3
+ import { LintResultRule, LintFixState, LintLogger } from '../../linter-interface';
4
+ export declare class RemoteComputeManifestLinter extends AbstractManifestLinter {
5
+ constructor(logger: LintLogger);
6
+ getFixer(): ((errors: LintResultRule[], warnings: LintResultRule[], state: LintFixState) => Promise<LintFixState>) | undefined;
7
+ getResultsForFixer(results: ManifestValidationResult<any>): SchemaValidationError[];
8
+ }
9
+ //# sourceMappingURL=remote-compute-manifest-linter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-compute-manifest-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/manifest-linter/remote-compute-manifest-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGlF,qBAAa,2BAA4B,SAAQ,sBAAsB;gBACzD,MAAM,EAAE,UAAU;IAI9B,QAAQ,IACJ,CAAC,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,GACtG,SAAS;IAIb,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,CAAC,GAAG,CAAC,GAAG,qBAAqB,EAAE;CAGpF"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RemoteComputeManifestLinter = void 0;
4
+ const manifest_1 = require("@forge/manifest");
5
+ const abstract_manifest_linter_1 = require("./abstract-manifest-linter");
6
+ const permission_linter_1 = require("../permission-linter/permission-linter");
7
+ class RemoteComputeManifestLinter extends abstract_manifest_linter_1.AbstractManifestLinter {
8
+ constructor(logger) {
9
+ super(manifest_1.ValidationTypes.FORGE_REMOTE_COMPUTE, logger);
10
+ }
11
+ getFixer() {
12
+ return permission_linter_1.fixMissingPermissions;
13
+ }
14
+ getResultsForFixer(results) {
15
+ var _a;
16
+ return ((_a = results.errors) === null || _a === void 0 ? void 0 : _a.filter((error) => { var _a; return (_a = error.metadata) === null || _a === void 0 ? void 0 : _a.missingPermission; })) || [];
17
+ }
18
+ }
19
+ exports.RemoteComputeManifestLinter = RemoteComputeManifestLinter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/lint",
3
- "version": "3.5.0-next.7",
3
+ "version": "3.5.0",
4
4
  "description": "Linting for forge apps",
5
5
  "main": "out/index.js",
6
6
  "license": "UNLICENSED",
@@ -17,9 +17,9 @@
17
17
  "@types/node-fetch": "^2.5.7"
18
18
  },
19
19
  "dependencies": {
20
- "@forge/cli-shared": "3.12.0-next.6",
20
+ "@forge/cli-shared": "3.12.0",
21
21
  "@forge/egress": "1.2.1",
22
- "@forge/manifest": "4.13.0-next.3",
22
+ "@forge/manifest": "4.13.0",
23
23
  "@typescript-eslint/typescript-estree": "^5.40.0",
24
24
  "array.prototype.flatmap": "^1.2.3",
25
25
  "atlassian-openapi": "^1.0.17",