New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@peerbit/logger

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/logger - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2-a4f88b6

dist/src/index.d.ts

92

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc