Skip to content

Commit

Permalink
chore: (deps) update axios
Browse files Browse the repository at this point in the history
  • Loading branch information
suthar26 committed Aug 27, 2024
1 parent 1083392 commit 3f9fa4d
Show file tree
Hide file tree
Showing 5 changed files with 1,057 additions and 999 deletions.
2 changes: 1 addition & 1 deletion oclif.manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.15.2",
"version": "5.16.0",
"commands": {
"authCommand": {
"id": "authCommand",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/validator": "^13.7.1",
"@zodios/core": "^10.9.1",
"@zodios/openapi": "^10.4.7",
"axios": "^1.4.0",
"axios": "^1.7.5",
"chalk": "^4.1.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
Expand Down Expand Up @@ -59,7 +59,7 @@
"eslint-config-oclif": "^4",
"eslint-config-oclif-typescript": "^1.0.2",
"eslint-config-prettier": "9.1.0",
"globby": "^11",
"globby": "^14.0.2",
"mocha": "^9",
"nock": "^13.2.2",
"oclif": "^3.9.0",
Expand Down
5 changes: 5 additions & 0 deletions src/auth/ApiAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Writer from '../ui/writer'
type SupportedFlags = {
'client-id'?: string
'client-secret'?: string
'no-api'?: boolean
}

export class ApiAuth {
Expand Down Expand Up @@ -42,6 +43,10 @@ export class ApiAuth {
process.env.DEVCYCLE_CLIENT_SECRET ||
process.env.DVC_CLIENT_SECRET

if (flags['no-api']) {
return ''
}

if (clientId && clientSecret) {
return this.fetchClientToken(clientId, clientSecret)
}
Expand Down
4 changes: 4 additions & 0 deletions src/ui/targetingTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const comparatorMap = {
'!=': 'is not',
contain: 'contains',
'!contain': 'does not contain',
startWith: 'startWith',
'!startWith': 'does not startWith',
endWith: 'endWith',
'!endWith': 'does not endWith',
exist: 'exists',
'!exist': 'does not exist',
'>': 'is greater than',
Expand Down
Loading

0 comments on commit 3f9fa4d

Please sign in to comment.