@openzeppelin/defender-autotask-client
Advanced tools
Comparing version 1.48.0 to 1.49.0
/// <reference types="node" /> | ||
import { BaseApiClient } from '@openzeppelin/defender-base-client'; | ||
import { BaseApiClient, ApiVersion } from '@openzeppelin/defender-base-client'; | ||
import { CreateAutotaskRequest, UpdateAutotaskRequest, GetSecretsResponse, SaveSecretsRequest } from './models/autotask'; | ||
@@ -13,3 +13,3 @@ import { AutotaskRunBase, AutotaskRunListResponse, AutotaskRunResponse, AutotaskRunStatus } from './models/autotask-run.res'; | ||
protected getPoolClientId(): string; | ||
protected getApiUrl(): string; | ||
protected getApiUrl(v?: ApiVersion): string; | ||
list(): Promise<AutotaskListResponse>; | ||
@@ -16,0 +16,0 @@ get(autotaskId: string): Promise<AutotaskResponse>; |
@@ -14,3 +14,6 @@ "use strict"; | ||
} | ||
getApiUrl() { | ||
getApiUrl(v = 'v1') { | ||
if (v === 'v2') { | ||
return process.env.DEFENDER_API_V2_URL || 'https://defender-api.openzeppelin.com/v2/'; | ||
} | ||
return process.env.DEFENDER_AUTOTASK_API_URL || 'https://defender-api.openzeppelin.com/autotask/'; | ||
@@ -17,0 +20,0 @@ } |
{ | ||
"name": "@openzeppelin/defender-autotask-client", | ||
"version": "1.48.0", | ||
"version": "1.49.0", | ||
"description": "Client library for managing Defender Autotasks", | ||
@@ -30,3 +30,3 @@ "bin": { | ||
"dependencies": { | ||
"@openzeppelin/defender-base-client": "1.48.0", | ||
"@openzeppelin/defender-base-client": "1.49.0", | ||
"axios": "^1.4.0", | ||
@@ -33,0 +33,0 @@ "dotenv": "^10.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88290
45
1049
9
+ Added@openzeppelin/defender-base-client@1.49.0(transitive)
- Removed@openzeppelin/defender-base-client@1.48.0(transitive)