
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@basaldev/nodeblocks-cloud-sdk
Advanced tools
Nodeblocks Cloud SDK for creating the custom adapter.
You need npm token to install the package. Contact to the Nodeblocks team to get the token.
npm i @basaldev/nodeblocks-cloud-sdk
We recommend to create the configuration files below by running
nbc adapter devinteractively.
Create nbc.sdk.json file in the root directory and add the following configuration to specify the service and the version of the adapter.
cp nbc.sdk.json.default nbc.sdk.json
{
"adapter":{
"service":"auth|user|organization|catalog|order|review|chat|notification",
"version":"x.x.x"
}
}
Create a .env.${service} file in the root directory and add the following configuration to pass the configs to the service and the adapter.
cp .env.default .env.${service}
ADAPTER_PACKAGE_NAME=`Absolute path to the adapter package`
PORT=8080
NODE_ENV=production
SERVICE_XXXX=`Service configuration (depends on the service)`
...
ADAPTER_XXXX=`Adapter configuration (depends on the service and the adapter)`
...
nbc adapter dev
nbc adapter start
npm ci
In the root directory, create a file called nbc.sdk.json and add the following configuration:
{
"backendRepo": "git@github.com:basaldev/nodeblocks-cloud-backend.git"
}
To fetch the latest templates from backend repository, run the following command:
npm run templates:fetch
By default, it fetches from the default branch. You can specify the branch as follows:
{
"backendRepo":{
"url": "git@github.com:basaldev/nodeblocks-cloud-backend.git",
"branch": "develop"
}
To test the SDK command locally, use /test folder.
First create pack file for the SDK:
npm pack
This will create a file called basaldev-nodeblocks-cloud-sdk-x.x.x.tgz in the root directory.
In package.json of the test folder, update the dependencies to use the local package and npm i --no-save to install the package.
// Change x.x.x to the version of the package
"dependencies": {
"@basaldev/nodeblocks-cloud-sdk": "file:../basaldev-nodeblocks-cloud-sdk-x.x.x.tgz"
}
Then, run the scripts you want like npm run adapter:dev to test there.
You should delete ADAPTER_PACKAGE_NAME from .env.${service} file not to use the custom adapter.
Upgrade the version in package.json file.
Run the following command to publish the package:
npm publish
FAQs
Nodeblocks cloud SDK
The npm package @basaldev/nodeblocks-cloud-sdk receives a total of 1 weekly downloads. As such, @basaldev/nodeblocks-cloud-sdk popularity was classified as not popular.
We found that @basaldev/nodeblocks-cloud-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.