@benshi.ai/js-sdk
Version:
Benshi SDK
20 lines (12 loc) • 743 B
Markdown
Next diagram represents the network flow to load the most recent version of the library. When the library is loaded into the application, this mechanism performs these steps:
* download a manifest file, that includes the list of available versions
* figure out what available version is `patch compatible` with the current one.
* download and load that version
In case an error occur in any of these steps, the `fallback` library is loaded. This librar is included in the current package, installed from `npm`.

This mechanism may be skipped by adding a parameter in the `BsLog` constructor:
```js
new BsLog(<key>, {skipDynamicLoading: true})
```
[Back](./Readme.md)