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

serverless-esbuild

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-esbuild - npm Package Compare versions

Comparing version

to
1.35.3

8

dist/utils.d.ts

@@ -1,3 +0,2 @@

/// <reference types="node" />
import childProcess from 'child_process';
import execa from 'execa';
import type { IFiles } from './types';

@@ -18,6 +17,3 @@ export declare class SpawnError extends Error {

*/
export declare function spawnProcess(command: string, args: string[], options: childProcess.SpawnOptionsWithoutStdio): Promise<{
stdout: string;
stderr: string;
}>;
export declare function spawnProcess(command: string, args: string[], options: execa.Options): execa.ExecaChildProcess<string>;
/**

@@ -24,0 +20,0 @@ * Find a file by walking up parent directories

@@ -32,3 +32,3 @@ "use strict";

const archiver_1 = __importDefault(require("archiver"));
const child_process_1 = __importDefault(require("child_process"));
const execa_1 = __importDefault(require("execa"));
const function_1 = require("fp-ts/lib/function");

@@ -62,28 +62,3 @@ const IO = __importStar(require("fp-ts/lib/IO"));

function spawnProcess(command, args, options) {
return new Promise((resolve, reject) => {
const child = child_process_1.default.spawn(command, args, options);
let stdout = '';
let stderr = '';
// Configure stream encodings
child.stdout.setEncoding('utf8');
child.stderr.setEncoding('utf8');
// Listen to stream events
child.stdout.on('data', (data) => {
stdout += data;
});
child.stderr.on('data', (data) => {
stderr += data;
});
child.on('error', (err) => {
reject(err);
});
child.on('close', (exitCode) => {
if (exitCode !== 0) {
reject(new SpawnError(`${command} ${args.join(' ')} failed with code ${exitCode}`, stdout, stderr));
}
else {
resolve({ stdout, stderr });
}
});
});
return (0, execa_1.default)(command, args, options);
}

@@ -90,0 +65,0 @@ exports.spawnProcess = spawnProcess;

{
"name": "serverless-esbuild",
"version": "1.35.2",
"version": "1.35.3",
"description": "Serverless plugin for zero-config JavaScript and TypeScript code bundling using extremely fast esbuild",

@@ -62,2 +62,3 @@ "keywords": [

"chokidar": "^3.5.3",
"execa": "^5.1.1",
"fp-ts": "^2.13.1",

@@ -64,0 +65,0 @@ "fs-extra": "^11.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet