
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@sap-ux/preview-middleware
Advanced tools
@sap-ux/preview-middleware
The @sap-ux/preview-middleware
is a Custom UI5 Server Middleware for previewing an application in a local Fiori launchpad . It can be used either with the ui5 serve
or the fiori run
commands.
Option | Type | Default Value | Description |
---|---|---|---|
flp | Optional configuration object for the local Fiori launchpad | ||
flp.path | string | /test/flp.html | The mount point of the local Fiori launchpad. |
flp.apps | array | [] | Optional additional local apps that are available in local Fiori launchpad |
debug | boolean | false | Enables debug output |
flp.apps
Array of additional application configurations:
Option | Type | Default Value | Description |
---|---|---|---|
target | string | Target path of the additional application | |
local | string | Local path to the folder containing the application | |
intent | Optional intent to be used for the application | ||
intent.object | string | (calculated) | Optional intent object, if it is not provided then it will be calculated based on the application id |
intent.action | string | preview | Optional intent action |
The middleware can be used without configuration. However, since the middleware intercepts a few requests that might otherwise be handled by a different middleware, it is strongly recommended to run other file serving middlewares after the preview-middleware
e.g. backend-proxy-middleware
and ui5-proxy-middleware
(and the corresponding middlewares in the @sap/ux-ui5-tooling
).
Example: ./test/fixtures/simple-app/ui5.yaml
With no configuration provided, the app will be local FLP will be available at /test/flp.html
and the log level is info
.
server:
customMiddleware:
- name: preview-middleware
afterMiddleware: compression
With this configuration, the app will be local FLP will be available at /preview.html
and the log level is debug
.
server:
customMiddleware:
- name: preview-middleware
afterMiddleware: compression
configuration:
flp:
path: /preview.html
debug: true
If you want to test cross application navigation, then you can add additional applications into the local FLP.
With this configuration, an application that is locally available in ../local-folder
will be available at /apps/other-app
and will also be added as tile to the local FLP.
server:
customMiddleware:
- name: preview-middleware
afterMiddleware: compression
configuration:
apps:
- local: ../local-folder
target: /apps/other-app
FAQs
Preview middleware
The npm package @sap-ux/preview-middleware receives a total of 70,360 weekly downloads. As such, @sap-ux/preview-middleware popularity was classified as popular.
We found that @sap-ux/preview-middleware demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.