
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@elevantiq/storyblok-deep-relations-resolver
Advanced tools
Resolve relations more than 2 levels deep
The Storyblok Deep Relations Resolver is a TypeScript library that resolves relations on more than 2 levels in Storyblok's API responses. It enables developers to easily access nested data from the API responses, making it easier to work with complex data structures.
To install the package, run the following command:
npm install @elevantiq/storyblok-deep-relations-resolver
# or with yarn
yarn add @elevantiq/storyblok-deep-relations-resolver
To use the package, simply import it into your project and use the resolve function to resolve the deep relations in your Storyblok API responses.
import {resolveRelationsDeep} from '@elevantiq/storyblok-deep-relations-resolver'
const storyblokApi = getStoryblokApi()
// format: <component>.<field>
export const deepRelations = [
'articlesTeaser.articles',
'article.author',
'article.category',
'primaryContactTeaser.contactPerson',
]
const {data: preResolveData} = await storyblokApi.get(`cdn/stories/${slug}`, sbParams)
const deepResolvedData = await resolveRelationsDeep(storyblokApi, preResolveData, deepRelations)
For more information on how to use the package, see the documentation.
If you would like to contribute to the project, please follow these steps:
This project is licensed under the MIT License.
If you find any bugs or issues with the package, please report them by creating a new issue on the GitHub issue tracker.
If you have any questions or feedback, feel free to contact us at our GitHub profile.
FAQs
Resolve relations more than 2 levels deep
We found that @elevantiq/storyblok-deep-relations-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.