@trayai/tray-sync-cli 0.0.11 → 0.0.13

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 (33) hide show
  1. package/dist/commands/auth.js +1 -21
  2. package/dist/commands/init.js +1 -1
  3. package/dist/commands/promote.js +7 -5
  4. package/dist/lib/promoteReport.js +0 -21
  5. package/dist/views/auth/auth.js +22 -0
  6. package/dist/views/auth/auth.v2.js +30 -0
  7. package/dist/views/init/init.v2.js +20 -0
  8. package/dist/views/promote/promote.v2.js +37 -13
  9. package/dist/views/shared.js +2 -1
  10. package/package.json +5 -4
  11. package/node_modules/ansi-regex/index.d.ts +0 -33
  12. package/node_modules/ansi-regex/index.js +0 -14
  13. package/node_modules/ansi-regex/license +0 -9
  14. package/node_modules/ansi-regex/package.json +0 -61
  15. package/node_modules/ansi-regex/readme.md +0 -66
  16. package/node_modules/get-east-asian-width/index.d.ts +0 -60
  17. package/node_modules/get-east-asian-width/index.js +0 -30
  18. package/node_modules/get-east-asian-width/license +0 -9
  19. package/node_modules/get-east-asian-width/lookup-data.js +0 -21
  20. package/node_modules/get-east-asian-width/lookup.js +0 -138
  21. package/node_modules/get-east-asian-width/package.json +0 -71
  22. package/node_modules/get-east-asian-width/readme.md +0 -65
  23. package/node_modules/get-east-asian-width/utilities.js +0 -24
  24. package/node_modules/string-width/index.d.ts +0 -39
  25. package/node_modules/string-width/index.js +0 -207
  26. package/node_modules/string-width/license +0 -9
  27. package/node_modules/string-width/package.json +0 -65
  28. package/node_modules/string-width/readme.md +0 -66
  29. package/node_modules/strip-ansi/index.d.ts +0 -15
  30. package/node_modules/strip-ansi/index.js +0 -19
  31. package/node_modules/strip-ansi/license +0 -9
  32. package/node_modules/strip-ansi/package.json +0 -59
  33. package/node_modules/strip-ansi/readme.md +0 -37
@@ -1,19 +0,0 @@
1
- import ansiRegex from 'ansi-regex';
2
-
3
- const regex = ansiRegex();
4
-
5
- export default function stripAnsi(string) {
6
- if (typeof string !== 'string') {
7
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
8
- }
9
-
10
- // Fast path: ANSI codes require ESC (7-bit) or CSI (8-bit) introducer
11
- if (!string.includes('\u001B') && !string.includes('\u009B')) {
12
- return string;
13
- }
14
-
15
- // Even though the regex is global, we don't need to reset the `.lastIndex`
16
- // because unlike `.exec()` and `.test()`, `.replace()` does it automatically
17
- // and doing it manually has a performance penalty.
18
- return string.replace(regex, '');
19
- }
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,59 +0,0 @@
1
- {
2
- "name": "strip-ansi",
3
- "version": "7.2.0",
4
- "description": "Strip ANSI escape codes from a string",
5
- "license": "MIT",
6
- "repository": "chalk/strip-ansi",
7
- "funding": "https://github.com/chalk/strip-ansi?sponsor=1",
8
- "author": {
9
- "name": "Sindre Sorhus",
10
- "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
12
- },
13
- "type": "module",
14
- "exports": "./index.js",
15
- "types": "./index.d.ts",
16
- "sideEffects": false,
17
- "engines": {
18
- "node": ">=12"
19
- },
20
- "scripts": {
21
- "test": "xo && ava && tsd"
22
- },
23
- "files": [
24
- "index.js",
25
- "index.d.ts"
26
- ],
27
- "keywords": [
28
- "strip",
29
- "trim",
30
- "remove",
31
- "ansi",
32
- "styles",
33
- "color",
34
- "colour",
35
- "colors",
36
- "terminal",
37
- "console",
38
- "string",
39
- "tty",
40
- "escape",
41
- "formatting",
42
- "rgb",
43
- "256",
44
- "shell",
45
- "xterm",
46
- "log",
47
- "logging",
48
- "command-line",
49
- "text"
50
- ],
51
- "dependencies": {
52
- "ansi-regex": "^6.2.2"
53
- },
54
- "devDependencies": {
55
- "ava": "^6.4.1",
56
- "tsd": "^0.33.0",
57
- "xo": "^1.2.3"
58
- }
59
- }
@@ -1,37 +0,0 @@
1
- # strip-ansi
2
-
3
- > Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
4
-
5
- > [!NOTE]
6
- > Node.js has this built-in now with [`stripVTControlCharacters`](https://nodejs.org/api/util.html#utilstripvtcontrolcharactersstr). The benefit of this package is consistent behavior across Node.js versions and faster improvements. The Node.js version is actually based on this package.
7
-
8
- ## Install
9
-
10
- ```sh
11
- npm install strip-ansi
12
- ```
13
-
14
- ## Usage
15
-
16
- ```js
17
- import stripAnsi from 'strip-ansi';
18
-
19
- stripAnsi('\u001B[4mUnicorn\u001B[0m');
20
- //=> 'Unicorn'
21
-
22
- stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
23
- //=> 'Click'
24
- ```
25
-
26
- ## Related
27
-
28
- - [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
29
- - [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
30
- - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
31
- - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
32
- - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
33
-
34
- ## Maintainers
35
-
36
- - [Sindre Sorhus](https://github.com/sindresorhus)
37
- - [Josh Junon](https://github.com/qix-)