marked 13.0.2 → 14.0.0

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/bin/main.js CHANGED
@@ -28,13 +28,12 @@ export async function main(nodeProcess) {
28
28
  const options = {
29
29
  cwd: nodeProcess.cwd(),
30
30
  env: nodeProcess.env,
31
- stdio: 'inherit'
31
+ stdio: 'inherit',
32
32
  };
33
33
 
34
34
  const __dirname = dirname(fileURLToPath(import.meta.url));
35
35
  const helpText = await readFile(resolve(__dirname, '../man/marked.1.md'), 'utf8');
36
36
 
37
- // eslint-disable-next-line promise/param-names
38
37
  await new Promise(res => {
39
38
  spawn('man', [resolve(__dirname, '../man/marked.1')], options)
40
39
  .on('error', () => {
@@ -128,7 +127,7 @@ export async function main(nodeProcess) {
128
127
  default:
129
128
  if (arg.indexOf('--') === 0) {
130
129
  opt = camelize(arg.replace(/^--(no-)?/, ''));
131
- if (!marked.defaults.hasOwnProperty(opt)) {
130
+ if (!(opt in marked.defaults)) {
132
131
  continue;
133
132
  }
134
133
  if (arg.indexOf('--no-') === 0) {
@@ -205,7 +204,7 @@ export async function main(nodeProcess) {
205
204
  const defaultConfig = [
206
205
  '~/.marked.json',
207
206
  '~/.marked.js',
208
- '~/.marked/index.js'
207
+ '~/.marked/index.js',
209
208
  ];
210
209
 
211
210
  for (const configFile of defaultConfig) {