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.
bi-service-sdk
Advanced tools
Exposes common sdk interface & provides client sdk generator for bi-service based apps
bi-service
>= 1.0.0
bi-service-doc
>= 2.0.0
bi-service
based applicationRequires bi-service-doc
package to be plugged in along the bi-service-sdk
plugin.
Load them at bottom of your index.js
:
//index.js
//...
const Service = require('bi-service');
const service = new Service(/*...*/);
module.exports = service;
//...
//Load the plugins
require('bi-service-doc');
require('bi-service-sdk');
Make sure that your project's index.js
exports the Service
instance object.
and then just call the build:sdk
command:
> cd ./path/to/my/bi-service-project
#builds SDKs for all supported apps (zip files are written to cwd)
project/root> ./node_modules/.bin/bi-service build:sdk
#view available cmd options
project/root> ./node_modules/.bin/bi-service build:sdk --help
An alternative way is to use standalone bi-service-sdk
executable and provide it with API specification source from which SDKs are generated:
# generates SDKs into zip packages in cwd
> bi-service-sdk --specs "http://docs.service.com/specs" #url must return json in format {"v1.0": {/*Open API 2.0 specs*/}}
> # eventually
> ./node_modules/.bin/bi-service build:sdk --help
> ./node_modules/.bin/bi-service-sdk --help
> ./node_modules/.bin/bi-service-doc --help
example:
bi-service-sdk: 1.0.0
bi-depot: 0.5.0
bi-depot-private-sdk: 1.0.0-x.0.5.0
bi-depot-public-sdk: 1.0.0-x.0.5.0
{
"dependencies": {
"bi-depot-private-sdk": "^1.0.0-x.0.5.0 <1.0.0-x.1.0.0"
}
}
The above version restriction will match for example:
1.0.0-x.0.5.0
1.0.0-x.0.6.0
1.0.0-x.0.6.1
but will NOT match:
1.0.0-x.1.0.0
1.0.1-x.0.5.0
1.1.0-x.0.5.0
2.1.0-x.0.5.0
FAQs
Exposes common sdk interface & provides client sdk generator for bi-service based apps
The npm package bi-service-sdk receives a total of 0 weekly downloads. As such, bi-service-sdk popularity was classified as not popular.
We found that bi-service-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.