Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@sap-ux/annotation-converter
Advanced tools
Provides a way to convert a raw metadata document object into a convenient structure where path are resolved already for you.
The goal of this module is to provide an object that is ready to use and should cover most of the needs one can have when it comes to manipulating an odata service and its annotation.
All the object defined by this will be compatible with the @sap-ux/vocabularies-types providing an easy way to evaluate annotations.
npm
npm install --save-dev @sap-ux/annotation-converter
yarn
yarn add @sap-ux/annotation-converter --dev
pnpm
pnpm add @sap-ux/annotation-converter --dev
Import the convert
method from the module
import { convert } from '@sap-ux/annotation-converter';
Use it on a raw metadata generated from @sap-ux/edmx-parser
or complying to the same structure
const myRawMetadata = ...
const myConvertedMetadata = convert(myRawMetadata);
const isDraftEnabled = myConvertedMetadata.entityTypes[0].annotations.Common?.DraftRoot || myConvertedMetadata.entityTypes[0].annotations.Common?.DraftNode;
const myLabel = myConvertedMetadata.entityTypes[0].properties[0].annotations?.Common?.Text?.$target?.name // Property name of the text annotation if it exists
Annotation Converter
FAQs
SAP Fiori OData - Annotation converter
The npm package @sap-ux/annotation-converter receives a total of 54,287 weekly downloads. As such, @sap-ux/annotation-converter popularity was classified as popular.
We found that @sap-ux/annotation-converter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.