Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
strapi-v5-plugin-populate-deep-field-fix
Advanced tools
Strapi v5 plugin that populates nested content.
This plugin is a fork of the original strapi-plugin-populate-deep, which does not support Strapi v5 at the time of this publication.
With Strapi v5, a new API structure validation feature was introduced, which makes the populate parameter incompatible with how the original plugin works. This plugin addresses that by introducing a new parameter pLevel to avoid validation issues.
npm install strapi-v5-plugin-populate-deep
yarn add strapi-v5-plugin-populate-deep
The plugin allows you to deeply populate data in your Strapi queries with a new parameter pLevel. This parameter specifies the depth of population for your API responses.
Populate a request with the default max depth.
/api/articles?pLevel
Populate a request with the a custom depth
/api/articles?pLevel=10
You can configure the default depth globally through the plugin configuration.
To customize the default depth, add or modify the config/plugins.js file as shown below:
config/plugins.js
module.exports = ({ env }) => ({
'strapi-v5-plugin-populate-deep': {
config: {
defaultDepth: 3, // Default is 5
}
},
});
This configuration will set the default depth to 3 levels across all API requests unless specified otherwise in the request itself.
This is a fork of NEDDL, that fixes an issue with the fields being populated incorrectly when they have colliding names and was raised in this PR.
This plugin is a fork of the original work by Barelydead and can be found in the original repository.
The original idea for getting the populate structure was created by tomnovotny7 and can be found in this github thread
We appreciate and acknowledge all contributions made by the open-source community to the original project.
FAQs
Strapi v5 plugin that populates nested content.
The npm package strapi-v5-plugin-populate-deep-field-fix receives a total of 0 weekly downloads. As such, strapi-v5-plugin-populate-deep-field-fix popularity was classified as not popular.
We found that strapi-v5-plugin-populate-deep-field-fix 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.