occam-open-cli 5.0.172 → 5.0.173

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.
@@ -8,11 +8,12 @@ const publishOperation = require("../operation/publish"),
8
8
  updateMetaJSONFileVersionOperation = require("../operation/updateMetaJSONFileVersion");
9
9
 
10
10
  const { DOUBLE_DASH } = require("../constants"),
11
+ { trimTrailingSlash } = require("../utilities/string"),
11
12
  { executeOperations } = require("../utilities/operation"),
12
13
  { FAILED_PUBLISH_MESSAGE, SUCCESSFUL_PUBLISH_MESSAGE } = require("../messages");
13
14
 
14
15
  function publishAction(argument, dryRun, logLevel) {
15
- const releaseName = argument, ///
16
+ const releaseName = trimTrailingSlash(argument), ///
16
17
  operations = [
17
18
  getIdentityTokenOperation,
18
19
  releaseNamePromptOperation,
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ const { EMPTY_STRING } = require("../constants");
4
+
5
+ function trimTrailingSlash(string) {
6
+ string = string.replace(/\/$/, EMPTY_STRING); ///
7
+
8
+ return string;
9
+ }
10
+
11
+ module.exports = {
12
+ trimTrailingSlash
13
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "occam-open-cli",
3
3
  "author": "James Smith",
4
- "version": "5.0.172",
4
+ "version": "5.0.173",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/occam-open-cli",
7
7
  "description": "Occam's command line package management tool.",