├── .README └── cli-output-demo.png ├── .eslintrc ├── .github ├── FUNDING.yml └── workflows │ ├── feature.yaml │ └── main.yaml ├── .gitignore ├── .husky ├── pre-commit └── pre-push ├── .nycrc ├── .releaserc ├── LICENSE ├── README.md ├── cspell.yaml ├── knip.json ├── package.json ├── src ├── Roarr.ts ├── browser.ts ├── config.ts ├── constants.ts ├── factories │ ├── createLogger.ts │ ├── createMockLogger.ts │ ├── createNodeWriter.ts │ ├── createRoarrInitialGlobalState.ts │ └── createRoarrInitialGlobalStateBrowser.ts ├── getLogLevelName.ts ├── types.ts ├── typings.d.ts └── utilities │ ├── hasOwnProperty.ts │ ├── isBrowser.ts │ ├── isTruthy.ts │ └── stringify.ts ├── test ├── .eslintrc ├── benchmark.ts ├── helpers │ └── createIntegrationTest.ts └── roarr │ ├── createRoarrInitialGlobalState.ts │ ├── integrations │ ├── README.md │ ├── asyncLocalScope.ts │ ├── roarr.ts │ ├── roarrWriteNotTriggeredWhenRoarrLogIsDisabled.ts │ ├── roarrWriteOverridesMessageHandler.ts │ ├── roarrWriteUpdatesSequence.ts │ └── serializeMessage.ts │ └── utilities │ └── stringify.ts ├── tsconfig.build.json └── tsconfig.json /.README/cli-output-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.README/cli-output-demo.png -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/workflows/feature.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.github/workflows/feature.yaml -------------------------------------------------------------------------------- /.github/workflows/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.github/workflows/main.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.nycrc -------------------------------------------------------------------------------- /.releaserc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/.releaserc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/README.md -------------------------------------------------------------------------------- /cspell.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/cspell.yaml -------------------------------------------------------------------------------- /knip.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/knip.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/package.json -------------------------------------------------------------------------------- /src/Roarr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/Roarr.ts -------------------------------------------------------------------------------- /src/browser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/browser.ts -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/factories/createLogger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/factories/createLogger.ts -------------------------------------------------------------------------------- /src/factories/createMockLogger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/factories/createMockLogger.ts -------------------------------------------------------------------------------- /src/factories/createNodeWriter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/factories/createNodeWriter.ts -------------------------------------------------------------------------------- /src/factories/createRoarrInitialGlobalState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/factories/createRoarrInitialGlobalState.ts -------------------------------------------------------------------------------- /src/factories/createRoarrInitialGlobalStateBrowser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/factories/createRoarrInitialGlobalStateBrowser.ts -------------------------------------------------------------------------------- /src/getLogLevelName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/getLogLevelName.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.json' { 2 | export const version: string; 3 | } 4 | -------------------------------------------------------------------------------- /src/utilities/hasOwnProperty.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/utilities/hasOwnProperty.ts -------------------------------------------------------------------------------- /src/utilities/isBrowser.ts: -------------------------------------------------------------------------------- 1 | export const isBrowser = () => typeof window !== 'undefined'; 2 | -------------------------------------------------------------------------------- /src/utilities/isTruthy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/utilities/isTruthy.ts -------------------------------------------------------------------------------- /src/utilities/stringify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/src/utilities/stringify.ts -------------------------------------------------------------------------------- /test/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/.eslintrc -------------------------------------------------------------------------------- /test/benchmark.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/benchmark.ts -------------------------------------------------------------------------------- /test/helpers/createIntegrationTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/helpers/createIntegrationTest.ts -------------------------------------------------------------------------------- /test/roarr/createRoarrInitialGlobalState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/createRoarrInitialGlobalState.ts -------------------------------------------------------------------------------- /test/roarr/integrations/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/integrations/README.md -------------------------------------------------------------------------------- /test/roarr/integrations/asyncLocalScope.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/integrations/asyncLocalScope.ts -------------------------------------------------------------------------------- /test/roarr/integrations/roarr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/integrations/roarr.ts -------------------------------------------------------------------------------- /test/roarr/integrations/roarrWriteNotTriggeredWhenRoarrLogIsDisabled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/integrations/roarrWriteNotTriggeredWhenRoarrLogIsDisabled.ts -------------------------------------------------------------------------------- /test/roarr/integrations/roarrWriteOverridesMessageHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/integrations/roarrWriteOverridesMessageHandler.ts -------------------------------------------------------------------------------- /test/roarr/integrations/roarrWriteUpdatesSequence.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/integrations/roarrWriteUpdatesSequence.ts -------------------------------------------------------------------------------- /test/roarr/integrations/serializeMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/integrations/serializeMessage.ts -------------------------------------------------------------------------------- /test/roarr/utilities/stringify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/test/roarr/utilities/stringify.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gajus/roarr/HEAD/tsconfig.json --------------------------------------------------------------------------------