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

@sap-ux/backend-proxy-middleware

Package Overview
Dependencies
Maintainers
3
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/backend-proxy-middleware - npm Package Compare versions

Comparing version 0.6.19 to 0.6.20

24

dist/base/proxy.js

@@ -302,12 +302,18 @@ "use strict";

// check if system credentials are stored in the store
const systemStore = yield store_1.getService({ logger, entityName: 'system' });
const system = yield systemStore.read(new store_1.BackendSystemKey({ url: localBackend.url, client: localBackend.client }));
if (system) {
yield enhanceConfigForSystem(proxyOptions, system, backend.scp, (refreshToken) => {
if (refreshToken) {
logger.info('Updating refresh token for: ' + localBackend.url);
systemStore.write(Object.assign(Object.assign({}, system), { refreshToken }));
}
});
try {
const systemStore = yield store_1.getService({ logger, entityName: 'system' });
const system = yield systemStore.read(new store_1.BackendSystemKey({ url: localBackend.url, client: localBackend.client }));
if (system) {
yield enhanceConfigForSystem(proxyOptions, system, backend.scp, (refreshToken) => {
if (refreshToken) {
logger.info('Updating refresh token for: ' + localBackend.url);
systemStore.write(Object.assign(Object.assign({}, system), { refreshToken }));
}
});
}
}
catch (error) {
logger.warn('Accessing the credentials store failed.');
logger.debug(error);
}
}

@@ -314,0 +320,0 @@ if (!proxyOptions.auth && process.env.FIORI_TOOLS_USER && process.env.FIORI_TOOLS_PASSWORD) {

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

},
"version": "0.6.19",
"version": "0.6.20",
"license": "Apache-2.0",

@@ -15,0 +15,0 @@ "author": "@SAP/ux-tools-team",

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