
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@leafwell/client-store
Advanced tools
A simple document for Leafwell Provider client's lib for any of these enviroments: Node.js. For better understading about the methods and arguments, please make ensure you have typescript installed and configured on your project.
A simple document for Leafwell Provider client's lib for any of these enviroments: Node.js and compatible with React and React Native. For better understading about the methods and arguments, please make ensure you have typescript installed and configured on your project.
Using npm:
$ npm install @leafwell/client-store
Using yarn:
$ yarn add @leafwell/client-store
import Client from "@leafwell/client-store";
type ClientHeaders = {
hasuraAdmin?: string;
authorizationBearer?: string;
};
(async function main() {
/**
* Using hasuraAdmin will overwrite authorization bearer use mode and, therefore, you will be granted with admin permissions
* */
const options: ClientHeaders = {
hasuraAdmin: "",
authorizationBearer: "",
};
Client.initialize("url", options);
const stores = await Client.api.getStores();
console.log(stores);
})();
You need to start by authentication. Use the initialize method to setup and prepare your api client:
/**
* Using hasuraAdmin will overwrite authorization bearer use mode and, therefore, you will be granted with admin permissions
* */
const options: ClientHeaders = {
hasuraAdmin: "",
authorizationBearer: "",
};
Client.initialize("url", options);
Client.initialize();
Client.api;
api.getProducts();
api.getProduct();
api.getEffects();
api.getProductVariants();
api.getCompanies();
api.getCompany();
api.getPromotions();
api.getPromotionsByStoreId();
api.getPromotion();
api.getStores();
api.getStore();
api.getCheckout();
api.createCheckout();
api.addItemToCheckout();
api.removeItemToCheckout();
api.updateItemQuantityFromCheckout();
api.updateCheckout();
api.getBrand();
api.getBrands();
api.getCategories();
api.getCategories();
api.getOrders();
api.saveOrder();
FAQs
A simple document for Leafwell Provider client's lib for any of these enviroments: Node.js. For better understading about the methods and arguments, please make ensure you have typescript installed and configured on your project.
We found that @leafwell/client-store demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.