Skip to content

Commit

Permalink
update 1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
codev911 committed Oct 18, 2024
1 parent 9bf36dd commit f3bb6a5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
42 changes: 37 additions & 5 deletions lib/chain/parse.chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ async function main() {
rpc.includes('${INFURA_API_KEY}') === false &&
rpc.includes('${API_KEY}') === false &&
rpc.includes('${ALCHEMY_API_KEY}') === false &&
rpc.includes('api_key') === false
rpc.includes('api_key') === false &&
rpc.includes('blxrbdn.com') === false &&
rpc.includes('linkpool.io') === false
) {
if (rpc.includes('${ANKR_API_KEY}') === true) {
const finalRpc = rpc.replace('${ANKR_API_KEY}', '');
Expand All @@ -64,11 +66,26 @@ async function main() {
for (let index3 = 0; index3 < chainListDart.length; index3++) {
if (chainListDart[index3].chainId === chainIdList[index]) {
aggregate[1][chainIdList[index]]['rpcs'].forEach(dat => {
if (typeof dat !== 'object' && dat.includes('https://') === true)
if (
typeof dat !== 'object' &&
dat.includes('https://') === true &&
dat.includes('${INFURA_API_KEY}') === false &&
dat.includes('${API_KEY}') === false &&
dat.includes('${ALCHEMY_API_KEY}') === false &&
dat.includes('api_key') === false &&
dat.includes('blxrbdn.com') === false &&
dat.includes('linkpool.io') === false
)
chainListDart[index3].urls.push(dat);
if (
typeof dat === 'object' &&
dat.url.includes('https://') === true
dat.url.includes('https://') === true &&
dat.url.includes('${INFURA_API_KEY}') === false &&
dat.url.includes('${API_KEY}') === false &&
dat.url.includes('${ALCHEMY_API_KEY}') === false &&
dat.url.includes('api_key') === false &&
dat.url.includes('blxrbdn.com') === false &&
dat.url.includes('linkpool.io') === false
)
chainListDart[index3].urls.push(dat.url);
});
Expand All @@ -82,11 +99,26 @@ async function main() {
for (let index3 = 0; index3 < chainListDart.length; index3++) {
if (chainListDart[index3].chainId === chainIdList[index]) {
aggregate[2][chainIdList[index]]['rpcs'].forEach(dat => {
if (typeof dat !== 'object' && dat.includes('https://') === true)
if (
typeof dat !== 'object' &&
dat.includes('https://') === true &&
dat.includes('${INFURA_API_KEY}') === false &&
dat.includes('${API_KEY}') === false &&
dat.includes('${ALCHEMY_API_KEY}') === false &&
dat.includes('api_key') === false &&
dat.includes('blxrbdn.com') === false &&
dat.includes('linkpool.io') === false
)
chainListDart[index3].urls.push(dat);
if (
typeof dat === 'object' &&
dat.url.includes('https://') === true
dat.url.includes('https://') === true &&
dat.url.includes('${INFURA_API_KEY}') === false &&
dat.url.includes('${API_KEY}') === false &&
dat.url.includes('${ALCHEMY_API_KEY}') === false &&
dat.url.includes('api_key') === false &&
dat.url.includes('blxrbdn.com') === false &&
dat.url.includes('linkpool.io') === false
)
chainListDart[index3].urls.push(dat.url);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "live-evm-rpc",
"description": "Get Public Live EVM RPC url easily",
"author": "codev911",
"version": "1.2.4",
"version": "1.2.5",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit f3bb6a5

Please sign in to comment.