Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

artedi

Package Overview
Dependencies
Maintainers
9
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artedi - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

20

lib/metric_vector.js

@@ -6,3 +6,3 @@ /*

*
* Copyright (c) 2018, Joyent, Inc.
* Copyright 2021 Joyent, Inc.
*/

@@ -185,4 +185,20 @@

/*
* Exposition metric label values are quoted, and thus mus thave ", \, and
* newline (\n) escaped.
*/
var escapeLabelValue = function (s) {
if (typeof (s) !== 'string') {
return (s);
} else {
return (s
.replace(/\u005c/g, '\\\\') // backslash
.replace(/\u000a/g, '\\n') // newline
.replace(/\u0022/g, '\\"')); // double quote
}
};
var appendLabel = function (key, value) {
labelStr += mod_util.format('%s="%s",', key, value);
labelStr += mod_util.format('%s="%s",', key,
escapeLabelValue(value));
};

@@ -189,0 +205,0 @@

2

package.json
{
"name": "artedi",
"version": "2.0.2",
"version": "2.0.3",
"description": "a metric client library",

@@ -5,0 +5,0 @@ "main": "lib/collector.js",

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