@steedos/service-package-registry 2.1.53 → 2.1.54

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.
@@ -41,9 +41,17 @@ if (!Array.prototype.findIndex) {
41
41
  }
42
42
  // jshint freeze:true
43
43
 
44
+ function removeSuffix(pattern, suffix) {
45
+ if (pattern.endsWith(suffix)) {
46
+ return pattern.slice(0, -suffix.length);
47
+ }
48
+ return pattern;
49
+ }
50
+
44
51
  module.exports = {
45
52
  processArguments: function (npmUser, npmPass, npmEmail, npmRegistry, npmScope, quotes, configPath) {
46
53
  var registry = npmRegistry || 'https://registry.npmjs.org';
54
+ registry = removeSuffix(registry, '/')
47
55
  var homePath = process.env.HOME ? process.env.HOME : process.env.USERPROFILE;
48
56
  var finalPath = configPath ? configPath : path.join(homePath, '.npmrc');
49
57
  var hasQuotes = quotes ? quotes : false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-package-registry",
3
- "version": "2.1.53",
3
+ "version": "2.1.54",
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.53",
12
+ "@steedos/service-package-loader": "2.1.54",
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": "5001ce7ac23abc5d0722c3ba97b0c3c8a963d368"
29
+ "gitHead": "6b261ebf1924b3ec2dc9d1951ad3e0449de9fdef"
30
30
  }