New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sap/bas-sdk

Package Overview
Dependencies
Maintainers
1
Versions
40
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 3.4.3 to 3.5.0

5

api.d.ts

@@ -328,2 +328,7 @@ import { URL } from "url";

/**
* Returns true if the dev space plan is 'pro-code' and false otherwise.
*/
export function isProCode(): boolean;
/**
* Returns collection of dev spaces information on the given landscape

@@ -330,0 +335,0 @@ * @param landscapeUrl

1

dist/src/apis/get-devspace.d.ts

@@ -18,1 +18,2 @@ import * as devUtils from "../utils/devspace-utils";

export declare function updateDevSpace(landscapeUrl: string, jwt: string, wsId: string, data: devUtils.DevspaceUpdate): Promise<void>;
export declare function isProCode(): boolean;

@@ -25,3 +25,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.updateDevSpace = exports.createDevSpace = exports.getExtensionPacks = exports.getDevSpacesSpec = exports.deleteDevSpace = exports.getDevSpaces = exports.getDevspaceInfo = void 0;
exports.isProCode = exports.updateDevSpace = exports.createDevSpace = exports.getExtensionPacks = exports.getDevSpacesSpec = exports.deleteDevSpace = exports.getDevSpaces = exports.getDevspaceInfo = void 0;
const lodash_1 = require("lodash");

@@ -103,2 +103,6 @@ const url_join_1 = __importDefault(require("url-join"));

exports.updateDevSpace = updateDevSpace;
function isProCode() {
return core_utils_1.getEnvValue("TENANT_PLAN") === "pro-code";
}
exports.isProCode = isProCode;
//# sourceMappingURL=get-devspace.js.map

3

dist/src/index.js

@@ -42,3 +42,4 @@ "use strict";

deleteDevSpace: get_devspace_1.deleteDevSpace,
updateDevSpace: get_devspace_1.updateDevSpace }, didBASGeneratorsFinishInstallation), { DevSpaceStatus: devspace_utils_1.DevSpaceStatus,
updateDevSpace: get_devspace_1.updateDevSpace,
isProCode: get_devspace_1.isProCode }, didBASGeneratorsFinishInstallation), { DevSpaceStatus: devspace_utils_1.DevSpaceStatus,
PackName: devspace_utils_1.PackName });

@@ -45,0 +46,0 @@ exports.hrtt = Object.assign({}, hanaHrttHelper);

@@ -595,2 +595,16 @@ "use strict";

});
describe("Test for isProCode()", () => {
it("Should return true", async () => {
bas_sdk_sinon_helper_1.stubEnv({
TENANT_PLAN: "pro-code",
});
chai_1.expect(get_devspace_1.isProCode()).to.be.true;
});
it("Should return false", async () => {
bas_sdk_sinon_helper_1.stubEnv({
TENANT_PLAN: "standard-edition",
});
chai_1.expect(get_devspace_1.isProCode()).to.be.false;
});
});
//# sourceMappingURL=get-devspace.spec.js.map
{
"name": "@sap/bas-sdk",
"version": "3.4.3",
"version": "3.5.0",
"description": "SDK for SAP Business Application Studio",

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

"devDependencies": {
"@sap/bas-sdk-sinon-helper": "^3.4.3",
"@sap/bas-sdk-sinon-helper": "^3.5.0",
"@types/cross-spawn": "^6.0.2",

@@ -34,0 +34,0 @@ "@types/fs-extra": "^11.0.1",

@@ -120,1 +120,5 @@ import { assign } from "lodash";

}
export function isProCode(): boolean {
return getEnvValue("TENANT_PLAN") === "pro-code";
}

@@ -16,2 +16,3 @@ import * as isAppStudio from "./apis/is-app-studio";

updateDevSpace,
isProCode,
} from "./apis/get-devspace";

@@ -42,2 +43,3 @@ import * as didBASGeneratorsFinishInstallation from "./apis/get-generators-installation-status";

updateDevSpace,
isProCode,
...didBASGeneratorsFinishInstallation,

@@ -44,0 +46,0 @@ DevSpaceStatus,

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

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