@wagmi/cli
Advanced tools
Comparing version 2.1.4 to 2.1.6
@@ -25,2 +25,6 @@ #!/usr/bin/env node | ||
try { | ||
process.title = 'node (wagmi)'; | ||
} | ||
catch { } | ||
try { | ||
// Parse CLI args without running command | ||
@@ -27,0 +31,0 @@ cli.parse(process.argv, { run: false }); |
@@ -12,2 +12,5 @@ import { blockExplorer } from './blockExplorer.js'; | ||
[11_155_420]: 'https://api-sepolia-optimistic.etherscan.io/api', | ||
// Base | ||
[84532]: 'https://api-sepolia.basescan.org/api', | ||
[8453]: 'https://api.basescan.org/api', | ||
// Polygon | ||
@@ -14,0 +17,0 @@ [137]: 'https://api.polygonscan.com/api', |
@@ -5,3 +5,8 @@ import { findUp } from 'find-up'; | ||
const cwd = process.cwd(); | ||
const tsconfig = await findUp('tsconfig.json', { cwd }); | ||
const tsconfig = await findUp([ | ||
'tsconfig.json', | ||
'tsconfig.base.json', | ||
'tsconfig.lib.json', | ||
'tsconfig.node.json', | ||
], { cwd }); | ||
if (tsconfig) | ||
@@ -8,0 +13,0 @@ return true; |
@@ -1,2 +0,2 @@ | ||
export const version = '2.1.4'; | ||
export const version = '2.1.6'; | ||
//# sourceMappingURL=version.js.map |
@@ -11,2 +11,4 @@ import type { ContractConfig } from '../config.js'; | ||
11155420: string; | ||
84532: string; | ||
8453: string; | ||
137: string; | ||
@@ -45,2 +47,3 @@ 80001: string; | ||
* - [__Optimism__](https://optimistic.etherscan.io/myapikey) | ||
* - [__Base__](https://basescan.org/myapikey) | ||
* - [__Polygon__](https://polygonscan.com/myapikey) | ||
@@ -96,2 +99,7 @@ * - [__Fraxtal__](https://fraxscan.com/myapikey) | ||
prepend?: string | undefined; | ||
/** | ||
* Duration in milliseconds to cache ABIs. | ||
* | ||
* @default 1_800_000 // 30m in ms | ||
*/ | ||
content: string; | ||
@@ -98,0 +106,0 @@ }>) | undefined; |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.1.4"; | ||
export declare const version = "2.1.6"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "@wagmi/cli", | ||
"description": "Manage and generate code from Ethereum ABIs", | ||
"version": "2.1.4", | ||
"version": "2.1.6", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -31,2 +31,6 @@ #!/usr/bin/env node | ||
try { | ||
process.title = 'node (wagmi)' | ||
} catch {} | ||
try { | ||
// Parse CLI args without running command | ||
@@ -33,0 +37,0 @@ cli.parse(process.argv, { run: false }) |
@@ -15,2 +15,5 @@ import type { ContractConfig } from '../config.js' | ||
[11_155_420]: 'https://api-sepolia-optimistic.etherscan.io/api', | ||
// Base | ||
[84532]: 'https://api-sepolia.basescan.org/api', | ||
[8453]: 'https://api.basescan.org/api', | ||
// Polygon | ||
@@ -59,2 +62,3 @@ [137]: 'https://api.polygonscan.com/api', | ||
* - [__Optimism__](https://optimistic.etherscan.io/myapikey) | ||
* - [__Base__](https://basescan.org/myapikey) | ||
* - [__Polygon__](https://polygonscan.com/myapikey) | ||
@@ -61,0 +65,0 @@ * - [__Fraxtal__](https://fraxscan.com/myapikey) |
@@ -6,3 +6,11 @@ import { findUp } from 'find-up' | ||
const cwd = process.cwd() | ||
const tsconfig = await findUp('tsconfig.json', { cwd }) | ||
const tsconfig = await findUp( | ||
[ | ||
'tsconfig.json', | ||
'tsconfig.base.json', | ||
'tsconfig.lib.json', | ||
'tsconfig.node.json', | ||
], | ||
{ cwd }, | ||
) | ||
if (tsconfig) return true | ||
@@ -9,0 +17,0 @@ |
@@ -1,1 +0,1 @@ | ||
export const version = '2.1.4' | ||
export const version = '2.1.6' |
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
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
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
463921
4931