🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@sap/bas-sdk

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/bas-sdk - npm Package Compare versions

Comparing version

to
2.1.0

3

dist/src/utils/destinations.d.ts

@@ -23,3 +23,3 @@ /// <reference types="node" />

WebIDEEnabled: string;
"HTML5.DynamicDestination": string;
"HTML5.DynamicDestination"?: string;
"sap-client"?: string;

@@ -57,2 +57,3 @@ WebIDEUsage?: string;

apiBusinessHubEnterpriseURL?: string;
html5DynamicDestination?: string;
}

@@ -59,0 +60,0 @@ export interface DestinationBaseInfo {

@@ -55,2 +55,3 @@ "use strict";

const applicationId = "applicationID";
const dynamicDestination = "HTML5.DynamicDestination";
function extractBASProperties(flatDestination) {

@@ -64,2 +65,5 @@ const basProperties = {};

}
if (flatDestination[dynamicDestination]) {
basProperties.html5DynamicDestination = flatDestination[dynamicDestination];
}
if (flatDestination[sapClient]) {

@@ -85,3 +89,3 @@ basProperties.sapClient = flatDestination[sapClient];

function destinationInfoToAnswerDestination(destinationInfo) {
var _a, _b, _c, _d, _e, _f, _g;
var _a, _b, _c, _d, _e, _f, _g, _h;
const answerDestination = {

@@ -94,3 +98,2 @@ Name: destinationInfo.name,

WebIDEEnabled: "true",
"HTML5.DynamicDestination": "true",
};

@@ -136,2 +139,9 @@ if (destinationInfo.credentials.authentication === "BasicAuthentication") {

}
if (((_h = destinationInfo.basProperties) === null || _h === void 0 ? void 0 : _h.html5DynamicDestination) !== undefined) {
answerDestination["HTML5.DynamicDestination"] =
destinationInfo.basProperties.html5DynamicDestination;
}
else {
answerDestination["HTML5.DynamicDestination"] = "true";
}
return answerDestination;

@@ -138,0 +148,0 @@ }

@@ -69,2 +69,5 @@ "use strict";

host: "host",
basProperties: {
html5DynamicDestination: "true",
},
},

@@ -80,2 +83,5 @@ {

host: "host",
basProperties: {
html5DynamicDestination: "true",
},
},

@@ -82,0 +88,0 @@ ];

@@ -119,2 +119,3 @@ "use strict";

apiBusinessHubEnterpriseURL: "/url.com",
html5DynamicDestination: "true",
},

@@ -256,2 +257,3 @@ };

apiBusinessHubEnterpriseURL: "/url.com",
html5DynamicDestination: "true",
},

@@ -280,2 +282,5 @@ };

description: description,
basProperties: {
html5DynamicDestination: "true",
},
};

@@ -320,2 +325,3 @@ const actualDestination = destinations_1.flatDestinationToDestinationBaseInfo(flatDestination);

apiBusinessHubEnterpriseURL: "/url.com",
html5DynamicDestination: "true",
},

@@ -346,2 +352,5 @@ };

host: "host",
basProperties: {
html5DynamicDestination: "true",
},
};

@@ -348,0 +357,0 @@ const actualDestination = destinations_1.responseDestinationToDestinationListInfo(responseDestination);

{
"name": "@sap/bas-sdk",
"description": "SDK for SAP Business Application Studio",
"version": "2.0.7",
"version": "2.1.0",
"main": "dist/src/index.js",

@@ -33,3 +33,3 @@ "license": "SAP",

"devDependencies": {
"@sap/bas-sdk-sinon-helper": "^2.0.7",
"@sap/bas-sdk-sinon-helper": "^2.1.0",
"@types/lodash": "^4.14.182",

@@ -36,0 +36,0 @@ "@types/url-join": "^4.0.0",

@@ -32,3 +32,3 @@ import { URL } from "url";

WebIDEEnabled: string;
"HTML5.DynamicDestination": string;
"HTML5.DynamicDestination"?: string;

@@ -74,2 +74,3 @@ "sap-client"?: string;

apiBusinessHubEnterpriseURL?: string;
html5DynamicDestination?: string;
}

@@ -148,2 +149,3 @@

const applicationId = "applicationID";
const dynamicDestination = "HTML5.DynamicDestination";
function extractBASProperties(

@@ -161,2 +163,6 @@ flatDestination: FlatDestination

if (flatDestination[dynamicDestination]) {
basProperties.html5DynamicDestination = flatDestination[dynamicDestination];
}
if (flatDestination[sapClient]) {

@@ -196,3 +202,2 @@ basProperties.sapClient = flatDestination[sapClient];

WebIDEEnabled: "true",
"HTML5.DynamicDestination": "true",
};

@@ -249,2 +254,10 @@

}
if (destinationInfo.basProperties?.html5DynamicDestination !== undefined) {
answerDestination["HTML5.DynamicDestination"] =
destinationInfo.basProperties.html5DynamicDestination;
} else {
answerDestination["HTML5.DynamicDestination"] = "true";
}
return answerDestination;

@@ -251,0 +264,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet