From e250a0f30b3fa0c79bb9b9503f61be0a82201d51 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Mon, 25 Nov 2024 15:18:25 +0100 Subject: [PATCH] chore: update prettier to 3.3.3 (#5195) Co-authored-by: Mend Renovate --- api/src/platform/browser/globalThis.ts | 12 ++++++------ .../api-events/src/platform/browser/globalThis.ts | 12 ++++++------ .../api-logs/src/platform/browser/globalThis.ts | 12 ++++++------ .../test/helper.ts | 4 ++-- package-lock.json | 14 +++++++------- package.json | 2 +- .../src/platform/browser/globalThis.ts | 12 ++++++------ packages/opentelemetry-sdk-trace-web/src/utils.ts | 4 ++-- 8 files changed, 36 insertions(+), 36 deletions(-) diff --git a/api/src/platform/browser/globalThis.ts b/api/src/platform/browser/globalThis.ts index f09378a95ea..8371a5b1a33 100644 --- a/api/src/platform/browser/globalThis.ts +++ b/api/src/platform/browser/globalThis.ts @@ -30,9 +30,9 @@ export const _globalThis: typeof globalThis = typeof globalThis === 'object' ? globalThis : typeof self === 'object' - ? self - : typeof window === 'object' - ? window - : typeof global === 'object' - ? global - : ({} as typeof globalThis); + ? self + : typeof window === 'object' + ? window + : typeof global === 'object' + ? global + : ({} as typeof globalThis); diff --git a/experimental/packages/api-events/src/platform/browser/globalThis.ts b/experimental/packages/api-events/src/platform/browser/globalThis.ts index e8a79351b27..208858eeea6 100644 --- a/experimental/packages/api-events/src/platform/browser/globalThis.ts +++ b/experimental/packages/api-events/src/platform/browser/globalThis.ts @@ -31,9 +31,9 @@ export const _globalThis: typeof globalThis = typeof globalThis === 'object' ? globalThis : typeof self === 'object' - ? self - : typeof window === 'object' - ? window - : typeof global === 'object' - ? global - : ({} as typeof globalThis); + ? self + : typeof window === 'object' + ? window + : typeof global === 'object' + ? global + : ({} as typeof globalThis); diff --git a/experimental/packages/api-logs/src/platform/browser/globalThis.ts b/experimental/packages/api-logs/src/platform/browser/globalThis.ts index e8a79351b27..208858eeea6 100644 --- a/experimental/packages/api-logs/src/platform/browser/globalThis.ts +++ b/experimental/packages/api-logs/src/platform/browser/globalThis.ts @@ -31,9 +31,9 @@ export const _globalThis: typeof globalThis = typeof globalThis === 'object' ? globalThis : typeof self === 'object' - ? self - : typeof window === 'object' - ? window - : typeof global === 'object' - ? global - : ({} as typeof globalThis); + ? self + : typeof window === 'object' + ? window + : typeof global === 'object' + ? global + : ({} as typeof globalThis); diff --git a/experimental/packages/opentelemetry-instrumentation-grpc/test/helper.ts b/experimental/packages/opentelemetry-instrumentation-grpc/test/helper.ts index 131dde04b4b..fc86aaf0abc 100644 --- a/experimental/packages/opentelemetry-instrumentation-grpc/test/helper.ts +++ b/experimental/packages/opentelemetry-instrumentation-grpc/test/helper.ts @@ -106,8 +106,8 @@ const checkEqual = x instanceof Array && y instanceof Array ? arrayIsEqual(requestEqual)(x as any)(y as any) : !(x instanceof Array) && !(y instanceof Array) - ? requestEqual(x)(y) - : false; + ? requestEqual(x)(y) + : false; const replicate = (request: TestRequestResponse) => { const result: TestRequestResponse[] = []; diff --git a/package-lock.json b/package-lock.json index 7ebbce3852f..18f13d04eac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,7 +46,7 @@ "lerna": "6.6.2", "linkinator": "6.1.2", "markdownlint-cli2": "0.15.0", - "prettier": "3.0.3", + "prettier": "3.3.3", "process": "0.11.10", "semver": "7.6.3", "typedoc": "0.22.18", @@ -21613,9 +21613,9 @@ } }, "node_modules/prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" @@ -45646,9 +45646,9 @@ "dev": true }, "prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true }, "prettier-linter-helpers": { diff --git a/package.json b/package.json index 74deb674803..a6716f73ede 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "lerna": "6.6.2", "linkinator": "6.1.2", "markdownlint-cli2": "0.15.0", - "prettier": "3.0.3", + "prettier": "3.3.3", "process": "0.11.10", "semver": "7.6.3", "typedoc": "0.22.18", diff --git a/packages/opentelemetry-core/src/platform/browser/globalThis.ts b/packages/opentelemetry-core/src/platform/browser/globalThis.ts index b9b12b7228c..81254595d06 100644 --- a/packages/opentelemetry-core/src/platform/browser/globalThis.ts +++ b/packages/opentelemetry-core/src/platform/browser/globalThis.ts @@ -30,9 +30,9 @@ export const _globalThis: typeof globalThis = typeof globalThis === 'object' ? globalThis : typeof self === 'object' - ? self - : typeof window === 'object' - ? window - : typeof global === 'object' - ? global - : ({} as typeof globalThis); + ? self + : typeof window === 'object' + ? window + : typeof global === 'object' + ? global + : ({} as typeof globalThis); diff --git a/packages/opentelemetry-sdk-trace-web/src/utils.ts b/packages/opentelemetry-sdk-trace-web/src/utils.ts index 5bcc57b72e9..5fcd9abf4ee 100644 --- a/packages/opentelemetry-sdk-trace-web/src/utils.ts +++ b/packages/opentelemetry-sdk-trace-web/src/utils.ts @@ -333,8 +333,8 @@ export function parseUrl(url: string): URLLike { typeof document !== 'undefined' ? document.baseURI : typeof location !== 'undefined' // Some JS runtimes (e.g. Deno) don't define this - ? location.href - : undefined + ? location.href + : undefined ); } const element = getUrlNormalizingAnchor();