npm package diff
Package: @forge/cli-shared
Versions: 6.6.0-next.8 - 6.6.0-next.9
Modified: package/out/graphql/graphql-types.js
Large diffs are not rendered by default.
Modified: package/out/shared/product.js
Index: package/out/shared/product.js
===================================================================
--- package/out/shared/product.js
+++ package/out/shared/product.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.ariResourceOwner = exports.productDisplayName = void 0;
+exports.ariResourceOwner = exports.productDisplayName = exports.productsDisplayName = void 0;
const case_1 = require("case");
const RESOURCE_OWNER_TO_PRODUCT_DISPLAY_NAME = {
townsquare: 'Atlas',
graph: 'Teamwork Graph'
@@ -9,8 +9,16 @@
const PRODUCT_DISPLAY_NAME_TO_RESOURCE_OWNER = Object.entries(RESOURCE_OWNER_TO_PRODUCT_DISPLAY_NAME).reduce((acc, [key, value]) => {
acc[value] = key;
return acc;
}, {});
+function productsDisplayName(primaryResourceOwner, secondaryResourceOwners = []) {
+ if (secondaryResourceOwners.length === 0) {
+ return productDisplayName(primaryResourceOwner);
+ }
+ const primaryProduct = `${productDisplayName(primaryResourceOwner)} (Primary)`;
+ return [primaryProduct, ...secondaryResourceOwners.map(productDisplayName)].join(', ');
+}
+exports.productsDisplayName = productsDisplayName;
function productDisplayName(ariResourceOwnerOrUserProvidedProductName) {
const resourceOwner = ariResourceOwnerOrUserProvidedProductName.toLowerCase();
return RESOURCE_OWNER_TO_PRODUCT_DISPLAY_NAME[resourceOwner] ?? (0, case_1.capital)(ariResourceOwnerOrUserProvidedProductName);
}
Modified: package/package.json
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/cli-shared",
- "version": "6.6.0-next.8",
+ "version": "6.6.0-next.9",
"description": "Common functionality for Forge CLI",
"author": "Atlassian",
"license": "UNLICENSED",
"main": "out/index.js",
@@ -11,9 +11,9 @@
"compile": "tsc -b -v",
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
},
"dependencies": {
- "@forge/manifest": "8.6.1-next.1",
+ "@forge/manifest": "8.6.1-next.2",
"@forge/util": "1.4.7-next.1",
"@forge/i18n": "0.0.3-next.1",
"@sentry/node": "7.106.0",
"adm-zip": "^0.5.10",
Modified: package/out/graphql/graphql-types.d.ts.map
Large diffs are not rendered by default.
Modified: package/out/shared/product.d.ts.map
Index: package/out/shared/product.d.ts.map
===================================================================
--- package/out/shared/product.d.ts.map
+++ package/out/shared/product.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/shared/product.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB,GAAG,MAAM,CAAC;AAiBxC,wBAAgB,kBAAkB,CAAC,yCAAyC,EAAE,MAAM,GAAG,kBAAkB,CAGxG;AAED,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAEnE"}
\ No newline at end of file
+{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/shared/product.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB,GAAG,MAAM,CAAC;AAiBxC,wBAAgB,mBAAmB,CAAC,oBAAoB,EAAE,MAAM,EAAE,uBAAuB,GAAE,MAAM,EAAO,GAAG,MAAM,CAOhH;AAED,wBAAgB,kBAAkB,CAAC,yCAAyC,EAAE,MAAM,GAAG,kBAAkB,CAGxG;AAED,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAEnE"}
\ No newline at end of file
Modified: package/CHANGELOG.md
Large diffs are not rendered by default.
Modified: package/out/graphql/graphql-types.d.ts
Large diffs are not rendered by default.
Modified: package/out/shared/product.d.ts
Index: package/out/shared/product.d.ts
===================================================================
--- package/out/shared/product.d.ts
+++ package/out/shared/product.d.ts
@@ -1,4 +1,5 @@
export declare type ProductDisplayName = string;
+export declare function productsDisplayName(primaryResourceOwner: string, secondaryResourceOwners?: string[]): string;
export declare function productDisplayName(ariResourceOwnerOrUserProvidedProductName: string): ProductDisplayName;
export declare function ariResourceOwner(productDisplayName: string): string;
//# sourceMappingURL=product.d.ts.map
\ No newline at end of file