New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@envelop/prometheus

Package Overview
Dependencies
Maintainers
0
Versions
1375
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/prometheus - npm Package Compare versions

Comparing version 11.0.0-alpha-20240727183332-da426f10 to 11.0.0-alpha-20240728081955-af3fa1b8

6

cjs/index.js

@@ -38,3 +38,3 @@ "use strict";

help: 'Time spent on running the GraphQL resolvers',
labelNames: ['operationType', 'operationName', 'fieldName', 'typeName', 'returnType'].filter(label => (0, utils_js_1.labelExists)(config, label)),
labelNames: ['operationType', 'operationName', 'fieldName', 'typeName', 'returnType'],
}, params => (0, utils_js_1.filterFillParamsFnParams)(config, {

@@ -55,3 +55,3 @@ operationName: params.operationName,

help: 'Counts the amount of errors reported from all phases',
labelNames: ['operationType', 'operationName', 'path', 'phase'].filter(label => (0, utils_js_1.labelExists)(config, label)),
labelNames: ['operationType', 'operationName', 'path', 'phase'],
}, params => (0, utils_js_1.filterFillParamsFnParams)(config, {

@@ -68,3 +68,3 @@ operationName: params.operationName,

help: 'Counts the amount of deprecated fields used in selection sets',
labelNames: ['operationType', 'operationName', 'fieldName', 'typeName'].filter(label => (0, utils_js_1.labelExists)(config, label)),
labelNames: ['operationType', 'operationName', 'fieldName', 'typeName'],
}, params => (0, utils_js_1.filterFillParamsFnParams)(config, {

@@ -71,0 +71,0 @@ operationName: params.operationName,

@@ -107,4 +107,4 @@ "use strict";

name: typeof metric === 'string' ? metric : phase,
labelNames: ['operationType', 'operationName'].filter(label => labelExists(config, label)),
...histogram,
labelNames: (histogram.labelNames ?? ['operationType', 'operationName']).filter(label => labelExists(config, label)),
},

@@ -111,0 +111,0 @@ fillLabelsFn,

@@ -6,3 +6,3 @@ /* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */

import { useOnResolve } from '@envelop/on-resolve';
import { createCounter, createFillLabelFnParams, createHistogram, createSummary, extractDeprecatedFields, filterFillParamsFnParams, getCounterFromConfig, getHistogramFromConfig, getSummaryFromConfig, instrumentRegistry, labelExists, shouldTraceFieldResolver, } from './utils.js';
import { createCounter, createFillLabelFnParams, createHistogram, createSummary, extractDeprecatedFields, filterFillParamsFnParams, getCounterFromConfig, getHistogramFromConfig, getSummaryFromConfig, instrumentRegistry, shouldTraceFieldResolver, } from './utils.js';
export { createCounter, createHistogram, createSummary, getCounterFromConfig, getHistogramFromConfig, getSummaryFromConfig, };

@@ -31,3 +31,3 @@ export const fillLabelsFnParamsMap = new WeakMap();

help: 'Time spent on running the GraphQL resolvers',
labelNames: ['operationType', 'operationName', 'fieldName', 'typeName', 'returnType'].filter(label => labelExists(config, label)),
labelNames: ['operationType', 'operationName', 'fieldName', 'typeName', 'returnType'],
}, params => filterFillParamsFnParams(config, {

@@ -48,3 +48,3 @@ operationName: params.operationName,

help: 'Counts the amount of errors reported from all phases',
labelNames: ['operationType', 'operationName', 'path', 'phase'].filter(label => labelExists(config, label)),
labelNames: ['operationType', 'operationName', 'path', 'phase'],
}, params => filterFillParamsFnParams(config, {

@@ -61,3 +61,3 @@ operationName: params.operationName,

help: 'Counts the amount of deprecated fields used in selection sets',
labelNames: ['operationType', 'operationName', 'fieldName', 'typeName'].filter(label => labelExists(config, label)),
labelNames: ['operationType', 'operationName', 'fieldName', 'typeName'],
}, params => filterFillParamsFnParams(config, {

@@ -64,0 +64,0 @@ operationName: params.operationName,

@@ -96,4 +96,4 @@ import { visit, visitWithTypeInfo, } from 'graphql';

name: typeof metric === 'string' ? metric : phase,
labelNames: ['operationType', 'operationName'].filter(label => labelExists(config, label)),
...histogram,
labelNames: (histogram.labelNames ?? ['operationType', 'operationName']).filter(label => labelExists(config, label)),
},

@@ -100,0 +100,0 @@ fillLabelsFn,

{
"name": "@envelop/prometheus",
"version": "11.0.0-alpha-20240727183332-da426f10",
"version": "11.0.0-alpha-20240728081955-af3fa1b8",
"sideEffects": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

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