Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@shopx/client
Advanced tools
Readme
SHOPX Client API.
$ yarn add @shopx/client graphql
This module exports a client function which takes following arguments.
vendorID
- Required - A string that specifies the shop. Can use "60e5185286ab2ff04f8cc576" as an example. This wil be sent to your email when you sign up. You can probably find this on console log of your store or admin panel, and on admin panel login page. You can also request this to be sent to you by contacting contact@shopxcommerce.comauthToken
- Optional for accessing secure actions. Can be generated by await client("vendorID").new.login({ email: "", password: "" })import client from "@shopx/client"
const logProducts = async () => {
const vendorID = "60e5185286ab2ff04f8cc576"
const api = client(vendorID)
console.log(await api.get.products())
}
logProducts() // List Products
import client from "@shopx/client"
const { _id, token } = await client("vendorID").new.login({
email: "",
password: "",
})
const api = client("vendorID", token)
import client from "@shopx/client"
const logProducts = async () => {
const { _id, token } = await client("vendorID").new.login({
email: "",
password: "",
})
const api = client("vendorID", token)
console.log(await api.get.products())
}
logProducts() // List Products
FAQs
SHOPX Client API. Allows all basic functions on the API.
We found that @shopx/client 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.