occam-open-cli 6.1.33 → 6.1.34

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/bin/main.js +7 -1
  2. package/package.json +1 -1
package/bin/main.js CHANGED
@@ -88,7 +88,7 @@ function main(command, argument, options) {
88
88
  if (argument === null) {
89
89
  console.log(NO_ARGUMENT_GIVEN_MESSAGE);
90
90
  } else {
91
- const releaseName = argument.replace(/\/$/, EMPTY_STRING);
91
+ const releaseName = stripTrailingSlash(argument);
92
92
 
93
93
  publishAction(releaseName, tail, follow, dryRun, logLevel);
94
94
  }
@@ -155,3 +155,9 @@ function main(command, argument, options) {
155
155
  }
156
156
 
157
157
  module.exports = main;
158
+
159
+ function stripTrailingSlash(string) {
160
+ string = string.replace(/\/$/, EMPTY_STRING);
161
+
162
+ return string;
163
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "occam-open-cli",
3
3
  "author": "James Smith",
4
- "version": "6.1.33",
4
+ "version": "6.1.34",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/occam-open-cli",
7
7
  "description": "Occam's package management tool.",