oorja 1.7.1 → 1.7.2
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/lib/lib/config.d.ts +1 -1
- package/lib/lib/config.js +1 -1
- package/lib/lib/oorja/index.js +2 -4
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/lib/lib/config.d.ts
CHANGED
package/lib/lib/config.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getoorjaConfig = exports.setENVAccessToken = exports.getENVAccessToken = exports.determineENV = exports.INVALID_ROOM_LINK_MESSAGE = exports.ROOM_LINK_SAMPLE = exports.getSuryaConfig = exports.config = exports.CLI_VERSION = void 0;
|
|
4
4
|
const chalk = require("chalk");
|
|
5
|
-
exports.CLI_VERSION = 1.
|
|
5
|
+
exports.CLI_VERSION = 1.72;
|
|
6
6
|
const Conf = require("conf");
|
|
7
7
|
exports.config = new Conf({
|
|
8
8
|
projectName: "oorja",
|
package/lib/lib/oorja/index.js
CHANGED
|
@@ -49,10 +49,8 @@ const parseRoomURL = (roomLink) => {
|
|
|
49
49
|
};
|
|
50
50
|
const getRoomId = (roomURL) => {
|
|
51
51
|
const fragments = roomURL.pathname.split("/");
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
return fragments["2"];
|
|
52
|
+
const params = new url_1.URLSearchParams(roomURL.search);
|
|
53
|
+
return params.get("id") || undefined;
|
|
56
54
|
};
|
|
57
55
|
const oorjaURL = (config) => {
|
|
58
56
|
const { host, enableTLS } = config;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.7.
|
|
1
|
+
{"version":"1.7.2","commands":{"signout":{"id":"signout","description":"Sign-out of oorja. Clears saved auth-token","pluginName":"oorja","pluginType":"core","aliases":[],"flags":{},"args":[]},"teletype":{"id":"teletype","description":"Launch a terminal streaming session in oorja.","pluginName":"oorja","pluginType":"core","aliases":["tty"],"examples":["\u001b[94m$ teletype\u001b[39m\nWill prompt to choose streaming destination - existing room or create a new one.\n\n","\u001b[94m$ teletype 'https://oorja.io/rooms?id=foo#key'\u001b[39m\nWill stream to the room specified by secret link, you must have joined the room before streaming.\n\n","\u001b[94m$ teletype -m\u001b[39m\nWill also allow room participants to write to your terminal!\n\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"shell":{"name":"shell","type":"option","char":"s","description":"shell to use. e.g. bash, fish","default":"/usr/bin/zsh"},"multiplex":{"name":"multiplex","type":"boolean","char":"m","description":"Allows room users to WRITE TO YOUR SHELL i.e enables collaboration mode. Make sure you trust room participants. Off by default","allowNo":false},"new_room":{"name":"new_room","type":"boolean","char":"n","description":"Create new room","allowNo":false}},"args":[{"name":"room"}]}}}
|