oorja 1.7.5 → 1.7.8

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 (61) hide show
  1. package/README.md +5 -3
  2. package/bin/dev +17 -0
  3. package/bin/oorja +3 -3
  4. package/bin/teletype +3 -3
  5. package/{lib → dist}/commands/signout.d.ts +1 -1
  6. package/{lib → dist}/commands/signout.js +2 -2
  7. package/dist/commands/teletype/index.d.ts +19 -0
  8. package/{lib → dist}/commands/teletype/index.js +11 -9
  9. package/dist/index.d.ts +1 -0
  10. package/{lib/lib → dist}/index.js +2 -2
  11. package/{lib → dist}/lib/config.d.ts +1 -1
  12. package/{lib → dist}/lib/config.js +2 -1
  13. package/{lib → dist}/lib/oorja/index.js +5 -1
  14. package/{lib → dist}/lib/surya/vendor/phoenix/constants.d.ts +3 -3
  15. package/{lib → dist}/lib/surya/vendor/phoenix/socket.d.ts +1 -1
  16. package/{lib → dist}/lib/teletype/index.js +3 -3
  17. package/oclif.manifest.json +68 -1
  18. package/package.json +37 -43
  19. package/NOTICE.txt +0 -5
  20. package/bin/run +0 -5
  21. package/lib/commands/teletype/index.d.ts +0 -19
  22. package/lib/lib/index.d.ts +0 -1
  23. /package/bin/{run.cmd → oorja.cmd} +0 -0
  24. /package/{lib → dist}/lib/encryption.d.ts +0 -0
  25. /package/{lib → dist}/lib/encryption.js +0 -0
  26. /package/{lib → dist}/lib/oorja/index.d.ts +0 -0
  27. /package/{lib → dist}/lib/oorja/preflight.d.ts +0 -0
  28. /package/{lib → dist}/lib/oorja/preflight.js +0 -0
  29. /package/{lib → dist}/lib/surya/errors.d.ts +0 -0
  30. /package/{lib → dist}/lib/surya/errors.js +0 -0
  31. /package/{lib → dist}/lib/surya/index.d.ts +0 -0
  32. /package/{lib → dist}/lib/surya/index.js +0 -0
  33. /package/{lib → dist}/lib/surya/resources.d.ts +0 -0
  34. /package/{lib → dist}/lib/surya/resources.js +0 -0
  35. /package/{lib → dist}/lib/surya/types.d.ts +0 -0
  36. /package/{lib → dist}/lib/surya/types.js +0 -0
  37. /package/{lib → dist}/lib/surya/vendor/phoenix/ajax.d.ts +0 -0
  38. /package/{lib → dist}/lib/surya/vendor/phoenix/ajax.js +0 -0
  39. /package/{lib → dist}/lib/surya/vendor/phoenix/channel.d.ts +0 -0
  40. /package/{lib → dist}/lib/surya/vendor/phoenix/channel.js +0 -0
  41. /package/{lib → dist}/lib/surya/vendor/phoenix/constants.js +0 -0
  42. /package/{lib → dist}/lib/surya/vendor/phoenix/index.d.ts +0 -0
  43. /package/{lib → dist}/lib/surya/vendor/phoenix/index.js +0 -0
  44. /package/{lib → dist}/lib/surya/vendor/phoenix/longpoll.d.ts +0 -0
  45. /package/{lib → dist}/lib/surya/vendor/phoenix/longpoll.js +0 -0
  46. /package/{lib → dist}/lib/surya/vendor/phoenix/presence.d.ts +0 -0
  47. /package/{lib → dist}/lib/surya/vendor/phoenix/presence.js +0 -0
  48. /package/{lib → dist}/lib/surya/vendor/phoenix/push.d.ts +0 -0
  49. /package/{lib → dist}/lib/surya/vendor/phoenix/push.js +0 -0
  50. /package/{lib → dist}/lib/surya/vendor/phoenix/serializer.d.ts +0 -0
  51. /package/{lib → dist}/lib/surya/vendor/phoenix/serializer.js +0 -0
  52. /package/{lib → dist}/lib/surya/vendor/phoenix/socket.js +0 -0
  53. /package/{lib → dist}/lib/surya/vendor/phoenix/timer.d.ts +0 -0
  54. /package/{lib → dist}/lib/surya/vendor/phoenix/timer.js +0 -0
  55. /package/{lib → dist}/lib/surya/vendor/phoenix/utils.d.ts +0 -0
  56. /package/{lib → dist}/lib/surya/vendor/phoenix/utils.js +0 -0
  57. /package/{lib → dist}/lib/teletype/auxiliary.d.ts +0 -0
  58. /package/{lib → dist}/lib/teletype/auxiliary.js +0 -0
  59. /package/{lib → dist}/lib/teletype/index.d.ts +0 -0
  60. /package/{lib → dist}/lib/utils.d.ts +0 -0
  61. /package/{lib → dist}/lib/utils.js +0 -0
package/README.md CHANGED
@@ -24,11 +24,13 @@ Your stream can be view-only or collaboration enabled (command-line flag).
24
24
 
25
25
  # Install and stream!
26
26
 
27
- - You'll need Node 16. CLI is available via npm. <br />
27
+ - You'll need Node 18.17.1 >. CLI is available via npm. <br />
28
28
  <a href="https://nodejs.org/en/download/" target="_blank">
29
29
  You can setup node/npm from here.
30
- </a> **Only Node 16 is supported**
31
- - **optional but highly recommended for successful install -> [npm install without sudo](https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md)**.
30
+ </a>
31
+ - Package does fail on some systems because of node-pty compilation failures. I'm thinking it's better to package the whole thing
32
+ as a binary in future releases (i.e. not available via npm but via a script or manual install).
33
+
32
34
  - `npm install -g oorja`
33
35
  - `teletype`
34
36
  - `teletype -m` (for collaboration mode)
package/bin/dev ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node --trace-warnings
2
+
3
+ const oclif = require('@oclif/core')
4
+
5
+ const path = require('path')
6
+ const project = path.join(__dirname, '..', 'tsconfig.json')
7
+
8
+ // In dev mode -> use ts-node and dev plugins
9
+ process.env.NODE_ENV = 'development'
10
+
11
+ require('ts-node').register({project})
12
+
13
+ // In dev mode, always show stack traces
14
+ oclif.settings.debug = true;
15
+
16
+ // Start the CLI
17
+ oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
package/bin/oorja CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- require('@oclif/command').run()
4
- .then(require('@oclif/command/flush'))
5
- .catch(require('@oclif/errors/handle'))
3
+ const oclif = require('@oclif/core')
4
+
5
+ oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
package/bin/teletype CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  process.argv.splice(2, 0, 'teletype')
4
4
 
5
- require('@oclif/command').run()
6
- .then(require('@oclif/command/flush'))
7
- .catch(require('@oclif/errors/handle'))
5
+ const oclif = require('@oclif/core')
6
+
7
+ oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
@@ -1,4 +1,4 @@
1
- import { Command } from "@oclif/command";
1
+ import { Command } from "@oclif/core";
2
2
  export declare class SignOut extends Command {
3
3
  static description: string;
4
4
  run(): Promise<void>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SignOut = void 0;
4
- const command_1 = require("@oclif/command");
4
+ const core_1 = require("@oclif/core");
5
5
  const config_1 = require("../lib/config");
6
- class SignOut extends command_1.Command {
6
+ class SignOut extends core_1.Command {
7
7
  async run() {
8
8
  const env = (0, config_1.determineENV)();
9
9
  (0, config_1.setENVAccessToken)(env, "");
@@ -0,0 +1,19 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class TeleTypeCommand extends Command {
3
+ static aliases: string[];
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
8
+ shell: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
+ multiplex: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ new_room: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
+ };
12
+ static args: {
13
+ room: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
14
+ };
15
+ run(): Promise<void>;
16
+ private streamToLink;
17
+ private createRoomAndStream;
18
+ private clearstdin;
19
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const { Select } = require("enquirer");
4
- const command_1 = require("@oclif/command");
4
+ const core_1 = require("@oclif/core");
5
5
  const ora = require("ora");
6
6
  const os = require("os");
7
7
  const chalk = require("chalk");
@@ -9,9 +9,9 @@ const config_1 = require("../../lib/config");
9
9
  const oorja_1 = require("../../lib/oorja");
10
10
  const utils_1 = require("../../lib/utils");
11
11
  const DEFAULT_SHELL = os.platform() === "win32" ? "powershell.exe" : process.env.SHELL || "bash";
12
- class TeleTypeCommand extends command_1.Command {
12
+ class TeleTypeCommand extends core_1.Command {
13
13
  async run() {
14
- const { args, flags: { shell, multiplex, new_room }, } = this.parse(TeleTypeCommand);
14
+ const { args, flags: { shell, multiplex, new_room }, } = await this.parse(TeleTypeCommand);
15
15
  if (args.room) {
16
16
  await this.streamToLink({ shell, multiplex, roomLink: args.room });
17
17
  process.exit(0);
@@ -48,7 +48,7 @@ class TeleTypeCommand extends command_1.Command {
48
48
  const app = await (0, oorja_1.getApp)({ roomLink });
49
49
  const roomKey = app.getRoomKey(roomLink);
50
50
  this.clearstdin();
51
- await app.teletype(Object.assign(Object.assign({ roomKey }, options), { process }));
51
+ await app.teletype({ roomKey, ...options, process });
52
52
  }
53
53
  async createRoomAndStream({ shell, multiplex, }) {
54
54
  const app = await (0, oorja_1.getApp)();
@@ -105,21 +105,23 @@ Will also allow room participants to write to your terminal!
105
105
  `,
106
106
  ];
107
107
  TeleTypeCommand.flags = {
108
- help: command_1.flags.help({ char: "h" }),
109
- shell: command_1.flags.string({
108
+ help: core_1.Flags.help({ char: "h" }),
109
+ shell: core_1.Flags.string({
110
110
  char: "s",
111
111
  description: "shell to use. e.g. bash, fish",
112
112
  default: DEFAULT_SHELL,
113
113
  }),
114
- multiplex: command_1.flags.boolean({
114
+ multiplex: core_1.Flags.boolean({
115
115
  char: "m",
116
116
  description: "Allows room users to WRITE TO YOUR SHELL i.e enables collaboration mode. Make sure you trust room participants. Off by default",
117
117
  default: false,
118
118
  }),
119
- new_room: command_1.flags.boolean({
119
+ new_room: core_1.Flags.boolean({
120
120
  char: "n",
121
121
  description: "Create new room",
122
122
  default: false,
123
123
  }),
124
124
  };
125
- TeleTypeCommand.args = [{ name: "room" }];
125
+ TeleTypeCommand.args = {
126
+ room: core_1.Args.string({})
127
+ };
@@ -0,0 +1 @@
1
+ export { run } from '@oclif/core';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.run = void 0;
4
- var command_1 = require("@oclif/command");
5
- Object.defineProperty(exports, "run", { enumerable: true, get: function () { return command_1.run; } });
4
+ var core_1 = require("@oclif/core");
5
+ Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
@@ -1,5 +1,5 @@
1
1
  import { URL } from "url";
2
- export declare const CLI_VERSION = 1.73;
2
+ export declare const CLI_VERSION = 1.77;
3
3
  export declare const config: any;
4
4
  export type env = "staging" | "local" | "prod" | "prod-teletype";
5
5
  export type SuryaConfig = {
@@ -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.73;
5
+ exports.CLI_VERSION = 1.77;
6
6
  const Conf = require("conf");
7
7
  exports.config = new Conf({
8
8
  projectName: "oorja",
@@ -14,6 +14,7 @@ const getSuryaConfig = (env) => {
14
14
  case "local":
15
15
  return "localhost:4000";
16
16
  case "staging":
17
+ return "surya-staging.oorja.io";
17
18
  case "prod":
18
19
  case "prod-teletype":
19
20
  return "surya.oorja.io";
@@ -28,7 +28,11 @@ class OORJA {
28
28
  return `${oorjaURL(this.config)}/rooms?id=${roomKey.roomId}#${(0, encryption_1.exportKey)(roomKey.key)}`;
29
29
  };
30
30
  this.teletype = (options) => {
31
- return (0, teletype_1.teletypeApp)(Object.assign({ userId: this.user.id, joinChannel: this.suryaClient.joinChannel }, options));
31
+ return (0, teletype_1.teletypeApp)({
32
+ userId: this.user.id,
33
+ joinChannel: this.suryaClient.joinChannel,
34
+ ...options,
35
+ });
32
36
  };
33
37
  }
34
38
  getRoomKey(roomLink) {
@@ -1,6 +1,6 @@
1
- export declare const globalSelf: any;
2
- export declare const phxWindow: any;
3
- export declare const global: any;
1
+ export declare const globalSelf: (Window & typeof globalThis) | null;
2
+ export declare const phxWindow: (Window & typeof globalThis) | null;
3
+ export declare const global: {};
4
4
  export declare const DEFAULT_VSN = "2.0.0";
5
5
  export declare const SOCKET_STATES: {
6
6
  connecting: number;
@@ -180,7 +180,7 @@ export default class Socket {
180
180
  /**
181
181
  * @returns {string}
182
182
  */
183
- connectionState(): "closed" | "connecting" | "open" | "closing";
183
+ connectionState(): "open" | "closed" | "connecting" | "closing";
184
184
  /**
185
185
  * @returns {boolean}
186
186
  */
@@ -52,7 +52,7 @@ const teletypeApp = (options) => {
52
52
  });
53
53
  // track own dimensions and keep it up to date
54
54
  setInterval(reEvaluateOwnDimensions, 1000);
55
- term.on("data", (d) => {
55
+ term.onData((d) => {
56
56
  stdout.write(d);
57
57
  // revisit: is it worth having one letter names, instead of something descriptive
58
58
  // does it really save bytes?
@@ -62,13 +62,13 @@ const teletypeApp = (options) => {
62
62
  d: (0, encryption_1.encrypt)(d, options.roomKey),
63
63
  });
64
64
  });
65
- term.on("exit", () => {
65
+ term.onExit(() => {
66
66
  console.log(chalk.blueBright("terminated shell stream to oorja. byee!"));
67
67
  resolve(null);
68
68
  });
69
69
  stdin.setEncoding("utf8");
70
70
  stdin.setRawMode(true);
71
- stdin.on("data", (d) => term.write(d));
71
+ stdin.on("data", (d) => term.write(d.toString("utf8")));
72
72
  },
73
73
  onClose: () => {
74
74
  console.log(chalk.redBright("connection closed, terminated stream."));
@@ -1 +1,68 @@
1
- {"version":"1.7.5","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"}]}}}
1
+ {
2
+ "version": "1.7.8",
3
+ "commands": {
4
+ "signout": {
5
+ "id": "signout",
6
+ "description": "Sign-out of oorja. Clears saved auth-token",
7
+ "strict": true,
8
+ "pluginName": "oorja",
9
+ "pluginAlias": "oorja",
10
+ "pluginType": "core",
11
+ "aliases": [],
12
+ "flags": {},
13
+ "args": {}
14
+ },
15
+ "teletype": {
16
+ "id": "teletype",
17
+ "description": "Launch a terminal streaming session in oorja.",
18
+ "strict": true,
19
+ "pluginName": "oorja",
20
+ "pluginAlias": "oorja",
21
+ "pluginType": "core",
22
+ "aliases": [
23
+ "tty"
24
+ ],
25
+ "examples": [
26
+ "$ teletype\nWill prompt to choose streaming destination - existing room or create a new one.\n\n",
27
+ "$ teletype 'https://oorja.io/rooms?id=foo#key'\nWill stream to the room specified by secret link, you must have joined the room before streaming.\n\n",
28
+ "$ teletype -m\nWill also allow room participants to write to your terminal!\n\n"
29
+ ],
30
+ "flags": {
31
+ "help": {
32
+ "name": "help",
33
+ "type": "boolean",
34
+ "char": "h",
35
+ "description": "Show CLI help.",
36
+ "allowNo": false
37
+ },
38
+ "shell": {
39
+ "name": "shell",
40
+ "type": "option",
41
+ "char": "s",
42
+ "description": "shell to use. e.g. bash, fish",
43
+ "multiple": false,
44
+ "default": "/usr/bin/zsh"
45
+ },
46
+ "multiplex": {
47
+ "name": "multiplex",
48
+ "type": "boolean",
49
+ "char": "m",
50
+ "description": "Allows room users to WRITE TO YOUR SHELL i.e enables collaboration mode. Make sure you trust room participants. Off by default",
51
+ "allowNo": false
52
+ },
53
+ "new_room": {
54
+ "name": "new_room",
55
+ "type": "boolean",
56
+ "char": "n",
57
+ "description": "Create new room",
58
+ "allowNo": false
59
+ }
60
+ },
61
+ "args": {
62
+ "room": {
63
+ "name": "room"
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
package/package.json CHANGED
@@ -1,53 +1,52 @@
1
1
  {
2
2
  "name": "oorja",
3
3
  "description": "stream terminals to the web and more.",
4
- "version": "1.7.5",
4
+ "version": "1.7.8",
5
5
  "author": "Akshay Kumar @akshaykmr",
6
6
  "bin": {
7
- "oorja": "./bin/run",
7
+ "oorja": "./bin/oorja",
8
8
  "teletype": "./bin/teletype"
9
9
  },
10
10
  "bugs": "https://github.com/akshaykmr/TeleType/issues",
11
11
  "dependencies": {
12
12
  "@msgpack/msgpack": "^2.8.0",
13
- "@oclif/command": "^1",
14
- "@oclif/config": "^1",
15
- "@oclif/plugin-help": "^3",
16
- "axios": "^1.2",
13
+ "@oclif/core": "^2",
14
+ "@oclif/plugin-help": "^5",
15
+ "@oclif/plugin-plugins": "^3.4.0",
16
+ "axios": "^1.5.0",
17
17
  "camelcase-keys": "^6.2.2",
18
- "chalk": "^4",
19
- "conf-cli": "^0.1.9",
20
- "enquirer": "^2.3.6",
21
- "node-pty": "^0.10.1",
18
+ "chalk": "^4.1.2",
22
19
  "ora": "^4",
20
+ "conf-cli": "^0.1.9",
21
+ "enquirer": "^2.4.1",
22
+ "node-pty": "^1.0.0",
23
23
  "term-size": "^2.2.0",
24
- "tslib": "^1",
25
- "ws": "^8.11"
24
+ "tslib": "^2.6.2",
25
+ "ws": "^8.14.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@oclif/dev-cli": "^1",
29
- "@types/node": "^10",
30
- "globby": "^10",
31
- "prettier": "^2.0.5",
32
- "ts-node": "^8",
33
- "tslint": "^6.1.1",
34
- "tslint-config-airbnb": "^5.11.2",
35
- "tslint-config-prettier": "^1.18.0",
36
- "tslint-plugin-prettier": "^2.3.0",
37
- "tslint-react": "^4.2.0",
38
- "typescript": "^4.9.4",
39
- "aws-sdk": "2.1282"
28
+ "@types/node": "^16.18.50",
29
+ "chai": "^4",
30
+ "eslint": "^7.32.0",
31
+ "eslint-config-oclif": "^4",
32
+ "eslint-config-oclif-typescript": "^1.0.3",
33
+ "oclif": "^3.15.0",
34
+ "prettier": "^3.0.3",
35
+ "shx": "^0.3.3",
36
+ "ts-node": "^10.9.1",
37
+ "tslib": "^2.6.2",
38
+ "typescript": "^4.9.5"
40
39
  },
41
40
  "engines": {
42
- "node": ">=16.0.0 <17.0.0"
41
+ "node": ">=18.17.1"
43
42
  },
44
43
  "files": [
45
44
  "/bin",
46
- "/lib",
45
+ "/dist",
47
46
  "/npm-shrinkwrap.json",
48
47
  "/oclif.manifest.json"
49
48
  ],
50
- "homepage": "https://teletype.oorja.io",
49
+ "homepage": "https://oorja.io",
51
50
  "keywords": [
52
51
  "teletype",
53
52
  "terminal",
@@ -56,32 +55,27 @@
56
55
  "cli"
57
56
  ],
58
57
  "license": "SEE LICENSE IN license.txt",
59
- "main": "lib/index.js",
58
+ "main": "dist/index.js",
60
59
  "oclif": {
61
- "commands": "./lib/commands",
60
+ "commands": "./dist/commands",
62
61
  "bin": "oorja",
63
62
  "plugins": [
64
63
  "@oclif/plugin-help",
64
+ "@oclif/plugin-plugins",
65
65
  "conf-cli"
66
- ],
67
- "update": {
68
- "s3": {
69
- "host": "https://cli-dist-a327765.s3.amazonaws.com",
70
- "bucket": "cli-dist-a327765"
71
- }
72
- }
66
+ ]
73
67
  },
74
68
  "repository": "akshaykmr/TeleType",
75
69
  "scripts": {
76
- "postpack": "rm -f oclif.manifest.json",
77
- "prepack": "rm -rf lib && tsc --skipLibCheck true && oclif-dev manifest && oclif-dev readme",
78
- "test": "echo NO TESTS",
79
- "version": "oclif-dev readme && git add README.md",
80
- "lint": "tslint -p ./tsconfig.json -t stylish",
81
- "lint-fix": "tslint -p ./tsconfig.json -t stylish --fix",
70
+ "build": "shx rm -rf dist && tsc -b",
71
+ "lint": "eslint . --ext .ts --config .eslintrc",
72
+ "postpack": "shx rm -f oclif.manifest.json",
73
+ "posttest": "yarn lint",
74
+ "prepack": "yarn build && oclif manifest && oclif readme",
75
+ "version": "oclif readme && git add README.md",
82
76
  "prettier": "prettier --write './**/*.{ts,tsx,js,css,html}'"
83
77
  },
84
- "types": "lib/index.d.ts",
78
+ "types": "dist/index.d.ts",
85
79
  "optionalDependencies": {
86
80
  "bufferutil": "^4.0.1",
87
81
  "utf-8-validate": "^5.0.2"
package/NOTICE.txt DELETED
@@ -1,5 +0,0 @@
1
- oorja | teletype
2
- Copyright 2020 akshay@oorja.io
3
-
4
- This product includes software developed for https://oorja.io
5
- a realtime-collaboration app. see license.txt for details
package/bin/run DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- require('@oclif/command').run()
4
- .then(require('@oclif/command/flush'))
5
- .catch(require('@oclif/errors/handle'))
@@ -1,19 +0,0 @@
1
- import { Command, flags } from "@oclif/command";
2
- export default class TeleTypeCommand extends Command {
3
- static aliases: string[];
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
7
- help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
8
- shell: flags.IOptionFlag<string>;
9
- multiplex: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- new_room: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
11
- };
12
- static args: {
13
- name: string;
14
- }[];
15
- run(): Promise<void>;
16
- private streamToLink;
17
- private createRoomAndStream;
18
- private clearstdin;
19
- }
@@ -1 +0,0 @@
1
- export { run } from "@oclif/command";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes