@peerbit/logger
Advanced tools
Comparing version 1.0.1 to 1.0.2-a4f88b6
{ | ||
"name": "@peerbit/logger", | ||
"version": "1.0.1", | ||
"description": "Logging utils", | ||
"type": "module", | ||
"sideEffects": false, | ||
"module": "lib/esm/index.js", | ||
"types": "lib/esm/index.d.ts", | ||
"exports": { | ||
"import": "./lib/esm/index.js" | ||
}, | ||
"files": [ | ||
"lib", | ||
"src", | ||
"!src/**/__tests__", | ||
"!lib/**/__tests__", | ||
"LICENSE" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
"pino": "^8.14.1" | ||
}, | ||
"scripts": { | ||
"clean": "shx rm -rf lib/*", | ||
"build": "yarn clean && tsc -p tsconfig.json", | ||
"test": "node ../../../node_modules/.bin/jest test -c ../../../jest.config.ts --runInBand --forceExit", | ||
"test:unit": "node ../../../node_modules/.bin/jest test -c ../../../jest.config.unit.ts --runInBand --forceExit", | ||
"test:integration": "node ../node_modules/.bin/jest test -c ../../../jest.config.integration.ts --runInBand --forceExit" | ||
}, | ||
"author": "dao.xyz", | ||
"license": "MIT", | ||
"gitHead": "99e30817f094e45ffcd60f4babd90a717bd26a22" | ||
"name": "@peerbit/logger", | ||
"version": "1.0.2-a4f88b6", | ||
"description": "Logging utils", | ||
"sideEffects": false, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "ipfs", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
"pino": "^8.14.1" | ||
}, | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"build": "aegir build --no-bundle", | ||
"test": "aegir test --target node" | ||
}, | ||
"author": "dao.xyz", | ||
"license": "MIT" | ||
} |
import pino from "pino"; | ||
const isNode = typeof window === undefined || typeof window === "undefined"; | ||
const isNode = typeof window === "undefined"; | ||
export const getEnv = (key) => { | ||
export const getEnv = (key: any) => { | ||
if (isNode) { | ||
@@ -22,5 +22,5 @@ // node | ||
"Unexpected LOG_LEVEL: " + | ||
level + | ||
". Expecting one of: " + | ||
JSON.stringify(levels) | ||
level + | ||
". Expecting one of: " + | ||
JSON.stringify(levels) | ||
); | ||
@@ -27,0 +27,0 @@ } |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6265
7
90
2