Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Workflow to run CI and tests for all branches on push and on pull requests

name: CI

on:
pull_request:
push:
branches:
- 'main'

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci --prefer-offline
- run: npm test
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export default class Measure extends Component {
*/
reset() {
clearTimeout(this.timer);
this.timer = null;
this.timings = {};
}

Expand Down Expand Up @@ -211,7 +212,6 @@ export default class Measure extends Component {
//
this.flush();

//
// Clearning the resourceTimings does a couple of useful things for us:
//
// 1. It ensures that we do not overflow our resource buffer. Browsers have
Expand Down Expand Up @@ -339,8 +339,8 @@ export default class Measure extends Component {
//
// Check if we can use the ResourceAPI to improvement some our data.
//
const entries = this.resourceTiming({ start: start, end: end }, rum);
this.props.navigated(this.router.asPath, rum, entries);
const timings = this.resourceTiming({ start: start, end: end }, rum);
this.props.navigated(this.router.asPath, rum, timings);

this.reset();
}
Expand Down
Loading