diff --git a/package.json b/package.json index 4536f1e..05eca05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cloudflight", - "version": "0.6.0", + "version": "0.6.1", "scripts": { "build": "nx run-many --target=build --all --parallel", "test": "nx run-many --target=test --all --parallel", diff --git a/packages/akita-read/package.json b/packages/akita-read/package.json index c48c689..60d48d8 100644 --- a/packages/akita-read/package.json +++ b/packages/akita-read/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/akita-read", - "version": "0.6.0", + "version": "0.6.1", "keywords": [ "akita-read", "akita" @@ -18,7 +18,7 @@ "module": "./index.mjs", "typings": "./index.d.ts", "peerDependencies": { - "@cloudflight/rxjs-read": "0.6.0", + "@cloudflight/rxjs-read": "0.6.1", "@datorama/akita": ">=8.0.0 <9.0.0", "rxjs": ">=7.0.0 <8.0.0" }, diff --git a/packages/angular-display/package.json b/packages/angular-display/package.json index 645890f..c29f797 100644 --- a/packages/angular-display/package.json +++ b/packages/angular-display/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/angular-display", - "version": "0.6.0", + "version": "0.6.1", "keywords": [ "angular-display", "breakpoints" diff --git a/packages/angular-logger/package.json b/packages/angular-logger/package.json index cb5a41f..447e4fe 100644 --- a/packages/angular-logger/package.json +++ b/packages/angular-logger/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/angular-logger", - "version": "0.6.0", + "version": "0.6.1", "keywords": [ "angular-logger", "logger" diff --git a/packages/concurrency-utils/package.json b/packages/concurrency-utils/package.json index 8579012..76506ec 100644 --- a/packages/concurrency-utils/package.json +++ b/packages/concurrency-utils/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/concurrency-utils", - "version": "0.6.0", + "version": "0.6.1", "keywords": [ "concurrency-utils", "concurrency", diff --git a/packages/logger/package.json b/packages/logger/package.json index c58fae9..9d207be 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/logger", - "version": "0.6.0", + "version": "0.6.1", "keywords": [ "logger" ], diff --git a/packages/logger/src/lib/global-access.ts b/packages/logger/src/lib/global-access.ts index 36face0..4af9caf 100644 --- a/packages/logger/src/lib/global-access.ts +++ b/packages/logger/src/lib/global-access.ts @@ -1,8 +1,6 @@ import {Logger} from './model/logger'; import {LogConsumer} from './model/log-consumer'; -declare const global: unknown; - export interface LoggerAccessor { loggerAccessor: { loggerByKey(key: string): Logger | undefined; @@ -10,7 +8,6 @@ export interface LoggerAccessor { }; } -const globalObject = window ?? global; const loggers = new Map(); const consumers = new Map(); @@ -23,7 +20,7 @@ export function addConsumer(consumer: LogConsumer): void { } (() => { - if (isAccessorAlreadyAttached(globalObject)) { + if (isAccessorAlreadyAttached(globalThis)) { return; } @@ -36,7 +33,7 @@ export function addConsumer(consumer: LogConsumer): void { }, }; - Object.defineProperty(globalObject, 'loggerAccessor', { + Object.defineProperty(globalThis, 'loggerAccessor', { configurable: false, enumerable: false, writable: false, diff --git a/packages/rxjs-read/package.json b/packages/rxjs-read/package.json index aba2a21..b8c624c 100644 --- a/packages/rxjs-read/package.json +++ b/packages/rxjs-read/package.json @@ -1,6 +1,6 @@ { "name": "@cloudflight/rxjs-read", - "version": "0.6.0", + "version": "0.6.1", "keywords": [ "rxjs" ],