Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@moltin/sdk
Advanced tools
The Moltin Javascript SDK is a simple to use interface for the Moltin eCommerce API to help you get off the ground quickly and efficiently within client and server applications.
Wiki — API docs — moltin.com
npm install --save moltin
import { gateway as MoltinGateway } from 'moltin';
const moltin = require('moltin');
To get started, instantiate a new Moltin client with your store credentials.
Note: This requires a Moltin account.
const Moltin = MoltinGateway({
client_id: 'XXX'
});
Note: If you're using webpack, you'll need to add the following to your projects configuration file.
node: {
fs: 'empty'
}
const Moltin = moltin.gateway({
client_id: 'XXX',
client_secret: 'XXX',
});
You can now authenticate with the Moltin service.
Moltin.Authenticate().then((response) => {
console.log('authenticated', response);
});
Check out the wiki to learn more about authenticating and the available endpoints.
The SDK is built with ES6 modules that are bundled into Node and browser compatible files using Rollup.
If you want to roll your own bundle, or make changes to any of the modules in src
, then you'll need to install the package dependencies and build the dist
files.
npm install
npm run build
You can learn more about Rollup, the API and configuration here.
FAQs
SDK for the Moltin eCommerce API
The npm package @moltin/sdk receives a total of 307 weekly downloads. As such, @moltin/sdk popularity was classified as not popular.
We found that @moltin/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.