@steedos/service-packages 2.5.0-beta.8 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +15 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -127,6 +127,13 @@ module.exports = {
127
127
  metadataType: "*",
128
128
  metadataApiName: "*"
129
129
  });
130
+
131
+ const configsV2 = await ctx.broker.call(`metadata.getServiceMetadatas`, {
132
+ serviceName: ctx.params.packageName,
133
+ metadataType: "*",
134
+ metadataApiName: "*"
135
+ });
136
+
130
137
  const metadata = [];
131
138
  _.each(configs, (config)=>{
132
139
  if(config.metadataType && config.metadataApiName){
@@ -134,6 +141,14 @@ module.exports = {
134
141
  metadata.push({type: config.metadataType, api_name: config.metadataApiName, label: label || name})
135
142
  }
136
143
  })
144
+
145
+ _.each(configsV2, (config)=>{
146
+ if(config.metadataType && config.metadataApiName){
147
+ const {label,name} = config.metadata || {}
148
+ metadata.push({type: config.metadataType, api_name: config.metadataApiName, label: label || name})
149
+ }
150
+ })
151
+
137
152
  return metadata;
138
153
  }
139
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-packages",
3
- "version": "2.5.0-beta.8",
3
+ "version": "2.5.0",
4
4
  "main": "index.js",
5
5
  "scripts": {},
6
6
  "license": "MIT",
@@ -8,5 +8,5 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
- "gitHead": "537101194e8c7c61a4eed846d28382126d947775"
11
+ "gitHead": "c4b366d1366ab52eb53da1a3ff4a80b16fd73cc0"
12
12
  }