occam-open-cli 6.1.33 → 6.1.35
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.
- package/bin/main.js +7 -1
- package/package.json +3 -3
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
|
|
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.
|
|
4
|
+
"version": "6.1.35",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/occam-open-cli",
|
|
7
7
|
"description": "Occam's package management tool.",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"argumentative": "^2.0.32",
|
|
14
14
|
"necessary": "^15.0.1",
|
|
15
|
-
"occam-entities": "^1.0.
|
|
16
|
-
"occam-file-system": "^6.0.
|
|
15
|
+
"occam-entities": "^1.0.388",
|
|
16
|
+
"occam-file-system": "^6.0.403"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {},
|
|
19
19
|
"bin": {
|