Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sap-ux/fe-fpm-writer

Package Overview
Dependencies
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/fe-fpm-writer - npm Package Compare versions

Comparing version 0.17.3 to 0.17.4

12

dist/section/index.js

@@ -30,2 +30,12 @@ "use strict";

/**
* Get additional dependencies for fragment.xml template based on passed ui5 version.
*
* @param ui5Version required UI5 version.
* @returns Additional dependencies for fragment.xml
*/
function getAdditionalDependencies(ui5Version) {
const minVersion = semver_1.coerce(ui5Version);
return !minVersion || minVersion.minor >= 90 ? { 'xmlns:macros': 'sap.fe.macros' } : undefined;
}
/**
* Enhances the provided custom section configuration with additonal data.

@@ -48,2 +58,4 @@ *

config.content = config.control || defaults_1.getDefaultFragmentContent(config.name, config.eventHandler);
// Additional dependencies to include into 'Fragment.xml'
config.dependencies = getAdditionalDependencies(config.minUI5Version);
return config;

@@ -50,0 +62,0 @@ }

4

dist/section/types.d.ts

@@ -20,5 +20,9 @@ import type { CustomElement, InternalCustomElement, Position, EventHandler } from '../common/types';

}
export interface CustomSectionDependencies {
[key: string]: string;
}
export interface InternalCustomSection extends CustomSection, InternalCustomElement {
content: string;
dependencies?: CustomSectionDependencies;
}
//# sourceMappingURL=types.d.ts.map

6

package.json
{
"name": "@sap-ux/fe-fpm-writer",
"description": "SAP Fiori elements flexible programming model writer",
"version": "0.17.3",
"version": "0.17.4",
"repository": {

@@ -43,4 +43,4 @@ "type": "git",

"scripts": {
"build": "pnpm clean && tsc",
"clean": "rimraf dist",
"build": "pnpm clean && tsc -p tsconfig-build.json",
"clean": "rimraf dist test/test-output",
"format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",

@@ -47,0 +47,0 @@ "lint": "eslint . --ext .ts",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc