Socket
Socket
Sign inDemoInstall

@sap-ux/btp-utils

Package Overview
Dependencies
2
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.12.1 to 0.13.0

15

dist/destination.d.ts

@@ -17,2 +17,10 @@ /**

}
/**
* Relevant values for DestinationProxyType property
*/
export declare enum DestinationProxyType {
ON_PREMISE = "OnPremise",
INTERNET = "Internet",
PRIVATE_LINK = "PrivateLink"
}
type DestinationProperty = 'WebIDEEnabled' | 'WebIDESystem' | 'WebIDEUsage' | 'WebIDEAdditionalData' | 'sap-client' | 'sap-platform' | 'TrustAll' | 'HTML5.DynamicDestination';

@@ -70,3 +78,10 @@ type AdditionalDestinationProperties = {

export declare function isFullUrlDestination(destination: Destination): boolean;
/**
* Checks whether the provided destination is configured as an on-premise system.
*
* @param destination destination info
* @returns true if the destination is configured as an on-premise system
*/
export declare function isOnPremiseDestination(destination: Destination): boolean;
export {};
//# sourceMappingURL=destination.d.ts.map

21

dist/destination.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFullUrlDestination = exports.isPartialUrlDestination = exports.isGenericODataDestination = exports.isAbapEnvironmentOnBtp = exports.isAbapSystem = exports.WebIDEAdditionalData = exports.WebIDEUsage = void 0;
exports.isOnPremiseDestination = exports.isFullUrlDestination = exports.isPartialUrlDestination = exports.isGenericODataDestination = exports.isAbapEnvironmentOnBtp = exports.isAbapSystem = exports.DestinationProxyType = exports.WebIDEAdditionalData = exports.WebIDEUsage = void 0;
/**

@@ -23,2 +23,11 @@ * Relevant values for the WebIDEUsage property used to identify different types of destinations.

/**
* Relevant values for DestinationProxyType property
*/
var DestinationProxyType;
(function (DestinationProxyType) {
DestinationProxyType["ON_PREMISE"] = "OnPremise";
DestinationProxyType["INTERNET"] = "Internet";
DestinationProxyType["PRIVATE_LINK"] = "PrivateLink";
})(DestinationProxyType = exports.DestinationProxyType || (exports.DestinationProxyType = {}));
/**
* Checks whether the provided destination is configured to point to an ABAP system (both cloud and on-premise).

@@ -86,2 +95,12 @@ *

exports.isFullUrlDestination = isFullUrlDestination;
/**
* Checks whether the provided destination is configured as an on-premise system.
*
* @param destination destination info
* @returns true if the destination is configured as an on-premise system
*/
function isOnPremiseDestination(destination) {
return Boolean(destination.ProxyType.includes(DestinationProxyType.ON_PREMISE));
}
exports.isOnPremiseDestination = isOnPremiseDestination;
//# sourceMappingURL=destination.js.map

6

package.json
{
"name": "@sap-ux/btp-utils",
"version": "0.12.1",
"version": "0.13.0",
"description": "Library to simplify working with SAP BTP specific features especially in SAP Business Application",

@@ -18,6 +18,6 @@ "repository": {

"@sap/cf-tools": "2.1.1",
"axios": "1.6.0"
"axios": "1.6.1"
},
"devDependencies": {
"nock": "13.2.1"
"nock": "13.4.0"
},

@@ -24,0 +24,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc