@forge/lint 5.2.1-next.1 → 5.2.1-next.3

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,18 @@
1
1
  # @forge/lint
2
2
 
3
+ ## 5.2.1-next.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7bf2dda]
8
+ - @forge/cli-shared@5.1.0-next.2
9
+
10
+ ## 5.2.1-next.2
11
+
12
+ ### Patch Changes
13
+
14
+ - a3a5255: Add @forge/api (invokeRemote) as devDependency
15
+
3
16
  ## 5.2.1-next.1
4
17
 
5
18
  ### Patch Changes
@@ -7,14 +7,15 @@ export declare enum InvokeRemoteTypes {
7
7
  }
8
8
  export declare const INVOKE_REMOTE_PACKAGE_NAME = "@forge/api";
9
9
  export declare const INVOKE_REMOTE_FUNCTION_NAME = "invokeRemote";
10
- export interface InvokeRemoteDirectCall extends LintCriteriaMatch {
11
- type: InvokeRemoteTypes.DIRECT_CALL;
10
+ export interface InvokeRemoteCallBase extends LintCriteriaMatch {
12
11
  remoteKey: string;
12
+ }
13
+ export interface InvokeRemoteDirectCall extends InvokeRemoteCallBase {
14
+ type: InvokeRemoteTypes.DIRECT_CALL;
13
15
  calleeName: string;
14
16
  }
15
- export interface InvokeRemoteMemberCall extends LintCriteriaMatch {
17
+ export interface InvokeRemoteMemberCall extends InvokeRemoteCallBase {
16
18
  type: InvokeRemoteTypes.MEMBER_CALL;
17
- remoteKey: string;
18
19
  objectName: string;
19
20
  }
20
21
  export interface InvokeRemoteImport extends LintCriteriaMatch {
@@ -1 +1 @@
1
- {"version":3,"file":"invoke-remote-interface.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/remote-linter/invoke-remote-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,oBAAY,iBAAiB;IAC3B,WAAW,IAAA;IACX,WAAW,IAAA;IACX,WAAW,IAAA;CACZ;AAED,eAAO,MAAM,0BAA0B,eAAe,CAAC;AACvD,eAAO,MAAM,2BAA2B,iBAAiB,CAAC;AAE1D,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,iBAAiB,CAAC,WAAW,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,iBAAiB,CAAC,WAAW,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,iBAAiB,CAAC,WAAW,CAAC;IACpC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B;AAED,oBAAY,gBAAgB,GAAG,sBAAsB,GAAG,sBAAsB,CAAC;AAE/E,oBAAY,iBAAiB,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;AAE1E,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B"}
1
+ {"version":3,"file":"invoke-remote-interface.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/remote-linter/invoke-remote-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,oBAAY,iBAAiB;IAC3B,WAAW,IAAA;IACX,WAAW,IAAA;IACX,WAAW,IAAA;CACZ;AAED,eAAO,MAAM,0BAA0B,eAAe,CAAC;AACvD,eAAO,MAAM,2BAA2B,iBAAiB,CAAC;AAE1D,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB;IAClE,IAAI,EAAE,iBAAiB,CAAC,WAAW,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB;IAClE,IAAI,EAAE,iBAAiB,CAAC,WAAW,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,iBAAiB,CAAC,WAAW,CAAC;IACpC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B;AAED,oBAAY,gBAAgB,GAAG,sBAAsB,GAAG,sBAAsB,CAAC;AAE/E,oBAAY,iBAAiB,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;AAE1E,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B"}
@@ -18,8 +18,8 @@ class InvokeRemoteVerifier extends verifier_interface_1.BaseLintIssueVerifier {
18
18
  class: this.getLintClass(),
19
19
  column: call.column,
20
20
  line: call.line,
21
- message: text_1.messages.verifiers.invokeRemote.message(call.remoteKey),
22
- reference: text_1.messages.verifiers.invokeRemote.reference
21
+ message: text_1.messages.verifiers.invokeRemoteKey.message(call.remoteKey),
22
+ reference: text_1.messages.verifiers.invokeRemoteKey.reference
23
23
  }));
24
24
  }
25
25
  isValidCall(call, imports) {
@@ -17,7 +17,7 @@ export declare const messages: {
17
17
  message: (url: string) => string;
18
18
  reference: string;
19
19
  };
20
- invokeRemote: {
20
+ invokeRemoteKey: {
21
21
  message: (remoteKey: string) => string;
22
22
  reference: string;
23
23
  };
@@ -20,7 +20,7 @@ exports.messages = {
20
20
  message: (url) => `The domain ${url} is not included in the "permissions.external.images" section of your app's manifest.yml file`,
21
21
  reference: 'egress-permission-required'
22
22
  },
23
- invokeRemote: {
23
+ invokeRemoteKey: {
24
24
  message: (remoteKey) => `The remote key "${remoteKey}" does not exist in the "remotes" section of your app's manifest.yml file`,
25
25
  reference: 'missing-remote-key'
26
26
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/lint",
3
- "version": "5.2.1-next.1",
3
+ "version": "5.2.1-next.3",
4
4
  "description": "Linting for forge apps",
5
5
  "main": "out/index.js",
6
6
  "license": "UNLICENSED",
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@atlassian/xen-test-util": "^4.2.0",
14
+ "@forge/api": "^3.8.0-next.0",
14
15
  "@types/array.prototype.flatmap": "^1.2.6",
15
16
  "@types/cross-spawn": "^6.0.6",
16
17
  "@types/eslint": "8.56.2",
@@ -18,7 +19,7 @@
18
19
  "eslint-plugin-import": "^2.29.1"
19
20
  },
20
21
  "dependencies": {
21
- "@forge/cli-shared": "5.1.0-next.1",
22
+ "@forge/cli-shared": "5.1.0-next.2",
22
23
  "@forge/egress": "1.2.13",
23
24
  "@forge/manifest": "7.4.1-next.0",
24
25
  "@typescript-eslint/typescript-estree": "^5.62.0",