@forge/lint 5.2.1-next.1 → 5.2.1-next.2
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 +6 -0
- package/out/lint/linters/remote-linter/invoke-remote-interface.d.ts +5 -4
- package/out/lint/linters/remote-linter/invoke-remote-interface.d.ts.map +1 -1
- package/out/lint/linters/remote-linter/verifiers/invoke-remote-verifier.js +2 -2
- package/out/lint/text/messages.d.ts +1 -1
- package/out/lint/text/messages.js +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -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
|
|
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
|
|
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,
|
|
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.
|
|
22
|
-
reference: text_1.messages.verifiers.
|
|
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) {
|
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "5.2.1-next.2",
|
|
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",
|