• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cartesi / rollups-explorer / 11707040110

06 Nov 2024 03:46PM UTC coverage: 86.605%. Remained the same
11707040110

Pull #262

github

web-flow
chore(deps-dev): bump happy-dom from 15.6.0 to 15.10.1

Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 15.6.0 to 15.10.1.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v15.6.0...v15.10.1)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #262: chore(deps-dev): bump happy-dom from 15.6.0 to 15.10.1

1252 of 1493 branches covered (83.86%)

Branch coverage included in aggregate %.

8828 of 10146 relevant lines covered (87.01%)

45.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/apps/web/src/lib/urql.ts
1
import { Client, cacheExchange, createClient, fetchExchange } from "urql/core";
×
2

3
let urqlClient: Client | null = null;
×
4
let urqlServerClient: Client | null = null;
×
5

6
const buildClient = (url?: string) => {
×
7
    if (!url)
×
8
        throw new Error(
×
9
            "Rollups explorer API URL not defined! Check .env.template file for reference.",
×
10
        );
×
11

12
    return createClient({
×
13
        url,
×
14
        exchanges: [cacheExchange, fetchExchange],
×
15
    });
×
16
};
×
17

18
export const getUrqlClient = () => {
×
19
    if (!urqlClient) {
×
20
        const url = process.env.NEXT_PUBLIC_EXPLORER_API_URL ?? "";
×
21
        urqlClient = buildClient(url);
×
22
    }
×
23

24
    return urqlClient;
×
25
};
×
26

27
export const getUrqlServerClient = () => {
×
28
    if (!urqlServerClient) {
×
29
        const url =
×
30
            process.env.INTERNAL_EXPLORER_API_URL ??
×
31
            process.env.NEXT_PUBLIC_EXPLORER_API_URL ??
×
32
            "";
×
33

34
        urqlServerClient = buildClient(url);
×
35
    }
×
36

37
    return urqlServerClient;
×
38
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc