Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openzeppelin/defender-sdk-base-client

Package Overview
Dependencies
Maintainers
7
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openzeppelin/defender-sdk-base-client - npm Package Compare versions

Comparing version 1.14.3 to 1.14.4

4

lib/api/client.js

@@ -89,2 +89,5 @@ "use strict";

catch (error) {
if (isForbiddenError(error)) {
throw new Error('API Key is either expired or invalid');
}
// this means ID token has expired so we'll recreate session and try again

@@ -131,1 +134,2 @@ if (isAuthenticationError(error)) {

exports.exponentialDelay = exponentialDelay;
const isForbiddenError = (axiosError) => axiosError.response?.status === 403 && axiosError.response?.statusText === 'Forbidden';
export { createApi, createAuthenticatedApi } from './api/api';
export { authenticate } from './api/auth';
export { BaseApiClient, RetryConfig, AuthConfig } from './api/client';
export { BaseActionClient } from './action';
export * from './utils/network';

@@ -5,0 +6,0 @@ export declare const VERSION: any;

4

lib/index.js

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFENDER_APP_URL = exports.VERSION = exports.BaseApiClient = exports.authenticate = exports.createAuthenticatedApi = exports.createApi = void 0;
exports.DEFENDER_APP_URL = exports.VERSION = exports.BaseActionClient = exports.BaseApiClient = exports.authenticate = exports.createAuthenticatedApi = exports.createApi = void 0;
var api_1 = require("./api/api");

@@ -26,2 +26,4 @@ Object.defineProperty(exports, "createApi", { enumerable: true, get: function () { return api_1.createApi; } });

Object.defineProperty(exports, "BaseApiClient", { enumerable: true, get: function () { return client_1.BaseApiClient; } });
var action_1 = require("./action");
Object.defineProperty(exports, "BaseActionClient", { enumerable: true, get: function () { return action_1.BaseActionClient; } });
__exportStar(require("./utils/network"), exports);

@@ -28,0 +30,0 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires

export type Network = SupportedNetwork | TenantNetwork;
export type SupportedNetwork = PublicNetwork | CustomNetwork;
export type PublicNetwork = 'alfajores' | 'amoy' | 'arbitrum-nova' | 'arbitrum-sepolia' | 'arbitrum' | 'aurora' | 'auroratest' | 'avalanche' | 'base-sepolia' | 'base' | 'bsc' | 'bsctest' | 'celo' | 'fantom' | 'fantomtest' | 'fuji' | 'fuse' | 'harmony-s0' | 'harmony-test-s0' | 'hedera' | 'hederatest' | 'holesky' | 'japan-testnet' | 'japan' | 'linea-goerli' | 'linea' | 'mainnet' | 'mantle-sepolia' | 'mantle' | 'matic-zkevm-testnet' | 'matic-zkevm' | 'matic' | 'meld-kanazawa' | 'meld' | 'moonbase' | 'moonbeam' | 'moonriver' | 'mumbai' | 'optimism-sepolia' | 'optimism' | 'scroll-sepolia' | 'scroll' | 'sepolia' | 'sokol' | 'xdai' | 'zksync-sepolia' | 'zksync';
export type PublicNetwork = 'alfajores' | 'amoy' | 'arbitrum-nova' | 'arbitrum-sepolia' | 'arbitrum' | 'aurora' | 'auroratest' | 'avalanche' | 'base-sepolia' | 'base' | 'bsc' | 'bsctest' | 'celo' | 'fantom' | 'fantomtest' | 'fuji' | 'fuse' | 'harmony-s0' | 'harmony-test-s0' | 'hedera' | 'hederatest' | 'holesky' | 'japan-testnet' | 'japan' | 'linea-goerli' | 'linea-sepolia' | 'linea' | 'mainnet' | 'mantle-sepolia' | 'mantle' | 'matic-zkevm-testnet' | 'matic-zkevm' | 'matic' | 'meld-kanazawa' | 'meld' | 'moonbase' | 'moonbeam' | 'moonriver' | 'mumbai' | 'optimism-sepolia' | 'optimism' | 'scroll-sepolia' | 'scroll' | 'sepolia' | 'sokol' | 'xdai' | 'zksync-sepolia' | 'zksync';
export type CustomNetwork = 'x-dfk-avax-chain' | 'x-dfk-avax-chain-test' | 'x-security-alliance';

@@ -5,0 +5,0 @@ export type TenantNetwork = string;

@@ -31,2 +31,3 @@ "use strict";

'linea-goerli',
'linea-sepolia',
'linea',

@@ -97,2 +98,3 @@ 'mainnet',

'linea-goerli': 59140,
'linea-sepolia': 59141,
'mainnet': 1,

@@ -99,0 +101,0 @@ 'mantle': 5000,

{
"name": "@openzeppelin/defender-sdk-base-client",
"version": "1.14.3",
"version": "1.14.4",
"description": "",

@@ -18,4 +18,4 @@ "main": "./lib/index.js",

"@aws-sdk/client-lambda": "^3.563.0",
"@types/async-retry": "^1.4.4",
"aws-sdk": "^2.1589.0"
"@types/async-retry": "^1.4.8",
"aws-sdk": "^2.1662.0"
},

@@ -22,0 +22,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc