Socket
Socket
Sign inDemoInstall

fastify-metrics

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-metrics - npm Package Compare versions

Comparing version 2.1.3 to 3.1.1

dist/index.d.ts

40

CHANGELOG.md

@@ -5,2 +5,42 @@ # Change Log

<a name="3.1.1"></a>
## [3.1.1](https://gitlab.com/m03geek/fastify-metrics/compare/v3.1.0...v3.1.1) (2018-12-07)
<a name="3.1.0"></a>
# [3.1.0](https://gitlab.com/m03geek/fastify-metrics/compare/v3.0.0...v3.1.0) (2018-12-07)
### Features
* add clear register function ([f92eb8a](https://gitlab.com/m03geek/fastify-metrics/commit/f92eb8a))
<a name="3.0.0"></a>
# [3.0.0](https://gitlab.com/m03geek/fastify-metrics/compare/v2.1.3...v3.0.0) (2018-12-07)
### Bug Fixes
* metrics prefix fix ([4e102d6](https://gitlab.com/m03geek/fastify-metrics/commit/4e102d6))
### Chores
* mark changes as breaking ([d7f6c9a](https://gitlab.com/m03geek/fastify-metrics/commit/d7f6c9a))
### Features
* rewrite to typescript ([7797c6d](https://gitlab.com/m03geek/fastify-metrics/commit/7797c6d))
### BREAKING CHANGES
* Remove one bucket from histogram, rewrite to typescript
<a name="2.1.3"></a>

@@ -7,0 +47,0 @@ ## [2.1.3](https://gitlab.com/m03geek/fastify-metrics/compare/v2.1.2...v2.1.3) (2018-12-06)

58

package.json
{
"name": "fastify-metrics",
"version": "2.1.3",
"version": "3.1.1",
"description": "Prometheus metrics exporter for Fastify",
"main": "lib/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"config": {
"releaseBranch": "master",
"mirror": "https://github.com/SkeLLLa/fastify-metrics",
"origin": "https://gitlab.com/m03geek/fastify-metrics"
"releaseBranch": "master"
},
"directories": {
"doc": "docs",
"lib": "dist",
"test": "test"
},
"files": [
"dist/**/*.js",
"dist/**/*.ts"
],
"standard-version": {
"scripts": {
"prerelease": "npm run check-branch && npm run lint && npm run unit",
"prerelease": "npm run check-branch && npm run test && npm run typedoc && git add -u",
"postbump": "echo Version: v$npm_package_version",
"postchangelog": "replace \"$npm_package_config_mirror\" \"$npm_package_config_origin\" CHANGELOG.md",
"postchangelog": "replace \"https://github.com/SkeLLLa/\" \"https://gitlab.com/m03geek/\" CHANGELOG.md",
"posttag": "git push --follow-tags origin $npm_package_config_releaseBranch"

@@ -20,7 +28,11 @@ }

"scripts": {
"release": "git add package.json package-lock.json && standard-version",
"check-branch": "if test \"$(git rev-parse --abbrev-ref HEAD)\" = \"$npm_package_config_releaseBranch\" ; then exit 0 ; else echo \"Not on '$npm_package_config_releaseBranch' branch\" && exit 1 ; fi",
"lint": "eslint .",
"check-branch": "if test \"$(git rev-parse --abbrev-ref HEAD)\" = \"$npm_package_config_releaseBranch\" ; then exit 0 ; else echo \"Not on '$npm_package_config_releaseBranch' branch\" && exit1 ; fi",
"lint": "eslint . && tslint -p ./ && tslint -p ./test",
"lint:fix": "eslint . --fix && tslint -p ./ --fix && tslint -p ./test --fix",
"test": "npm audit && npm run lint && npm run unit",
"unit": "exit 0"
"unit": "jest",
"build": "tsc",
"release": "standard-version",
"typedoc": "rm -rf ./docs/* && typedoc --excludeExternals --name \"$npm_package_name\" --readme none --mode file --includeDeclarations --theme markdown --out ./docs",
"pub": "npm publish --access=public"
},

@@ -41,9 +53,2 @@ "repository": {

},
"directories": {
"test": "__tests__",
"lib": "lib"
},
"files": [
"lib/**/*.js"
],
"homepage": "https://gitlab.com/m03geek/fastify-metrics#README",

@@ -55,9 +60,18 @@ "dependencies": {

"devDependencies": {
"@types/node": "^10.12.12",
"eslint": "^5.9.0",
"eslint-config-google": "^0.11.0",
"@types/jest": "^23.3.10",
"@types/node": "^10.12.10",
"eslint": "^5.6.0",
"eslint-config-google": "*",
"fastify": "^1.13.1",
"jest": "^23.0.0",
"replace": "^1.0.0",
"standard-version": "^4.4.0"
"standard-version": "^4.0.0",
"ts-jest": "^23.10.5",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-eslint-rules": "^5.4.0",
"typedoc": "^0.13.0",
"typedoc-plugin-markdown": "^1.1.19",
"typescript": "^3.2.1"
}
}

@@ -30,2 +30,4 @@ # fastify-metrics

- [HTTP routes metrics](#http-routes-metrics)
- [Docs](#docs)
- [Changelog](#changelog)
- [See also](#see-also)

@@ -81,3 +83,3 @@ - [License](#license)

| `interval` | Number | Default metrics collection interval in ms. | `5000` |
| `register` | Object, Array<Object> | Custom prom-client metrics registry (see [docs](https://github.com/siimon/prom-client#default-metrics)). | `undefined` |
| `register` | Object | Custom prom-client metrics registry (see [docs](https://github.com/siimon/prom-client#default-metrics)). | `undefined` |
| `prefix` | String | Custom default metrics prefix. | `""` |

@@ -100,3 +102,3 @@ | `endpoint` | String | If set, fastify route will be added to expose metrics. If not set you may manually add it afterwards. | `undefined` |

labelNames: ['status_code', 'method', 'route'],
buckets: [0.005, 0.05, 0.1, 0.5, 1, 3, 5, 10],
buckets: [0.05, 0.1, 0.5, 1, 3, 5, 10],
},

@@ -146,2 +148,14 @@ summary: {

## Docs
See [docs](docs/README.md).
<sub>[Back to top](#toc)</sub>
## Changelog
See [changelog](CHANGELOG.md).
<sub>[Back to top](#toc)</sub>
## See also

@@ -148,0 +162,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc