@opentelemetry/core
Advanced tools
Comparing version 1.19.0 to 1.20.0
@@ -8,2 +8,3 @@ export * from './baggage/propagation/W3CBaggagePropagator'; | ||
export * from './common/types'; | ||
export * from './common/hex-to-binary'; | ||
export * from './ExportResult'; | ||
@@ -10,0 +11,0 @@ export * as baggageUtils from './baggage/utils'; |
@@ -23,2 +23,3 @@ /* | ||
export * from './common/types'; | ||
export * from './common/hex-to-binary'; | ||
export * from './ExportResult'; | ||
@@ -25,0 +26,0 @@ import * as baggageUtils_1 from './baggage/utils'; |
@@ -16,12 +16,31 @@ /* | ||
*/ | ||
var __read = (this && this.__read) || function (o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
import { hexToBinary } from '../../common/hex-to-binary'; | ||
export function hexToBase64(hexStr) { | ||
var hexStrLen = hexStr.length; | ||
var hexAsciiCharsStr = ''; | ||
for (var i = 0; i < hexStrLen; i += 2) { | ||
var hexPair = hexStr.substring(i, i + 2); | ||
var hexVal = parseInt(hexPair, 16); | ||
hexAsciiCharsStr += String.fromCharCode(hexVal); | ||
} | ||
return btoa(hexAsciiCharsStr); | ||
return btoa(String.fromCharCode.apply(String, __spreadArray([], __read(hexToBinary(hexStr)), false))); | ||
} | ||
//# sourceMappingURL=hex-to-base64.js.map |
@@ -16,35 +16,6 @@ /* | ||
*/ | ||
function intValue(charCode) { | ||
// 0-9 | ||
if (charCode >= 48 && charCode <= 57) { | ||
return charCode - 48; | ||
} | ||
// a-f | ||
if (charCode >= 97 && charCode <= 102) { | ||
return charCode - 87; | ||
} | ||
// A-F | ||
return charCode - 55; | ||
} | ||
var buf8 = Buffer.alloc(8); | ||
var buf16 = Buffer.alloc(16); | ||
import { hexToBinary } from '../../common/hex-to-binary'; | ||
export function hexToBase64(hexStr) { | ||
var buf; | ||
if (hexStr.length === 16) { | ||
buf = buf8; | ||
} | ||
else if (hexStr.length === 32) { | ||
buf = buf16; | ||
} | ||
else { | ||
buf = Buffer.alloc(hexStr.length / 2); | ||
} | ||
var offset = 0; | ||
for (var i = 0; i < hexStr.length; i += 2) { | ||
var hi = intValue(hexStr.charCodeAt(i)); | ||
var lo = intValue(hexStr.charCodeAt(i + 1)); | ||
buf.writeUInt8((hi << 4) | lo, offset++); | ||
} | ||
return buf.toString('base64'); | ||
return Buffer.from(hexToBinary(hexStr)).toString('base64'); | ||
} | ||
//# sourceMappingURL=hex-to-base64.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.19.0"; | ||
export declare const VERSION = "1.20.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '1.19.0'; | ||
export var VERSION = '1.20.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -8,2 +8,3 @@ export * from './baggage/propagation/W3CBaggagePropagator'; | ||
export * from './common/types'; | ||
export * from './common/hex-to-binary'; | ||
export * from './ExportResult'; | ||
@@ -10,0 +11,0 @@ export * as baggageUtils from './baggage/utils'; |
@@ -23,2 +23,3 @@ /* | ||
export * from './common/types'; | ||
export * from './common/hex-to-binary'; | ||
export * from './ExportResult'; | ||
@@ -25,0 +26,0 @@ export * as baggageUtils from './baggage/utils'; |
@@ -16,12 +16,6 @@ /* | ||
*/ | ||
import { hexToBinary } from '../../common/hex-to-binary'; | ||
export function hexToBase64(hexStr) { | ||
const hexStrLen = hexStr.length; | ||
let hexAsciiCharsStr = ''; | ||
for (let i = 0; i < hexStrLen; i += 2) { | ||
const hexPair = hexStr.substring(i, i + 2); | ||
const hexVal = parseInt(hexPair, 16); | ||
hexAsciiCharsStr += String.fromCharCode(hexVal); | ||
} | ||
return btoa(hexAsciiCharsStr); | ||
return btoa(String.fromCharCode(...hexToBinary(hexStr))); | ||
} | ||
//# sourceMappingURL=hex-to-base64.js.map |
@@ -16,35 +16,6 @@ /* | ||
*/ | ||
function intValue(charCode) { | ||
// 0-9 | ||
if (charCode >= 48 && charCode <= 57) { | ||
return charCode - 48; | ||
} | ||
// a-f | ||
if (charCode >= 97 && charCode <= 102) { | ||
return charCode - 87; | ||
} | ||
// A-F | ||
return charCode - 55; | ||
} | ||
const buf8 = Buffer.alloc(8); | ||
const buf16 = Buffer.alloc(16); | ||
import { hexToBinary } from '../../common/hex-to-binary'; | ||
export function hexToBase64(hexStr) { | ||
let buf; | ||
if (hexStr.length === 16) { | ||
buf = buf8; | ||
} | ||
else if (hexStr.length === 32) { | ||
buf = buf16; | ||
} | ||
else { | ||
buf = Buffer.alloc(hexStr.length / 2); | ||
} | ||
let offset = 0; | ||
for (let i = 0; i < hexStr.length; i += 2) { | ||
const hi = intValue(hexStr.charCodeAt(i)); | ||
const lo = intValue(hexStr.charCodeAt(i + 1)); | ||
buf.writeUInt8((hi << 4) | lo, offset++); | ||
} | ||
return buf.toString('base64'); | ||
return Buffer.from(hexToBinary(hexStr)).toString('base64'); | ||
} | ||
//# sourceMappingURL=hex-to-base64.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.19.0"; | ||
export declare const VERSION = "1.20.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '1.19.0'; | ||
export const VERSION = '1.20.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -8,2 +8,3 @@ export * from './baggage/propagation/W3CBaggagePropagator'; | ||
export * from './common/types'; | ||
export * from './common/hex-to-binary'; | ||
export * from './ExportResult'; | ||
@@ -10,0 +11,0 @@ export * as baggageUtils from './baggage/utils'; |
@@ -36,2 +36,3 @@ "use strict"; | ||
__exportStar(require("./common/types"), exports); | ||
__exportStar(require("./common/hex-to-binary"), exports); | ||
__exportStar(require("./ExportResult"), exports); | ||
@@ -38,0 +39,0 @@ exports.baggageUtils = require("./baggage/utils"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hexToBase64 = void 0; | ||
/* | ||
@@ -19,13 +17,9 @@ * Copyright The OpenTelemetry Authors | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hexToBase64 = void 0; | ||
const hex_to_binary_1 = require("../../common/hex-to-binary"); | ||
function hexToBase64(hexStr) { | ||
const hexStrLen = hexStr.length; | ||
let hexAsciiCharsStr = ''; | ||
for (let i = 0; i < hexStrLen; i += 2) { | ||
const hexPair = hexStr.substring(i, i + 2); | ||
const hexVal = parseInt(hexPair, 16); | ||
hexAsciiCharsStr += String.fromCharCode(hexVal); | ||
} | ||
return btoa(hexAsciiCharsStr); | ||
return btoa(String.fromCharCode(...(0, hex_to_binary_1.hexToBinary)(hexStr))); | ||
} | ||
exports.hexToBase64 = hexToBase64; | ||
//# sourceMappingURL=hex-to-base64.js.map |
@@ -19,36 +19,7 @@ "use strict"; | ||
*/ | ||
function intValue(charCode) { | ||
// 0-9 | ||
if (charCode >= 48 && charCode <= 57) { | ||
return charCode - 48; | ||
} | ||
// a-f | ||
if (charCode >= 97 && charCode <= 102) { | ||
return charCode - 87; | ||
} | ||
// A-F | ||
return charCode - 55; | ||
} | ||
const buf8 = Buffer.alloc(8); | ||
const buf16 = Buffer.alloc(16); | ||
const hex_to_binary_1 = require("../../common/hex-to-binary"); | ||
function hexToBase64(hexStr) { | ||
let buf; | ||
if (hexStr.length === 16) { | ||
buf = buf8; | ||
} | ||
else if (hexStr.length === 32) { | ||
buf = buf16; | ||
} | ||
else { | ||
buf = Buffer.alloc(hexStr.length / 2); | ||
} | ||
let offset = 0; | ||
for (let i = 0; i < hexStr.length; i += 2) { | ||
const hi = intValue(hexStr.charCodeAt(i)); | ||
const lo = intValue(hexStr.charCodeAt(i + 1)); | ||
buf.writeUInt8((hi << 4) | lo, offset++); | ||
} | ||
return buf.toString('base64'); | ||
return Buffer.from((0, hex_to_binary_1.hexToBinary)(hexStr)).toString('base64'); | ||
} | ||
exports.hexToBase64 = hexToBase64; | ||
//# sourceMappingURL=hex-to-base64.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.19.0"; | ||
export declare const VERSION = "1.20.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '1.19.0'; | ||
exports.VERSION = '1.20.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/core", | ||
"version": "1.19.0", | ||
"version": "1.20.0", | ||
"description": "OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.", | ||
@@ -94,7 +94,7 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/semantic-conventions": "1.19.0" | ||
"@opentelemetry/semantic-conventions": "1.20.0" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-core", | ||
"sideEffects": false, | ||
"gitHead": "d3c311aec24137084dc820805a2597e120335672" | ||
"gitHead": "57008533aba7ccd51ea80f38ff4f29404d47eb9c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
876479
462
10065
+ Added@opentelemetry/semantic-conventions@1.20.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.19.0(transitive)