@opentelemetry/resources
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -77,3 +77,3 @@ /* | ||
return __generator(this, function (_b) { | ||
isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; | ||
isBrowser = typeof navigator !== 'undefined'; | ||
if (!isBrowser) { | ||
@@ -85,3 +85,3 @@ return [2 /*return*/, Resource.empty()]; | ||
_a[SemanticResourceAttributes.PROCESS_RUNTIME_DESCRIPTION] = 'Web Browser', | ||
_a[SemanticResourceAttributes.PROCESS_RUNTIME_VERSION] = window.navigator.userAgent, | ||
_a[SemanticResourceAttributes.PROCESS_RUNTIME_VERSION] = navigator.userAgent, | ||
_a); | ||
@@ -88,0 +88,0 @@ return [2 /*return*/, this._getResourceAttributes(browserResource, config)]; |
export * from './BrowserDetector'; | ||
export * from './EnvDetector'; | ||
export * from './OSDetector'; | ||
export * from './HostDetector'; | ||
export * from './ProcessDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,5 +18,3 @@ /* | ||
export * from './EnvDetector'; | ||
export * from './OSDetector'; | ||
export * from './HostDetector'; | ||
export * from './ProcessDetector'; | ||
//# sourceMappingURL=index.js.map |
export * from './default-service-name'; | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,2 +18,4 @@ /* | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.js.map |
export * from './default-service-name'; | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,2 +18,4 @@ /* | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.0"; | ||
export declare const VERSION = "1.3.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '1.3.0'; | ||
export var VERSION = '1.3.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -24,3 +24,3 @@ /* | ||
async detect(config) { | ||
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; | ||
const isBrowser = typeof navigator !== 'undefined'; | ||
if (!isBrowser) { | ||
@@ -32,3 +32,3 @@ return Resource.empty(); | ||
[SemanticResourceAttributes.PROCESS_RUNTIME_DESCRIPTION]: 'Web Browser', | ||
[SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]: window.navigator.userAgent | ||
[SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]: navigator.userAgent | ||
}; | ||
@@ -35,0 +35,0 @@ return this._getResourceAttributes(browserResource, config); |
export * from './BrowserDetector'; | ||
export * from './EnvDetector'; | ||
export * from './OSDetector'; | ||
export * from './HostDetector'; | ||
export * from './ProcessDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,5 +18,3 @@ /* | ||
export * from './EnvDetector'; | ||
export * from './OSDetector'; | ||
export * from './HostDetector'; | ||
export * from './ProcessDetector'; | ||
//# sourceMappingURL=index.js.map |
export * from './default-service-name'; | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,2 +18,4 @@ /* | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.js.map |
export * from './default-service-name'; | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,2 +18,4 @@ /* | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.0"; | ||
export declare const VERSION = "1.3.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '1.3.0'; | ||
export const VERSION = '1.3.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -27,3 +27,3 @@ "use strict"; | ||
async detect(config) { | ||
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; | ||
const isBrowser = typeof navigator !== 'undefined'; | ||
if (!isBrowser) { | ||
@@ -35,3 +35,3 @@ return __1.Resource.empty(); | ||
[semantic_conventions_1.SemanticResourceAttributes.PROCESS_RUNTIME_DESCRIPTION]: 'Web Browser', | ||
[semantic_conventions_1.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]: window.navigator.userAgent | ||
[semantic_conventions_1.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]: navigator.userAgent | ||
}; | ||
@@ -38,0 +38,0 @@ return this._getResourceAttributes(browserResource, config); |
export * from './BrowserDetector'; | ||
export * from './EnvDetector'; | ||
export * from './OSDetector'; | ||
export * from './HostDetector'; | ||
export * from './ProcessDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -30,5 +30,3 @@ "use strict"; | ||
__exportStar(require("./EnvDetector"), exports); | ||
__exportStar(require("./OSDetector"), exports); | ||
__exportStar(require("./HostDetector"), exports); | ||
__exportStar(require("./ProcessDetector"), exports); | ||
//# sourceMappingURL=index.js.map |
export * from './default-service-name'; | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -30,2 +30,4 @@ "use strict"; | ||
__exportStar(require("./detect-resources"), exports); | ||
__exportStar(require("./HostDetector"), exports); | ||
__exportStar(require("./OSDetector"), exports); | ||
//# sourceMappingURL=index.js.map |
export * from './default-service-name'; | ||
export * from './detect-resources'; | ||
export * from './HostDetector'; | ||
export * from './OSDetector'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -30,2 +30,4 @@ "use strict"; | ||
__exportStar(require("./detect-resources"), exports); | ||
__exportStar(require("./HostDetector"), exports); | ||
__exportStar(require("./OSDetector"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.3.0"; | ||
export declare const VERSION = "1.3.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '1.3.0'; | ||
exports.VERSION = '1.3.1'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/resources", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "OpenTelemetry SDK resources", | ||
@@ -21,2 +21,3 @@ "main": "build/src/index.js", | ||
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", | ||
"codecov:webworker": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", | ||
"lint": "eslint . --ext .ts", | ||
@@ -26,2 +27,3 @@ "lint:fix": "eslint . --ext .ts --fix", | ||
"test:browser": "nyc karma start --single-run", | ||
"test:webworker": "nyc karma start karma.worker.js --single-run", | ||
"tdd": "npm run test -- --watch-extensions ts --watch", | ||
@@ -92,6 +94,6 @@ "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", | ||
"dependencies": { | ||
"@opentelemetry/core": "1.3.0", | ||
"@opentelemetry/semantic-conventions": "1.3.0" | ||
"@opentelemetry/core": "1.3.1", | ||
"@opentelemetry/semantic-conventions": "1.3.1" | ||
}, | ||
"gitHead": "eda0b092db484855ded8b4837ba7fc19a377c5a7" | ||
"gitHead": "51afd54bd63e46d5d530266761144c7be2f6b3a7" | ||
} |
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
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
305330
192
3432
+ Added@opentelemetry/core@1.3.1(transitive)
+ Added@opentelemetry/semantic-conventions@1.3.1(transitive)
- Removed@opentelemetry/core@1.3.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.3.0(transitive)
Updated@opentelemetry/core@1.3.1