@kontent-ai/core-sdk
TypeScript icon, indicating that this package has built-in type declarations

10.5.0 • Public • Published

npm version Build & Test npm Known Vulnerabilities GitHub license

Core package

This package contains core functionality used by dependant Kontent.ai SDKs such as Delivery SDK or Management SDK.

Testing

If you want to inject testing service as an implementation of IHttpService, it is possible to use configurable Test Http Service.

import { TestHttpService } from '@kontent-ai/core-sdk';

const client = new /*(Delivery/Management)*/Client() {
    // ...
    httpService: new TestHttpService({
        fakeResponseJson: json,
        throwError: false
    });
}

Package Sidebar

Install

npm i @kontent-ai/core-sdk

Weekly Downloads

11,389

Version

10.5.0

License

MIT

Unpacked Size

1.04 MB

Total Files

192

Last publish

Collaborators

  • pokornyd
  • jiri-lojda
  • ivannk
  • enngage