npm-pkg-lint 4.6.2 → 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -6
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10926,10 +10926,10 @@ var escapeFile = (file) => file.replaceAll(/([()\][%!^"`<>&|;, *?])/g, "^$1");
|
|
|
10926
10926
|
// node_modules/nano-spawn/source/result.js
|
|
10927
10927
|
import { once, on } from "node:events";
|
|
10928
10928
|
import process6 from "node:process";
|
|
10929
|
-
var getResult = async (nodeChildProcess,
|
|
10929
|
+
var getResult = async (nodeChildProcess, options, context) => {
|
|
10930
10930
|
const instance = await nodeChildProcess;
|
|
10931
|
-
if (input !== void 0) {
|
|
10932
|
-
instance.stdin.end(input);
|
|
10931
|
+
if (options.input !== void 0) {
|
|
10932
|
+
instance.stdin.end(options.input);
|
|
10933
10933
|
}
|
|
10934
10934
|
const onClose = once(instance, "close");
|
|
10935
10935
|
try {
|
|
@@ -10941,7 +10941,7 @@ var getResult = async (nodeChildProcess, { input }, context) => {
|
|
|
10941
10941
|
return getOutputs(context);
|
|
10942
10942
|
} catch (error) {
|
|
10943
10943
|
await Promise.allSettled([onClose]);
|
|
10944
|
-
throw getResultError(error, instance, context);
|
|
10944
|
+
throw getResultError(error, instance, context, options);
|
|
10945
10945
|
}
|
|
10946
10946
|
};
|
|
10947
10947
|
var onStreamError = async (stream) => {
|
|
@@ -10959,9 +10959,10 @@ var checkFailure = ({ command }, { exitCode, signalName }) => {
|
|
|
10959
10959
|
throw new SubprocessError(`Command failed with exit code ${exitCode}: ${command}`);
|
|
10960
10960
|
}
|
|
10961
10961
|
};
|
|
10962
|
-
var getResultError = (error, instance, context) => Object.assign(
|
|
10962
|
+
var getResultError = (error, instance, context, { signal }) => Object.assign(
|
|
10963
10963
|
getErrorInstance(error, context),
|
|
10964
10964
|
getErrorOutput(instance),
|
|
10965
|
+
{ isCanceled: signal?.aborted === true },
|
|
10965
10966
|
getOutputs(context)
|
|
10966
10967
|
);
|
|
10967
10968
|
var getErrorInstance = (error, { command }) => error instanceof SubprocessError ? error : new SubprocessError(`Command failed: ${command}`, { cause: error });
|
|
@@ -10999,7 +11000,7 @@ var spawnSubprocess = async (file, commandArguments, options, context) => {
|
|
|
10999
11000
|
await once2(instance, "spawn");
|
|
11000
11001
|
return instance;
|
|
11001
11002
|
} catch (error) {
|
|
11002
|
-
throw getResultError(error, {}, context);
|
|
11003
|
+
throw getResultError(error, {}, context, options);
|
|
11003
11004
|
}
|
|
11004
11005
|
};
|
|
11005
11006
|
var concatenateShell = (file, commandArguments, options) => options.shell && commandArguments.length > 0 ? [[file, ...commandArguments].join(" "), [], options] : [file, commandArguments, options];
|