Skip to content

Commit 8b30993

Browse files
authored
Merge pull request #3 from zendive/next
v1.0.3
2 parents 37063e0 + 3ea2cbf commit 8b30993

36 files changed

+603
-532
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# <img src="./public/img/icon.svg" width="26"/> Browser API Monitor
1+
# <img src="./public/img/icon.svg" width="32"/> Browser API Monitor
22

33
- Available in Chrome Web Store as [API Monitor](https://chromewebstore.google.com/detail/api-monitor/bghmfoakiidiedpheejcjhciekobjcjp)
44

5-
Whether you're developing a Single Page Application (SPA) and want to assess implementation correctness or are curious about how something works, this tool adds additional functionality to the Chrome browser DevTools to reveal active or passed timouts, intervals, and `eval` usages while mapping their invocation call stacks to a source code location. If the page has mounted `video` or `audio` media element's, their events and property state changes can be observed as they happen ([documentation](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement), [example](https://www.w3.org/2010/05/video/mediaevents.html)).
5+
Whether you're developing a Single Page Application (SPA) and want to assess implementation correctness or are curious about how something works, this tool adds additional functionality to the Chrome browser DevTools to reveal active or passed timeouts, intervals, and `eval` usages while mapping their invocation call stacks to a source code location. If the page has mounted `video` or `audio` media element's, their events and property state changes can be observed as they happen ([documentation](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement), [example](https://www.w3.org/2010/05/video/mediaevents.html)).
66

77
### Motivation
88

@@ -19,13 +19,16 @@ To explore the internals of a complex systems.
1919
<summary> <strong>Example</strong> </summary>
2020

2121
![screenshot](./doc/screenshot-01.png)
22+
![screenshot](./doc/screenshot-02.png)
23+
![screenshot](./doc/screenshot-03.png)
24+
![screenshot](./doc/screenshot-04.png)
2225

2326
</details>
2427

2528
### Build requirements
2629

2730
- OS: Linux
28-
- Node: 20.11.1 (LTS)
31+
- Node: 20.15.0 (LTS)
2932

3033
### Build instructions
3134

doc/screenshot-01.png

436 KB
Loading

doc/screenshot-02.png

160 KB
Loading

doc/screenshot-03.png

402 KB
Loading

doc/screenshot-04.png

406 KB
Loading

jest/tests/time.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,9 @@ describe('MeanAggregator', () => {
148148

149149
const sumMean = sum / SAMPLES.length;
150150
expect(mean.mean).toBe(sumMean);
151+
expect(mean.numberOfSamples).toBe(SAMPLES.length);
152+
expect(mean.minimum).toBe(SAMPLES[0]);
153+
expect(mean.maximum).toBe(SAMPLES[SAMPLES.length - 1]);
154+
expect(mean.standardDeviation).toBe(34.52052529534663);
151155
});
152156
});

manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version": "1.0.2",
2+
"version": "1.0.3",
33
"name": "API Monitor",
44
"manifest_version": 3,
5-
"description": "Monitor browser API usage",
5+
"description": "Reveal active or passed timeouts, intervals, and eval invocation call stacks. Observe events and properties of video/audio elements",
66
"minimum_chrome_version": "122.0",
77
"homepage_url": "https://github.com/zendive/browser-api-monitor",
88
"author": "[email protected]",

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
"@jest/globals": "^29.7.0",
55
"@types/chrome": "^0.0.268",
66
"@types/jest": "^29.5.12",
7-
"@types/node": "^20.12.12",
8-
"css-loader": "^7.1.1",
9-
"esbuild": "0.21.3",
10-
"esbuild-loader": "4.1.0",
7+
"@types/node": "^20.14.8",
8+
"css-loader": "^7.1.2",
9+
"esbuild": "0.21.5",
10+
"esbuild-loader": "4.2.0",
1111
"jest": "^29.7.0",
1212
"jest-environment-jsdom": "^29.7.0",
1313
"mini-css-extract-plugin": "^2.9.0",
14-
"prettier": "3.2.5",
15-
"sass": "^1.77.1",
16-
"svelte": "^4.2.17",
17-
"svelte-check": "^3.7.1",
18-
"svelte-loader": "^3.2.0",
19-
"svelte-preprocess": "^5.1.4",
20-
"ts-jest": "^29.1.2",
14+
"prettier": "3.3.2",
15+
"sass": "^1.77.6",
16+
"svelte": "^4.2.18",
17+
"svelte-check": "^3.8.1",
18+
"svelte-loader": "^3.2.3",
19+
"svelte-preprocess": "^6.0.1",
20+
"ts-jest": "^29.1.5",
2121
"ts-node": "^10.9.2",
22-
"tsx": "^4.10.3",
23-
"typescript": "^5.4.5",
24-
"webpack": "5.91.0",
22+
"tsx": "^4.15.7",
23+
"typescript": "^5.5.2",
24+
"webpack": "5.92.1",
2525
"webpack-cli": "5.1.4"
2626
}
2727
}

0 commit comments

Comments
 (0)