
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@pinelab/vendure-plugin-anonymized-order
Advanced tools
This plugin facilitates the retrieval of anonymized customer orders
This plugin enables the retrieval of an anonymized customer order. By default, the anonymizedOrder query omits the fields customer, billingAddress, and shippingAddress from the order details. However, users have the flexibility to further customize this process by adding a callback, allowing the removal of additional fields as needed.
Add the plugin to your config:
import { AnonymizedOrderPlugin } from '@pinelab/vendure-plugin-anonymized-order';
plugins: [AnonymizedOrderPlugin.init({})];
The anonymizedOrder query can be used to display a customers' placed order permanently, instead of for a limited time only, like the built-in orderByCode query. This can be used to show a placed order via a link in email for example.
In the order confirmation email, you could have a link like https://my-storefront.io/order/GX83VCD73?emailAddress=the-customer@email.com. On your storefront, you'd then use the following query to display the order:
anonymizedOrder(orderCode: "GX83VCD73", emailAddress: "the-customer@email.com") {
id
code
totalWithTax
lines {
id
linePriceWithTax
}
}
This will then return the order without shippingAddress, billingAddress and customer fields.
You can supply your own strategy for anonymizing a given order. In that case, the plugin will not remove any data from the order for you.
The example below will only remove the customer, but still expose shipping and billing address:
import { AnonymizedOrderPlugin } from '@pinelab/vendure-plugin-anonymized-order';
plugins: [
AnonymizedOrderPlugin.init({
anonymizeOrderFn: (order) => {
order.customer = {};
},
}),
];
You should be cautious about what to return, because of the relational nature of GraphQL. For example, exposing the order.customer, will also allow the client to query order.customer.orders, thus exposing all orders of that customer.
FAQs
This plugin facilitates the retrieval of anonymized customer orders
We found that @pinelab/vendure-plugin-anonymized-order demonstrated a healthy version release cadence and project activity because the last version was released less than 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.

Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.

Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.