Commit 1f7ac6ba authored by Evgeniy Zaitsev's avatar Evgeniy Zaitsev
Browse files

v1.0.4

parent 72689695
{
"name": "service-sdk",
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"description": "Service SDK for LViS",
"keywords": [],
......
......@@ -2,9 +2,12 @@
function* get() {
const getAssets = this.config.assetsCallback;
const assets = {
endpoint: this.config.wsEndpoint,
};
const assets = [
{
name: 'endpoint',
data: this.config.wsEndpoint,
},
];
if (getAssets) {
const customAssets = yield getAssets(
......@@ -13,7 +16,11 @@ function* get() {
this.state.eventId
);
Object.assign({}, customAssets, assets);
if (Array.isArray(customAssets)) {
assets.push(...customAssets);
} else {
this.logger.log(__filename, 'assets must be an array');
}
}
this.body = assets;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment