Skip to content

Commit 945da05

Browse files
committed
Remove node 18 depr warning, remove ugly banner newline padding
1 parent 86feada commit 945da05

29 files changed

+20
-82
lines changed

src/commands/analytics/cmd-analytics.test.mts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ describe('socket analytics', async () => {
7474
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
7575
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
7676
|_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
77-
7877
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
7978
8079
- The time filter must either be 7, 30 or 90 (\\x1b[32mok\\x1b[39m)
@@ -108,7 +107,6 @@ describe('socket analytics', async () => {
108107
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
109108
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
110109
|_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
111-
112110
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
113111
114112
- Legacy flags are no longer supported. See v1 migration guide. (\\x1b[31mreceived legacy flags\\x1b[39m)
@@ -169,7 +167,6 @@ describe('socket analytics', async () => {
169167
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
170168
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
171169
|_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
172-
173170
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
174171
175172
- When scope=repo, repo name should be the second argument (\\x1b[31mmissing\\x1b[39m)
@@ -281,7 +278,6 @@ describe('socket analytics', async () => {
281278
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
282279
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
283280
|_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: <redacted>
284-
285281
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
286282
287283
- Legacy flags are no longer supported. See v1 migration guide. (\\x1b[31mreceived legacy flags\\x1b[39m)

src/commands/audit-log/cmd-audit-log.test.mts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ describe('socket audit-log', async () => {
7878
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
7979
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
8080
|_____|___|___|_,_|___|_|.dev | Command: \`socket audit-log\`, cwd: <redacted>
81-
8281
\\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now...
8382
\\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag.
8483
\\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode
@@ -109,9 +108,8 @@ describe('socket audit-log', async () => {
109108
"
110109
_____ _ _ /---------------
111110
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
112-
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>, default org: <redacted>
111+
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>, org: <redacted>
113112
|_____|___|___|_,_|___|_|.dev | Command: \`socket audit-log\`, cwd: <redacted>
114-
115113
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
116114
117115
- Legacy flags are no longer supported. See v1 migration guide. (\\x1b[31mreceived legacy flags\\x1b[39m)
@@ -137,7 +135,7 @@ describe('socket audit-log', async () => {
137135
"
138136
_____ _ _ /---------------
139137
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
140-
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>, default org: <redacted>
138+
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>, org: <redacted>
141139
|_____|___|___|_,_|___|_|.dev | Command: \`socket audit-log\`, cwd: <redacted>"
142140
`)
143141

src/commands/cli.test.mts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ describe('socket root command', async () => {
7070
)
7171
expect(`\n ${stderr}`).toMatchInlineSnapshot(`
7272
"
73-
\\x1b[31m\\xd7\\x1b[39m Received a visible command that was not added to the list here: json
74-
\\x1b[31m\\xd7\\x1b[39m Found commands in the list that were not marked as public or not defined at all: 'dependencies'
7573
_____ _ _ /---------------
7674
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
7775
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>

src/commands/config/cmd-config-auto.test.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe('socket config auto', async () => {
3232
- apiToken -- The API token required to access most API endpoints
3333
- defaultOrg -- The default org slug to use; usually the org your API token has access to. When set, all orgSlug arguments are implied to be this value.
3434
- enforcedOrgs -- Orgs in this list have their security policies enforced on this machine
35+
- org -- Alias for defaultOrg
3536
3637
For certain keys it will request the value from server, for others it will
3738
reset the value to the default. For some keys this has no effect.
@@ -43,6 +44,7 @@ describe('socket config auto', async () => {
4344
- apiToken -- The API token required to access most API endpoints
4445
- defaultOrg -- The default org slug to use; usually the org your API token has access to. When set, all orgSlug arguments are implied to be this value.
4546
- enforcedOrgs -- Orgs in this list have their security policies enforced on this machine
47+
- org -- Alias for defaultOrg
4648
4749
Examples
4850
$ socket config auto defaultOrg"

src/commands/config/cmd-config-get.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('socket config get', async () => {
3434
- apiToken -- The API token required to access most API endpoints
3535
- defaultOrg -- The default org slug to use; usually the org your API token has access to. When set, all orgSlug arguments are implied to be this value.
3636
- enforcedOrgs -- Orgs in this list have their security policies enforced on this machine
37+
- org -- Alias for defaultOrg
3738
3839
Examples
3940
$ socket config get defaultOrg"
@@ -72,7 +73,6 @@ describe('socket config get', async () => {
7273
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
7374
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
7475
|_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: <redacted>
75-
7676
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
7777
7878
- Config key should be the first arg (\\x1b[31mmissing\\x1b[39m)

src/commands/config/cmd-config-set.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ describe('socket config get', async () => {
4141
- apiToken -- The API token required to access most API endpoints
4242
- defaultOrg -- The default org slug to use; usually the org your API token has access to. When set, all orgSlug arguments are implied to be this value.
4343
- enforcedOrgs -- Orgs in this list have their security policies enforced on this machine
44+
- org -- Alias for defaultOrg
4445
4546
Examples
4647
$ socket config set apiProxy https://example.com"
@@ -73,7 +74,6 @@ describe('socket config get', async () => {
7374
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
7475
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
7576
|_____|___|___|_,_|___|_|.dev | Command: \`socket config set\`, cwd: <redacted>
76-
7777
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
7878
7979
- Config key should be the first arg (\\x1b[31mmissing\\x1b[39m)

src/commands/config/cmd-config-unset.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe('socket config unset', async () => {
3535
- apiToken -- The API token required to access most API endpoints
3636
- defaultOrg -- The default org slug to use; usually the org your API token has access to. When set, all orgSlug arguments are implied to be this value.
3737
- enforcedOrgs -- Orgs in this list have their security policies enforced on this machine
38+
- org -- Alias for defaultOrg
3839
3940
Examples
4041
$ socket config unset defaultOrg"
@@ -67,7 +68,6 @@ describe('socket config unset', async () => {
6768
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
6869
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
6970
|_____|___|___|_,_|___|_|.dev | Command: \`socket config unset\`, cwd: <redacted>
70-
7171
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
7272
7373
- Config key should be the first arg (\\x1b[31mmissing\\x1b[39m)

src/commands/config/cmd-config.test.mts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ describe('socket config', async () => {
8484
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
8585
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
8686
|_____|___|___|_,_|___|_|.dev | Command: \`socket\`, cwd: <redacted>
87-
8887
\\x1b[31m\\xd7\\x1b[39m Could not parse Config as JSON"
8988
`)
9089

@@ -105,7 +104,6 @@ describe('socket config', async () => {
105104
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
106105
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
107106
|_____|___|___|_,_|___|_|.dev | Command: \`socket\`, cwd: <redacted>
108-
109107
\\x1b[31m\\xd7\\x1b[39m Could not parse Config as JSON"
110108
`)
111109

src/commands/json/cmd-json.test.mts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ describe('socket json', async () => {
5151
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
5252
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
5353
|_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: <redacted>
54-
5554
\\x1b[34mi\\x1b[39m Target cwd: <redacted>
5655
\\x1b[31m\\xd7\\x1b[39m Not found: <redacted>"
5756
`)
@@ -72,7 +71,6 @@ describe('socket json', async () => {
7271
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
7372
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
7473
|_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: <redacted>
75-
7674
\\x1b[34mi\\x1b[39m Target cwd: <redacted>
7775
\\x1b[31m\\xd7\\x1b[39m Not found: <redacted>"
7876
`)
@@ -99,7 +97,6 @@ describe('socket json', async () => {
9997
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
10098
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
10199
|_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: <redacted>
102-
103100
\\x1b[34mi\\x1b[39m Target cwd: <redacted>
104101
\\x1b[31m\\xd7\\x1b[39m Not found: <redacted>"
105102
`)
@@ -139,7 +136,6 @@ describe('socket json', async () => {
139136
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
140137
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
141138
|_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: <redacted>
142-
143139
\\x1b[34mi\\x1b[39m Target cwd: <redacted>
144140
\\x1b[32m\\u221a\\x1b[39m This is the contents of <redacted>:"
145141
`)

src/commands/manifest/cmd-manifest-conda.test.mts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ describe('socket manifest conda', async () => {
7070
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
7171
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
7272
|_____|___|___|_,_|___|_|.dev | Command: \`socket manifest conda\`, cwd: <redacted>
73-
7473
\\x1b[33m\\u203c\\x1b[39m Warning: This will approximate your Conda dependencies using PyPI. We do not yet officially support Conda. Use at your own risk."
7574
`)
7675

@@ -98,7 +97,6 @@ describe('socket manifest conda', async () => {
9897
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
9998
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
10099
|_____|___|___|_,_|___|_|.dev | Command: \`socket manifest conda\`, cwd: <redacted>
101-
102100
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
103101
104102
- Can only accept one DIR (make sure to escape spaces!) (\\x1b[31mreceived 2\\x1b[39m)
@@ -157,7 +155,6 @@ describe('socket manifest conda', async () => {
157155
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
158156
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
159157
|_____|___|___|_,_|___|_|.dev | Command: \`socket manifest conda\`, cwd: <redacted>
160-
161158
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
162159
163160
- Can only accept one DIR (make sure to escape spaces!) (\\x1b[31mreceived 2\\x1b[39m)

src/commands/organization/cmd-organization-policy-license.test.mts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ describe('socket organization policy license', async () => {
6666
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
6767
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
6868
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy license\`, cwd: <redacted>
69-
7069
\\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now...
7170
\\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag.
7271
\\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode
@@ -100,7 +99,6 @@ describe('socket organization policy license', async () => {
10099
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
101100
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
102101
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy license\`, cwd: <redacted>
103-
104102
\\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now...
105103
\\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag.
106104
\\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode"
@@ -127,7 +125,7 @@ describe('socket organization policy license', async () => {
127125
"
128126
_____ _ _ /---------------
129127
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
130-
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>, default org: <redacted>
128+
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>, org: <redacted>
131129
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy license\`, cwd: <redacted>"
132130
`)
133131

src/commands/organization/cmd-organization-policy-security.test.mts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ describe('socket organization policy security', async () => {
6666
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
6767
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
6868
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy security\`, cwd: <redacted>
69-
7069
\\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now...
7170
\\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag.
7271
\\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode
@@ -101,7 +100,6 @@ describe('socket organization policy security', async () => {
101100
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
102101
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
103102
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy security\`, cwd: <redacted>
104-
105103
\\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now...
106104
\\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag.
107105
\\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode
@@ -132,7 +130,7 @@ describe('socket organization policy security', async () => {
132130
"
133131
_____ _ _ /---------------
134132
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
135-
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>, default org: <redacted>
133+
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>, org: <redacted>
136134
|_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy security\`, cwd: <redacted>"
137135
`)
138136

src/commands/package/cmd-package-score.test.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ describe('socket package score', async () => {
8181
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
8282
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
8383
|_____|___|___|_,_|___|_|.dev | Command: \`socket package score\`, cwd: <redacted>
84-
8584
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
8685
8786
- First parameter must be an ecosystem or the whole purl (\\x1b[31mbad\\x1b[39m)

src/commands/package/cmd-package-shallow.test.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ describe('socket package shallow', async () => {
7979
| __|___ ___| |_ ___| |_ | Socket.dev CLI ver <redacted>
8080
|__ | * | _| '_| -_| _| | Node: <redacted>, API token set: <redacted>
8181
|_____|___|___|_,_|___|_|.dev | Command: \`socket package shallow\`, cwd: <redacted>
82-
8382
\\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again
8483
8584
- First parameter should be an ecosystem or all args must be purls (\\x1b[31mbad\\x1b[39m)

0 commit comments

Comments
 (0)