@steedos/service-package-registry 2.1.60 → 2.1.64

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/package.json +3 -3
  2. package/package.service.js +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-package-registry",
3
- "version": "2.1.60",
3
+ "version": "2.1.64",
4
4
  "description": "",
5
5
  "main": "package.service.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@steedos/service-package-loader": "2.1.60",
12
+ "@steedos/service-package-loader": "2.1.64",
13
13
  "fs-extra": "8.1.0",
14
14
  "i18next": "20.3.2",
15
15
  "json-stringify-safe": "5.0.1",
@@ -26,5 +26,5 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "3b8634d6eca4edc89e991b9dfa130b16493aa30d"
29
+ "gitHead": "c5b63dd483aa29bd9c179e8d59a73c675b3a0ba1"
30
30
  }
@@ -220,6 +220,12 @@ module.exports = {
220
220
  if(!user.is_space_admin){
221
221
  throw new Error('not permission!');
222
222
  }
223
+ try {
224
+ await this.loginSteedosRegistry();
225
+ console.info(`login steedos registry success`);
226
+ } catch (error) {
227
+ console.error(`login steedos registry fail: `, error.message);
228
+ }
223
229
  const result = await this.getCloudSaasPurchasedPackages();
224
230
  for (const _package of result.packages) {
225
231
  try {
@@ -268,6 +274,12 @@ module.exports = {
268
274
  if(!user.is_space_admin){
269
275
  throw new Error('not permission!');
270
276
  }
277
+ try {
278
+ await this.loginSteedosRegistry();
279
+ console.info(`login steedos registry success`);
280
+ } catch (error) {
281
+ console.error(`login steedos registry fail: `, error.message);
282
+ }
271
283
  let { module, version, url, auth, registry_url } = ctx.params
272
284
  const enable = true;
273
285
  return await this.installPackageFromUrl(module, version, url, auth, enable, registry_url, ctx.broker)