@sap-ux/app-config-writer
Advanced tools
Comparing version 0.1.23 to 0.2.0
@@ -16,3 +16,3 @@ import type { Manifest, ManifestNamespace } from '@sap-ux/project-access'; | ||
*/ | ||
export declare function generateInboundNavigationConfig(appRootPath: string, { semanticObject, action, title, subTitle }: Partial<ManifestNamespace.Inbound[string]>, overwrite?: boolean, fs?: Editor): Promise<Editor>; | ||
export declare function generateInboundNavigationConfig(appRootPath: string, { semanticObject, action, title, subTitle }: ManifestNamespace.Inbound[string], overwrite?: boolean, fs?: Editor): Promise<Editor>; | ||
/** | ||
@@ -19,0 +19,0 @@ * Validates the basic manifest structure and existence required for inbound navigation addition. |
@@ -47,4 +47,4 @@ "use strict"; | ||
action, | ||
title: title !== null && title !== void 0 ? title : '', | ||
subTitle: subTitle !== null && subTitle !== void 0 ? subTitle : '', | ||
title, | ||
subTitle, | ||
signature: { | ||
@@ -51,0 +51,0 @@ parameters: {}, |
@@ -10,5 +10,5 @@ import type { ManifestNamespace } from '@sap-ux/project-access'; | ||
export declare function promptInboundNavigationConfig(basePath: string): Promise<{ | ||
config: Partial<ManifestNamespace.Inbound[string]> | undefined; | ||
config: ManifestNamespace.Inbound[string] | undefined; | ||
fs: Editor; | ||
}>; | ||
//# sourceMappingURL=navigation-config.d.ts.map |
@@ -35,2 +35,7 @@ "use strict"; | ||
} | ||
// prompting returns '' for optional `subTitle` instead of undefined | ||
// this would result in the value being written | ||
if ((config === null || config === void 0 ? void 0 : config.subTitle) === '') { | ||
config.subTitle = undefined; | ||
} | ||
return { | ||
@@ -37,0 +42,0 @@ config, |
{ | ||
"name": "@sap-ux/app-config-writer", | ||
"description": "Add or update configuration for SAP Fiori tools application", | ||
"version": "0.1.23", | ||
"version": "0.2.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71092
1193