@neo-one/utils
Advanced tools
Comparing version 2.4.0 to 2.5.0-alpha-8
@@ -51,12 +51,1 @@ export declare enum Labels { | ||
} | ||
export declare const labelToTag: (label: string) => { | ||
name: string; | ||
}; | ||
export declare const labelsToTags: (labels: readonly string[]) => { | ||
name: string; | ||
}[]; | ||
interface Span { | ||
readonly addAttribute: (key: string, value: string | number | boolean) => void; | ||
} | ||
export declare const addAttributesToSpan: (span: Span, attributes: Record<string, string | number | boolean>) => void; | ||
export {}; |
@@ -54,12 +54,3 @@ "use strict"; | ||
})(Labels = exports.Labels || (exports.Labels = {})); | ||
exports.labelToTag = (label) => ({ | ||
name: label.replace(/\./g, '_'), | ||
}); | ||
exports.labelsToTags = (labels) => labels.map(exports.labelToTag); | ||
exports.addAttributesToSpan = (span, attributes) => { | ||
Object.entries(attributes).forEach(([key, value]) => { | ||
span.addAttribute(key, value); | ||
}); | ||
}; | ||
//# sourceMappingURL=labels.js.map |
@@ -9,5 +9,5 @@ /// <reference types="node" /> | ||
}; | ||
captureStackTrace(targetObject: Object, constructorOpt?: Function | undefined): void; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
stackTraceLimit: number; | ||
}; |
{ | ||
"name": "@neo-one/utils", | ||
"version": "2.4.0", | ||
"version": "2.5.0-alpha-8", | ||
"author": "Alex DiCarlo <alexdicarlo@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "NEO•ONE shared utils.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55348
761
1