Skip to content

Commit

Permalink
chore: update all dated dependencies (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 6, 2023
1 parent 1b28668 commit b4280f2
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 35 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
19 changes: 7 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
"homepage": "https://github.com/siimon/prom-client",
"devDependencies": {
"@clevernature/benchmark-regression": "^1.0.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.10.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-prettier": "^4.2.1",
"express": "^4.13.3",
"husky": "^4.2.1",
"jest": "^26.0.1",
"lint-staged": "^10.0.4",
"husky": "^8.0.3",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"nock": "^13.0.5",
"prettier": "2.7.1",
"prettier": "2.8.3",
"typescript": "^4.0.2"
},
"dependencies": {
Expand Down Expand Up @@ -79,10 +79,5 @@
}
}
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}
38 changes: 19 additions & 19 deletions test/__snapshots__/registerTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,30 @@ gauge 0
# HELP histogram help
# TYPE histogram histogram
histogram_bucket{le=\\"0.005\\"} 0
histogram_bucket{le=\\"0.01\\"} 0
histogram_bucket{le=\\"0.025\\"} 0
histogram_bucket{le=\\"0.05\\"} 0
histogram_bucket{le=\\"0.1\\"} 0
histogram_bucket{le=\\"0.25\\"} 0
histogram_bucket{le=\\"0.5\\"} 0
histogram_bucket{le=\\"1\\"} 0
histogram_bucket{le=\\"2.5\\"} 0
histogram_bucket{le=\\"5\\"} 0
histogram_bucket{le=\\"10\\"} 0
histogram_bucket{le=\\"+Inf\\"} 0
histogram_bucket{le="0.005"} 0
histogram_bucket{le="0.01"} 0
histogram_bucket{le="0.025"} 0
histogram_bucket{le="0.05"} 0
histogram_bucket{le="0.1"} 0
histogram_bucket{le="0.25"} 0
histogram_bucket{le="0.5"} 0
histogram_bucket{le="1"} 0
histogram_bucket{le="2.5"} 0
histogram_bucket{le="5"} 0
histogram_bucket{le="10"} 0
histogram_bucket{le="+Inf"} 0
histogram_sum 0
histogram_count 0
# HELP summary help
# TYPE summary summary
summary{quantile=\\"0.01\\"} 0
summary{quantile=\\"0.05\\"} 0
summary{quantile=\\"0.5\\"} 0
summary{quantile=\\"0.9\\"} 0
summary{quantile=\\"0.95\\"} 0
summary{quantile=\\"0.99\\"} 0
summary{quantile=\\"0.999\\"} 0
summary{quantile="0.01"} 0
summary{quantile="0.05"} 0
summary{quantile="0.5"} 0
summary{quantile="0.9"} 0
summary{quantile="0.95"} 0
summary{quantile="0.99"} 0
summary{quantile="0.999"} 0
summary_sum 0
summary_count 0
"
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/summaryTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ exports[`summary global registry with param as object labels should throw error

exports[`summary global registry with param as object remove should throw error if label lengths does not match 1`] = `"Invalid number of arguments"`;

exports[`summary global registry with param as object should validate labels when observing 1`] = `"Added label \\"baz\\" is not included in initial labelset: [ 'foo' ]"`;
exports[`summary global registry with param as object should validate labels when observing 1`] = `"Added label "baz" is not included in initial labelset: [ 'foo' ]"`;
4 changes: 1 addition & 3 deletions test/metrics/eventLoopLagTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('eventLoopLag', () => {
register.clear();
});

it('should add metric to the registry', async done => {
it('should add metric to the registry', async () => {
expect(await register.getMetricsAsJSON()).toHaveLength(0);
eventLoopLag();

Expand Down Expand Up @@ -62,8 +62,6 @@ describe('eventLoopLag', () => {
);
expect(metrics[7].type).toEqual('gauge');
expect(metrics[7].name).toEqual('nodejs_eventloop_lag_p99_seconds');

done();
});
});

Expand Down

0 comments on commit b4280f2

Please sign in to comment.