Skip to content

Commit

Permalink
Merge pull request #3 from zendive/next
Browse files Browse the repository at this point in the history
v1.0.3
  • Loading branch information
zendive authored Jun 27, 2024
2 parents 37063e0 + 3ea2cbf commit 8b30993
Show file tree
Hide file tree
Showing 36 changed files with 603 additions and 532 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# <img src="./public/img/icon.svg" width="26"/> Browser API Monitor
# <img src="./public/img/icon.svg" width="32"/> Browser API Monitor

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

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)).
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)).

### Motivation

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

![screenshot](./doc/screenshot-01.png)
![screenshot](./doc/screenshot-02.png)
![screenshot](./doc/screenshot-03.png)
![screenshot](./doc/screenshot-04.png)

</details>

### Build requirements

- OS: Linux
- Node: 20.11.1 (LTS)
- Node: 20.15.0 (LTS)

### Build instructions

Expand Down
Binary file modified doc/screenshot-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/screenshot-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/screenshot-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/screenshot-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions jest/tests/time.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,9 @@ describe('MeanAggregator', () => {

const sumMean = sum / SAMPLES.length;
expect(mean.mean).toBe(sumMean);
expect(mean.numberOfSamples).toBe(SAMPLES.length);
expect(mean.minimum).toBe(SAMPLES[0]);
expect(mean.maximum).toBe(SAMPLES[SAMPLES.length - 1]);
expect(mean.standardDeviation).toBe(34.52052529534663);
});
});
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": "1.0.2",
"version": "1.0.3",
"name": "API Monitor",
"manifest_version": 3,
"description": "Monitor browser API usage",
"description": "Reveal active or passed timeouts, intervals, and eval invocation call stacks. Observe events and properties of video/audio elements",
"minimum_chrome_version": "122.0",
"homepage_url": "/~https://github.com/zendive/browser-api-monitor",
"author": "calexblock@gmail.com",
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
"@jest/globals": "^29.7.0",
"@types/chrome": "^0.0.268",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.12",
"css-loader": "^7.1.1",
"esbuild": "0.21.3",
"esbuild-loader": "4.1.0",
"@types/node": "^20.14.8",
"css-loader": "^7.1.2",
"esbuild": "0.21.5",
"esbuild-loader": "4.2.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mini-css-extract-plugin": "^2.9.0",
"prettier": "3.2.5",
"sass": "^1.77.1",
"svelte": "^4.2.17",
"svelte-check": "^3.7.1",
"svelte-loader": "^3.2.0",
"svelte-preprocess": "^5.1.4",
"ts-jest": "^29.1.2",
"prettier": "3.3.2",
"sass": "^1.77.6",
"svelte": "^4.2.18",
"svelte-check": "^3.8.1",
"svelte-loader": "^3.2.3",
"svelte-preprocess": "^6.0.1",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.2",
"tsx": "^4.10.3",
"typescript": "^5.4.5",
"webpack": "5.91.0",
"tsx": "^4.15.7",
"typescript": "^5.5.2",
"webpack": "5.92.1",
"webpack-cli": "5.1.4"
}
}
Loading

0 comments on commit 8b30993

Please sign in to comment.