Socket
Socket
Sign inDemoInstall

esbuild-plugin-pino

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-pino - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

2

dist/index.d.ts

@@ -34,3 +34,3 @@ import { Plugin } from 'esbuild';

*/
declare function esbuildPluginPino({ transports }: {
declare function esbuildPluginPino({ transports, }: {
transports: string[];

@@ -37,0 +37,0 @@ }): Plugin;

'use strict';
var module$1 = require('module');
var promises = require('node:fs/promises');
var path = require('node:path');
var promises = require('node:fs/promises');

@@ -21,9 +21,9 @@ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;

const separator = entryPoints[0].includes("\\") ? path.win32.sep : path.posix.sep;
let tmpOutbase = "";
if (!outbase) {
const hierarchy = entryPoints[0].split(separator);
let i = 0;
outbase = "";
let nextOutbase = "";
do {
outbase = nextOutbase;
tmpOutbase = nextOutbase;
i++;

@@ -37,3 +37,3 @@ nextOutbase = hierarchy.slice(0, i).join(separator);

for (const entrypoint of entryPoints) {
const destination = (outbase ? entrypoint.replace(`${outbase}${separator}`, "") : entrypoint).replace(/.(js|ts)$/, "");
const destination = (tmpOutbase ? entrypoint.replace(`${tmpOutbase}${separator}`, "") : entrypoint).replace(/.(js|ts)$/, "");
newEntrypoints[destination] = entrypoint;

@@ -55,3 +55,3 @@ }

name: "pino",
setup(currentBuild) {
async setup(currentBuild) {
const pino = path.dirname(require$1.resolve("pino"));

@@ -63,5 +63,10 @@ const threadStream = path.dirname(require$1.resolve("thread-stream"));

"pino-worker": path.join(pino, "lib/worker.js"),
"pino-pipeline-worker": path.join(pino, "lib/worker-pipeline.js"),
"pino-file": path.join(pino, "file.js")
};
try {
const pinoPipelineWorker = path.join(pino, "lib/worker-pipeline.js");
await promises.stat(pinoPipelineWorker);
customEntrypoints["pino-pipeline-worker"] = pinoPipelineWorker;
} catch (err) {
}
const transportsEntrypoints = Object.fromEntries(

@@ -121,3 +126,3 @@ transports.map((transport) => [transport, require$1.resolve(transport)])

let extension = ".js";
if (outExtension && outExtension[".js"]) {
if (outExtension?.[".js"]) {
extension = outExtension[".js"];

@@ -124,0 +129,0 @@ }

{
"name": "esbuild-plugin-pino",
"version": "2.1.1",
"version": "2.2.0",
"description": "An esbuild plugin to generate extra pino files for bundling",

@@ -28,24 +28,19 @@ "main": "dist/index.js",

"devDependencies": {
"@types/node": "20.11.17",
"@typescript-eslint/eslint-plugin": "7.0.1",
"@typescript-eslint/parser": "7.0.1",
"esbuild": "0.20.0",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"@biomejs/biome": "^1.8.0",
"@types/node": "20.14.2",
"esbuild": "0.21.5",
"execa": "8.0.1",
"nodemon": "3.0.3",
"pino": "8.18.0",
"pino-loki": "2.2.1",
"nodemon": "3.1.3",
"pino": "8.21.0",
"pino-loki": "2.3.0",
"pino-pretty": "10.3.1",
"pkgroll": "2.0.1",
"prettier": "3.2.5",
"pkgroll": "2.1.1",
"standard-version": "9.5.0",
"thread-stream": "2.4.1",
"tsx": "4.7.1",
"typescript": "5.3.3",
"vitest": "1.2.2"
"thread-stream": "2.7.0",
"tsx": "4.15.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
"peerDependencies": {
"esbuild": "^0.17.1 || ^0.18.0 || ^0.19.0 || ^0.20.0"
"esbuild": "^0.17.1 || ^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0"
},

@@ -59,4 +54,3 @@ "scripts": {

"test": "rm -rf dist && pkgroll && vitest run",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"check": "biome check --write .",
"release:major": "standard-version --no-verify --release-as major",

@@ -63,0 +57,0 @@ "release:minor": "standard-version --no-verify --release-as minor",

Sorry, the diff of this file is not supported yet

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