Skip to content

Commit 8a7d38c

Browse files
committed
lint
1 parent 97683d2 commit 8a7d38c

File tree

4 files changed

+45
-89
lines changed

4 files changed

+45
-89
lines changed

packages/thirdweb/package.json

Lines changed: 20 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -137,66 +137,26 @@
137137
},
138138
"typesVersions": {
139139
"*": {
140-
"adapters/*": [
141-
"./dist/types/exports/adapters/*.d.ts"
142-
],
143-
"auth": [
144-
"./dist/types/exports/auth.d.ts"
145-
],
146-
"chains": [
147-
"./dist/types/exports/chains.d.ts"
148-
],
149-
"contract": [
150-
"./dist/types/exports/contract.d.ts"
151-
],
152-
"deploys": [
153-
"./dist/types/exports/deploys.d.ts"
154-
],
155-
"event": [
156-
"./dist/types/exports/event.d.ts"
157-
],
158-
"extensions/*": [
159-
"./dist/types/exports/extensions/*.d.ts"
160-
],
161-
"pay": [
162-
"./dist/types/exports/pay.d.ts"
163-
],
164-
"react": [
165-
"./dist/types/exports/react.d.ts"
166-
],
167-
"react-native": [
168-
"./dist/types/exports/react-native.d.ts"
169-
],
170-
"rpc": [
171-
"./dist/types/exports/rpc.d.ts"
172-
],
173-
"storage": [
174-
"./dist/types/exports/storage.d.ts"
175-
],
176-
"transaction": [
177-
"./dist/types/exports/transaction.d.ts"
178-
],
179-
"utils": [
180-
"./dist/types/exports/utils.d.ts"
181-
],
182-
"wallets": [
183-
"./dist/types/exports/wallets.d.ts"
184-
],
185-
"wallets/*": [
186-
"./dist/types/exports/wallets/*.d.ts"
187-
],
188-
"modules": [
189-
"./dist/types/exports/modules.d.ts"
190-
],
191-
"social": [
192-
"./dist/types/exports/social.d.ts"
193-
],
194-
"ai": [
195-
"./dist/types/exports/ai.d.ts"
196-
],
197-
"bridge": [
198-
"./dist/types/exports/bridge.d.ts"
199-
]
140+
"adapters/*": ["./dist/types/exports/adapters/*.d.ts"],
141+
"auth": ["./dist/types/exports/auth.d.ts"],
142+
"chains": ["./dist/types/exports/chains.d.ts"],
143+
"contract": ["./dist/types/exports/contract.d.ts"],
144+
"deploys": ["./dist/types/exports/deploys.d.ts"],
145+
"event": ["./dist/types/exports/event.d.ts"],
146+
"extensions/*": ["./dist/types/exports/extensions/*.d.ts"],
147+
"pay": ["./dist/types/exports/pay.d.ts"],
148+
"react": ["./dist/types/exports/react.d.ts"],
149+
"react-native": ["./dist/types/exports/react-native.d.ts"],
150+
"rpc": ["./dist/types/exports/rpc.d.ts"],
151+
"storage": ["./dist/types/exports/storage.d.ts"],
152+
"transaction": ["./dist/types/exports/transaction.d.ts"],
153+
"utils": ["./dist/types/exports/utils.d.ts"],
154+
"wallets": ["./dist/types/exports/wallets.d.ts"],
155+
"wallets/*": ["./dist/types/exports/wallets/*.d.ts"],
156+
"modules": ["./dist/types/exports/modules.d.ts"],
157+
"social": ["./dist/types/exports/social.d.ts"],
158+
"ai": ["./dist/types/exports/ai.d.ts"],
159+
"bridge": ["./dist/types/exports/bridge.d.ts"]
200160
}
201161
},
202162
"browser": {
@@ -229,7 +189,6 @@
229189
"@walletconnect/ethereum-provider": "2.19.1",
230190
"@walletconnect/sign-client": "2.19.1",
231191
"abitype": "1.0.8",
232-
"chalk": "^5.4.1",
233192
"cross-spawn": "7.0.6",
234193
"fuse.js": "7.1.0",
235194
"input-otp": "^1.4.1",

packages/thirdweb/src/cli/commands/publish-stylus/publish-stylus.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ora from "ora";
66
import { createThirdwebClient } from "../../../client/client.js";
77
import { upload } from "../../../storage/upload.js";
88

9-
export const THIRDWEB_URL = "https://thirdweb.com";
9+
const THIRDWEB_URL = "https://thirdweb.com";
1010

1111
export async function publishStylus(secretKey?: string) {
1212
const spinner = ora("Checking if this is a Stylus project...").start();
@@ -150,21 +150,21 @@ export async function publishStylus(secretKey?: string) {
150150
spinner.succeed(`Upload complete:, ${url}`);
151151

152152
await open(url);
153-
} catch (error: any) {
153+
} catch (error) {
154154
spinner.fail(`Error: ${error}`);
155155
process.exit(1);
156156
}
157157
}
158158

159159
function extractContractNameFromExportAbi(abiRawOutput: string): string | null {
160160
const match = abiRawOutput.match(/<stdin>:(I[A-Za-z0-9_]+)/);
161-
if (match && match[1]) {
161+
if (match?.[1]) {
162162
return match[1].replace(/^I/, "");
163163
}
164164
return null;
165165
}
166166

167-
export function getUrl(hash: string, command: string) {
167+
function getUrl(hash: string, command: string) {
168168
const url = new URL(
169169
`${THIRDWEB_URL}
170170
/contracts/${command}/

packages/thirdweb/src/contract/actions/extract-uri-from-calldata.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { Chain } from "src/chains/types.js";
2-
import type { ThirdwebClient } from "src/client/client.js";
3-
import { decodeUriFromCalldata } from "src/utils/any-evm/decode-uri-from-calldata.js";
1+
import type { Chain } from "../../chains/types.js";
2+
import type { ThirdwebClient } from "../../client/client.js";
43
import { eth_getTransactionByHash } from "../../rpc/actions/eth_getTransactionByHash.js";
54
import { getRpcClient } from "../../rpc/rpc.js";
65
import { download } from "../../storage/download.js";
6+
import { decodeUriFromCalldata } from "../../utils/any-evm/decode-uri-from-calldata.js";
77

88
export async function extractUriFromCalldata(options: {
99
client: ThirdwebClient;

pnpm-lock.yaml

Lines changed: 18 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)