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.
@braid/nuxt-drupal-jsonapi
Advanced tools
A nuxt module for interfacing directly with the output of Drupal's native JSON:API.
⚠️ Update: In version 1.0.0-alpha.1 and later the extractor is removed from this project with the expectation you'll use Nuxt >= 2.14 which includes it's own extractor.
Nuxt Drupal JSON:API is a module for the Nuxt framework that allows for full static generation of a drupal site leveraging (primarily) the now core Drupal implementation of the JSON:API specification. We'll describe how it performs this magic later on, but for now what is important to understand is what problems this module solves.
Static generation of a dynamic content management system is quite challenging because the static generator needs to know every single route to generate. Furthermore, once those static pages have been created hydration of the data required for the front end to function properly typically requires the framework to make HTTP requests back to the original server when navigating to pages that are were not the initial page load.
This package solves these issues by downloading a static copy of every node and it's relationships to nuxt dist directory so when your site.
When viewing a Drupal site in live mode requests are made directly to the Drupal json:api and not a local static version. However, due to limitations of Drupal's json:api, the following modules must be enabled:
To configure the nuxt module, provide the drupalUrl
.
modules: [
['nuxt-drupal-jsonapi', {
drupalUrl: 'https://example.drupal.org'
}]
]
You can also pass an aliasPrefix
option which will prefix every slug request
to drupal with it's value, this is not typically needed.
FAQs
A nuxt module for interfacing directly with the output of Drupal's native JSON:API.
The npm package @braid/nuxt-drupal-jsonapi receives a total of 1 weekly downloads. As such, @braid/nuxt-drupal-jsonapi popularity was classified as not popular.
We found that @braid/nuxt-drupal-jsonapi demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.