esbuild-plugin-pino
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -56,3 +56,3 @@ 'use strict'; | ||
const threadStream = path.dirname(require$1.resolve("thread-stream")); | ||
const { entryPoints, outbase } = currentBuild.initialOptions; | ||
const { entryPoints, outbase, outExtension } = currentBuild.initialOptions; | ||
const customEntrypoints = { | ||
@@ -117,2 +117,6 @@ "thread-stream-worker": path.join(threadStream, "lib/worker.js"), | ||
`; | ||
let extension = ".js"; | ||
if (outExtension && outExtension[".js"]) { | ||
extension = outExtension[".js"]; | ||
} | ||
const pinoOverrides = Object.keys({ | ||
@@ -122,3 +126,3 @@ ...customEntrypoints, | ||
}).map( | ||
(id) => `'${id === "pino-file" ? "pino/file" : id}': pinoBundlerAbsolutePath('./${id}.js')` | ||
(id) => `'${id === "pino-file" ? "pino/file" : id}': pinoBundlerAbsolutePath('./${id}${extension}')` | ||
).join(","); | ||
@@ -125,0 +129,0 @@ const globalThisDeclaration = ` |
{ | ||
"name": "esbuild-plugin-pino", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "An esbuild plugin to generate extra pino files for bundling", | ||
@@ -28,19 +28,19 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/node": "18.18.1", | ||
"@typescript-eslint/eslint-plugin": "6.7.3", | ||
"@typescript-eslint/parser": "6.7.3", | ||
"esbuild": "0.19.4", | ||
"eslint": "8.50.0", | ||
"@types/node": "18.18.6", | ||
"@typescript-eslint/eslint-plugin": "6.8.0", | ||
"@typescript-eslint/parser": "6.8.0", | ||
"esbuild": "0.19.5", | ||
"eslint": "8.52.0", | ||
"eslint-config-prettier": "9.0.0", | ||
"eslint-plugin-prettier": "5.0.0", | ||
"eslint-plugin-prettier": "5.0.1", | ||
"execa": "8.0.1", | ||
"nodemon": "3.0.1", | ||
"pino": "8.15.3", | ||
"pino": "8.16.0", | ||
"pino-loki": "2.1.3", | ||
"pino-pretty": "10.2.0", | ||
"pkgroll": "2.0.0", | ||
"pino-pretty": "10.2.3", | ||
"pkgroll": "2.0.1", | ||
"prettier": "3.0.3", | ||
"standard-version": "9.5.0", | ||
"thread-stream": "2.4.0", | ||
"tsx": "3.13.0", | ||
"thread-stream": "2.4.1", | ||
"tsx": "3.14.0", | ||
"typescript": "5.2.2", | ||
@@ -47,0 +47,0 @@ "vitest": "0.34.6" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17387
302