@forge/cli-shared 8.15.3-next.0 → 8.15.3-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 +13 -0
- package/out/auth/instruction.js +5 -5
- package/out/auth/personal/me-graphql-client.d.ts +0 -3
- package/out/auth/personal/me-graphql-client.d.ts.map +1 -1
- package/out/auth/personal/me-graphql-client.js +1 -10
- package/out/graphql/graphql-types.d.ts +549 -53
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +52 -28
- package/out/graphql/minimal-graphql-runner.d.ts +3 -0
- package/out/graphql/minimal-graphql-runner.d.ts.map +1 -1
- package/out/graphql/minimal-graphql-runner.js +11 -1
- package/out/ui/text.d.ts +1 -3
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +4 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 8.15.3-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [4210da0]
|
|
8
|
+
- @forge/manifest@12.1.2-next.1
|
|
9
|
+
|
|
10
|
+
## 8.15.3-next.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 43cbfaf: Update wording and links for forge login to enable scoped tokens
|
|
15
|
+
|
|
3
16
|
## 8.15.3-next.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/out/auth/instruction.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getInstructionsUrl = void 0;
|
|
4
4
|
const gateway_1 = require("../graphql/gateway");
|
|
5
5
|
const INSTRUCTION_URLS = {
|
|
6
|
-
DEV: 'https://
|
|
7
|
-
STG: 'https://
|
|
8
|
-
PROD: 'https://
|
|
9
|
-
FEDRAMP_MODERATE_STAGING: 'https://
|
|
10
|
-
FEDRAMP_MODERATE_PROD: 'https://
|
|
6
|
+
DEV: 'https://go.atlassian.com/forge-cli-api-token-stg',
|
|
7
|
+
STG: 'https://go.atlassian.com/forge-cli-api-token-stg',
|
|
8
|
+
PROD: 'https://go.atlassian.com/forge-cli-api-token',
|
|
9
|
+
FEDRAMP_MODERATE_STAGING: 'https://go.atlassian.com/forge-cli-api-token-federal-stg',
|
|
10
|
+
FEDRAMP_MODERATE_PROD: 'https://go.atlassian.com/forge-cli-api-token-federal'
|
|
11
11
|
};
|
|
12
12
|
function getInstructionsUrl() {
|
|
13
13
|
return (0, gateway_1.getEnvironmentConfig)(INSTRUCTION_URLS);
|
|
@@ -3,9 +3,6 @@ import { UserError } from '../../shared';
|
|
|
3
3
|
import { Logger } from '../../ui';
|
|
4
4
|
export declare class UserNotFoundError extends UserError {
|
|
5
5
|
}
|
|
6
|
-
export declare class ScopedTokenError extends UserError {
|
|
7
|
-
constructor();
|
|
8
|
-
}
|
|
9
6
|
export declare class MeGraphqlClient {
|
|
10
7
|
private readonly graphqlClient;
|
|
11
8
|
private readonly logger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AAEnD,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM;IAGpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAwBtC"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MeGraphqlClient = exports.
|
|
3
|
+
exports.MeGraphqlClient = exports.UserNotFoundError = void 0;
|
|
4
4
|
const shared_1 = require("../../shared");
|
|
5
5
|
const ui_1 = require("../../ui");
|
|
6
6
|
class UserNotFoundError extends shared_1.UserError {
|
|
7
7
|
}
|
|
8
8
|
exports.UserNotFoundError = UserNotFoundError;
|
|
9
|
-
class ScopedTokenError extends shared_1.UserError {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(ui_1.Text.login.scopedToken.error);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ScopedTokenError = ScopedTokenError;
|
|
15
9
|
class MeGraphqlClient {
|
|
16
10
|
graphqlClient;
|
|
17
11
|
logger;
|
|
@@ -38,9 +32,6 @@ class MeGraphqlClient {
|
|
|
38
32
|
}
|
|
39
33
|
catch (error) {
|
|
40
34
|
this.logger.debug((0, ui_1.errorMessage)(error));
|
|
41
|
-
if ((0, ui_1.errorMessage)(error).includes('This request does not contain the right authorisation scopes')) {
|
|
42
|
-
throw new ScopedTokenError();
|
|
43
|
-
}
|
|
44
35
|
}
|
|
45
36
|
throw new UserNotFoundError();
|
|
46
37
|
}
|