New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@apptec/console-cpp-node-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apptec/console-cpp-node-cli

swagger client for @apptec/console-cpp-node-cli

latest
npmnpm
Version
1.1.0-1-g1d9aa61
Version published
Maintainers
1
Created
Source

@apptec/console-cpp-node-cli@1.1.0-1-g1d9aa61

Building

To build an compile the typescript sources to javascript use:

npm install
npm run build

publishing

First build the package than run npm publish

consuming

navigate to the folder of your consuming project and run one of next commando's.

published:

npm install @apptec/console-cpp-node-cli@1.1.0-1-g1d9aa61 --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

using npm link:

In PATH_TO_GENERATED_PACKAGE:

npm link

In your project:

npm link @apptec/console-cpp-node-cli@1.1.0-1-g1d9aa61

Requirements

Services require a IHttpClient and a IApiConfiguration. The IHttpClient is necessary to manage http's call and with the IApiConfiguration you can provide settings for the Authentication. For the sake of simplicity an implementation of IHttpClient is already provided, but if you want you can override it. For these reasons you have to manually bind these two services:

let container = new Container();
container.bind<IHttpClient>("IApiHttpClient").to(HttpClient).inSingletonScope();
container.bind<IApiConfiguration>("IApiConfiguration").to(ApiConfiguration).inSingletonScope();

Services Binding

To bind all the generated services you can use ApiServiceBinder.

ApiServiceBinder.with(container);

Final result

let container = new Container();
container.bind<IHttpClient>("IApiHttpClient").to(HttpClient).inSingletonScope();
container.bind<IApiConfiguration>("IApiConfiguration").to(ApiConfiguration).inSingletonScope();
ApiServiceBinder.with(container);

Keywords

swagger-client

FAQs

Package last updated on 28 Feb 2020

Did you know?

Socket

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.

Install

Related posts