@@ -6687,19 +6687,19 @@ function queueAsPromised (context, worker, _concurrency) {
66876687 }
66886688
66896689 function drained () {
6690- if (queue.idle()) {
6691- return new Promise(function (resolve) {
6692- resolve()
6693- })
6694- }
6695-
6696- var previousDrain = queue.drain
6697-
66986690 var p = new Promise(function (resolve) {
6699- queue.drain = function () {
6700- previousDrain()
6701- resolve()
6702- }
6691+ process.nextTick(function () {
6692+ if (queue.idle()) {
6693+ resolve()
6694+ } else {
6695+ var previousDrain = queue.drain
6696+ queue.drain = function () {
6697+ if (typeof previousDrain === 'function') previousDrain()
6698+ resolve()
6699+ queue.drain = previousDrain
6700+ }
6701+ }
6702+ })
67036703 })
67046704
67056705 return p
@@ -62802,7 +62802,7 @@ const pathPosix = external_node_path_namespaceObject.posix;
6280262802
6280362803// Variables
6280462804const packageName = "markdownlint-cli2";
62805- const packageVersion = "0.16 .0";
62805+ const packageVersion = "0.17 .0";
6280662806const libraryName = "markdownlint";
6280762807const libraryVersion = getVersion();
6280862808const bannerMessage = `${packageName} v${packageVersion} (${libraryName} v${libraryVersion})`;
@@ -62952,8 +62952,9 @@ const readOptionsOrConfig = async (configPath, fs, noImport) => {
6295262952 config = await importModule(dirname, basename, noImport);
6295362953 } else {
6295462954 throw new Error(
62955- "File name should be (or end with) one of the supported types " +
62956- "(e.g., '.markdownlint.json' or 'example.markdownlint-cli2.jsonc')."
62955+ "Configuration file should be one of the supported names " +
62956+ "(e.g., '.markdownlint-cli2.jsonc') or a prefix with a supported name " +
62957+ "(e.g., 'example.markdownlint-cli2.jsonc')."
6295762958 );
6295862959 }
6295962960 } catch (error) {
0 commit comments