@forge/cli-shared 0.0.0-experimental-c3effe3 → 0.0.0-experimental-e3032d7
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 -3
- package/out/app-logs/view-logs.d.ts +1 -2
- package/out/app-logs/view-logs.d.ts.map +1 -1
- package/out/app-logs/view-logs.js +1 -4
- package/out/ari/ari.d.ts +3 -4
- package/out/ari/ari.d.ts.map +1 -1
- package/out/ari/ari.js +2 -11
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
-
## 0.0.0-experimental-
|
|
3
|
+
## 0.0.0-experimental-e3032d7
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ebb857c: Add keytar to shrinkwrap package list
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [2ae0afe]
|
|
12
|
+
- @forge/manifest@0.0.0-experimental-e3032d7
|
|
13
|
+
|
|
14
|
+
## 2.6.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
6
17
|
|
|
7
18
|
- 69f42bd: Added a utility function to wrap potentially unknown errors in an error, or return the original error"
|
|
8
|
-
- 189ba71: Add keytar to shrinkwrap package list
|
|
9
19
|
|
|
10
20
|
### Patch Changes
|
|
11
21
|
|
|
12
22
|
- Updated dependencies [b447be2]
|
|
13
23
|
- Updated dependencies [4285fc3]
|
|
14
24
|
- Updated dependencies [74e00c8]
|
|
15
|
-
- @forge/manifest@
|
|
25
|
+
- @forge/manifest@3.9.0
|
|
16
26
|
|
|
17
27
|
## 2.6.0-next.3
|
|
18
28
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Ari } from '@forge/util/packages/cs-ari';
|
|
3
2
|
import { URL } from 'url';
|
|
4
3
|
import { AppConfigProvider } from '../apps';
|
|
5
4
|
import { AppEnvironmentClient } from '../graphql';
|
|
@@ -22,7 +21,7 @@ export interface AppLogsDetails {
|
|
|
22
21
|
environmentId: string;
|
|
23
22
|
limit: number;
|
|
24
23
|
startTime?: string | null;
|
|
25
|
-
contextAri?: [
|
|
24
|
+
contextAri?: [any];
|
|
26
25
|
}
|
|
27
26
|
export interface InvocationQueryDetails {
|
|
28
27
|
environmentKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-logs.d.ts","sourceRoot":"","sources":["../../src/app-logs/view-logs.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"view-logs.d.ts","sourceRoot":"","sources":["../../src/app-logs/view-logs.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,GAAG,CAA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,UAAU,CAAC;CAI1E"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ViewAppLogsCommand = void 0;
|
|
4
|
-
const cs_ari_1 = require("@forge/util/packages/cs-ari");
|
|
5
4
|
const ari_1 = require("../ari");
|
|
6
5
|
class ViewAppLogsCommand {
|
|
7
6
|
constructor(getAppConfig, appEnvironmentClient, globalEdgeClient, logsClient) {
|
|
@@ -17,10 +16,8 @@ class ViewAppLogsCommand {
|
|
|
17
16
|
context ? this.globalEdgeClient.getCloudId(context.site) : undefined
|
|
18
17
|
]);
|
|
19
18
|
const contextAri = cloudId ? ari_1.buildContextAri(cloudId, context.product) : undefined;
|
|
20
|
-
const ari = cs_ari_1.parse(appId);
|
|
21
|
-
const appAri = cs_ari_1.parseAppAri(ari);
|
|
22
19
|
return this.logsClient.viewAppLogs({
|
|
23
|
-
appId:
|
|
20
|
+
appId: '',
|
|
24
21
|
environmentId,
|
|
25
22
|
limit,
|
|
26
23
|
startTime,
|
package/out/ari/ari.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Ari } from '@forge/util/packages/cs-ari';
|
|
2
1
|
export declare function appIdToAriString(appId: string): string;
|
|
3
|
-
export declare function buildContextAri(cloudId: string, product: string):
|
|
4
|
-
export declare function buildExtensionAri(appId: string, environmentId: string, functionKey: string):
|
|
5
|
-
export declare function encodeContext(context:
|
|
2
|
+
export declare function buildContextAri(cloudId: string, product: string): never;
|
|
3
|
+
export declare function buildExtensionAri(appId: string, environmentId: string, functionKey: string): never;
|
|
4
|
+
export declare function encodeContext(context: any, extension: any): string;
|
|
6
5
|
//# sourceMappingURL=ari.d.ts.map
|
package/out/ari/ari.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD;AAID,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAEvE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,KAAK,CAElG;AAGD,wBAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,MAAM,CASlE"}
|
package/out/ari/ari.js
CHANGED
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.encodeContext = exports.buildExtensionAri = exports.buildContextAri = exports.appIdToAriString = void 0;
|
|
4
|
-
const cs_ari_1 = require("@forge/util/packages/cs-ari");
|
|
5
4
|
function appIdToAriString(appId) {
|
|
6
5
|
return `ari:cloud:ecosystem::app/${appId}`;
|
|
7
6
|
}
|
|
8
7
|
exports.appIdToAriString = appIdToAriString;
|
|
9
8
|
function buildContextAri(cloudId, product) {
|
|
10
|
-
|
|
11
|
-
resourceOwner: product.toLowerCase(),
|
|
12
|
-
resourceType: 'site',
|
|
13
|
-
resourceId: cloudId
|
|
14
|
-
});
|
|
9
|
+
throw new Error('on ho');
|
|
15
10
|
}
|
|
16
11
|
exports.buildContextAri = buildContextAri;
|
|
17
12
|
function buildExtensionAri(appId, environmentId, functionKey) {
|
|
18
|
-
|
|
19
|
-
resourceOwner: 'ecosystem',
|
|
20
|
-
resourceType: 'extension',
|
|
21
|
-
resourceId: `${appId}/${environmentId}/static/${functionKey}`
|
|
22
|
-
});
|
|
13
|
+
throw new Error('on ho');
|
|
23
14
|
}
|
|
24
15
|
exports.buildExtensionAri = buildExtensionAri;
|
|
25
16
|
function encodeContext(context, extension) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-e3032d7",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "0.0.0-experimental-
|
|
16
|
-
"@forge/util": "1.2.0",
|
|
15
|
+
"@forge/manifest": "0.0.0-experimental-e3032d7",
|
|
17
16
|
"array.prototype.flatmap": "^1.2.3",
|
|
18
17
|
"case": "^1.6.2",
|
|
19
18
|
"chalk": "^2.4.2",
|