
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
It contains all the necessary function to make a headless e-commerce shop.
Import client side class
import ShopifyQl from "shopify-ql";
// your shopify information, make sure to use .env or other way to hide this.
export const shop = {
url:"https://myShop.myshopify.com",
clientToken:"front-token-here-please",
adminToken:"admin-token-here-please"
}
const shopify = new ShopifyQl(adminKeys.shopUrl,adminKeys.clientToken)
// after this click shopify. and you will see all the functions available to use
// Example get the first 10 products
const products = await shopify.products(10)
Import admin class, it run on server side to keep your shop safe using the node-fetch package
import {ShopifyAdminQl} from "shopify-ql/admin.js";
// your shopify information, make sure to use .env or other way to hide this.
export const shop = {
url:"https://myShop.myshopify.com",
clientToken:"front-token-here-please",
adminToken:"admin-token-here-please"
}
const shopify = new ShopifyAdminQl(adminKeys.shopUrl,adminKeys.clientToken)
// after this click shopify. and you will see all the functions available to use
// Example delete customer
const customerId='gid://shopify/Customer/1234353212'
const products = await shopify.customerDelete(customerId)
FAQs
Shopify graphql api
The npm package shopify-ql receives a total of 0 weekly downloads. As such, shopify-ql popularity was classified as not popular.
We found that shopify-ql 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.