Socket
Socket
Sign inDemoInstall

@sap-ux/ui5-config

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/ui5-config - npm Package Compare versions

Comparing version 0.23.1 to 0.24.0

8

dist/ui5config.d.ts

@@ -85,2 +85,10 @@ import type { BspApp, AbapTarget, Configuration, CustomMiddleware, CustomTask, FioriToolsProxyConfig, FioriToolsProxyConfigBackend, FioriToolsProxyConfigUI5, Ui5Document, Adp, MockserverConfig, ServeStaticPath } from './types';

/**
* Adds UI5 libraries to the yaml configuration if they do not already exist.
*
* @param {string[]} addLibs - to add these libraries
* @returns {UI5Config} the UI5Config instance
* @memberof UI5Config
*/
addUI5Libs(addLibs: string[]): this;
/**
* Adds a list of custom tasks to the config.

@@ -87,0 +95,0 @@ *

@@ -150,2 +150,24 @@ "use strict";

/**
* Adds UI5 libraries to the yaml configuration if they do not already exist.
*
* @param {string[]} addLibs - to add these libraries
* @returns {UI5Config} the UI5Config instance
* @memberof UI5Config
*/
addUI5Libs(addLibs) {
const libs = this.document.getSequence({ path: 'framework.libraries' });
if (libs) {
addLibs.forEach((libName) => {
if (!this.document.findItem(libs, (lib) => lib.name === libName)) {
libs.add({ name: libName });
}
});
this.document.setIn({
path: 'framework.libraries',
value: libs.toJSON()
});
}
return this;
}
/**
* Adds a list of custom tasks to the config.

@@ -152,0 +174,0 @@ *

4

package.json

@@ -12,3 +12,3 @@ {

},
"version": "0.23.1",
"version": "0.24.0",
"license": "Apache-2.0",

@@ -30,3 +30,3 @@ "main": "dist/index.js",

"@types/semver": "7.5.2",
"@sap-ux/store": "0.7.0"
"@sap-ux/store": "0.9.1"
},

@@ -33,0 +33,0 @@ "engines": {

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