Socket
Socket
Sign inDemoInstall

prom-client

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prom-client - npm Package Compare versions

Comparing version 10.2.3 to 11.0.0

9

CHANGELOG.md

@@ -16,2 +16,11 @@ # Changelog

## [11.0.0] - 2018-03-10
### Breaking
* Fixed `gauge.setToCurrentTime()` to use seconds instead of milliseconds
* This conforms to Prometheus
[best practices](https://prometheus.io/docs/practices/naming/#base-units)
* Dropped support for node 4
## [10.2.3] - 2018-02-28

@@ -18,0 +27,0 @@

2

lib/gauge.js

@@ -172,3 +172,3 @@ /**

return () => {
const now = Date.now();
const now = Date.now() / 1000;
if (labels === undefined) {

@@ -175,0 +175,0 @@ this.set(now);

{
"name": "prom-client",
"version": "10.2.3",
"version": "11.0.0",
"description": "Client for prometheus",
"main": "index.js",
"files": [
"lib/",
"index.js",
"index.d.ts"
],
"files": ["lib/", "index.js", "index.d.ts"],
"engines": {
"node": ">=4"
"node": ">=6"
},

@@ -25,7 +21,3 @@ "scripts": {

},
"keywords": [
"Prometheus",
"Metrics",
"Client"
],
"keywords": ["Prometheus", "Metrics", "Client"],
"author": "Simon Nyberg",

@@ -54,14 +46,5 @@ "license": "Apache-2.0",

"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.{ts,md,json}": [
"prettier --write",
"git add"
],
".eslintrc": [
"prettier --write",
"git add"
]
"*.js": ["eslint --fix", "git add"],
"*.{ts,md,json}": ["prettier --write", "git add"],
".eslintrc": ["prettier --write", "git add"]
},

@@ -68,0 +51,0 @@ "prettier": {

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