File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @nevermined-io/sdk" ,
3
- "version" : " 3.0.39 " ,
3
+ "version" : " 3.0.40 " ,
4
4
"description" : " Javascript SDK for connecting with Nevermined Data Platform " ,
5
5
"main" : " ./dist/node/sdk.js" ,
6
6
"typings" : " ./dist/node/sdk.d.ts" ,
Original file line number Diff line number Diff line change @@ -165,12 +165,16 @@ export abstract class RegistryBaseApi extends Instantiable {
165
165
ddo . id ,
166
166
)
167
167
168
- assetAttributes . metadata . additionalInformation = {
169
- ...assetAttributes . metadata . additionalInformation ,
170
- customData : {
171
- openApi : assetAttributes . metadata . main . webService ?. openEndpoints [ 0 ] ,
172
- } ,
173
- }
168
+ if (
169
+ assetAttributes . metadata . main . webService ?. openEndpoints &&
170
+ assetAttributes . metadata . main . webService ?. openEndpoints . length > 0
171
+ )
172
+ assetAttributes . metadata . additionalInformation = {
173
+ ...assetAttributes . metadata . additionalInformation ,
174
+ customData : {
175
+ openApi : assetAttributes . metadata . main . webService ?. openEndpoints [ 0 ] ,
176
+ } ,
177
+ }
174
178
175
179
const encryptedServiceAttributesResponse = await this . nevermined . services . node . encrypt (
176
180
ddo . id ,
You can’t perform that action at this time.
0 commit comments