@modernpoacher/deps 2.1.32 → 2.1.34

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.
@@ -269,13 +269,8 @@ function rmrf (d = DIRECTORY) {
269
269
  const {
270
270
  stdout,
271
271
  stderr
272
- } = exec(commands, options, function handleComplete (e, v) {
273
- if (!e) {
274
- resolve(v)
275
- return
276
- }
277
-
278
- reject(e)
272
+ } = exec(commands, options, (e, v) => {
273
+ return (!e) ? resolve(v) : reject(e)
279
274
  })
280
275
 
281
276
  const log = use('rmrf')
@@ -299,13 +294,8 @@ function npmi (d = DIRECTORY, registry = REGISTRY, force = false) {
299
294
  const {
300
295
  stdout,
301
296
  stderr
302
- } = exec(commands, options, function handleComplete (e, v) {
303
- if (!e) {
304
- resolve(v)
305
- return
306
- }
307
-
308
- reject(e)
297
+ } = exec(commands, options, (e, v) => {
298
+ return (!e) ? resolve(v) : reject(e)
309
299
  })
310
300
 
311
301
  const log = use('npmi')
@@ -329,13 +319,8 @@ function deps (d = DIRECTORY, registry = REGISTRY, force = false) {
329
319
  const {
330
320
  stdout,
331
321
  stderr
332
- } = exec(commands, options, function handleComplete (e, v) {
333
- if (!e) {
334
- resolve(v)
335
- return
336
- }
337
-
338
- reject(e)
322
+ } = exec(commands, options, (e, v) => {
323
+ return (!e) ? resolve(v) : reject(e)
339
324
  })
340
325
 
341
326
  const log = use('deps')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.1.32",
3
+ "version": "2.1.34",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
package/src/index.mjs CHANGED
@@ -133,8 +133,6 @@ export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
133
133
 
134
134
  const commands = getInstallSaveExactCommands(deps, r, f)
135
135
 
136
- info(commands)
137
-
138
136
  return normalizeCommands(
139
137
  getSaveBundleParameter(commands)
140
138
  )
@@ -311,18 +309,11 @@ export function installSaveBundleSaveExact (d, deps, r, f) {
311
309
  const commands = getCommands(getInstallSaveBundleSaveExactCommands(deps, r, f))
312
310
  const options = getOptions(directory)
313
311
 
314
- info(commands) // , options)
315
-
316
312
  const {
317
313
  stdout,
318
314
  stderr
319
- } = exec(commands, options, function handleComplete (e, v) {
320
- if (!e) {
321
- resolve(v)
322
- return
323
- }
324
-
325
- reject(e)
315
+ } = exec(commands, options, (e, v) => {
316
+ return (!e) ? resolve(v) : reject(e)
326
317
  })
327
318
 
328
319
  const log = use('install-save-bundle-save-exact')
@@ -357,18 +348,11 @@ export function installSaveBundle (d, deps, r, f) {
357
348
  const commands = getCommands(getInstallSaveBundleCommands(deps, r, f))
358
349
  const options = getOptions(directory)
359
350
 
360
- info(commands) // , options)
361
-
362
351
  const {
363
352
  stdout,
364
353
  stderr
365
- } = exec(commands, options, function handleComplete (e, v) {
366
- if (!e) {
367
- resolve(v)
368
- return
369
- }
370
-
371
- reject(e)
354
+ } = exec(commands, options, (e, v) => {
355
+ return (!e) ? resolve(v) : reject(e)
372
356
  })
373
357
 
374
358
  const log = use('install-save-bundle')
@@ -403,18 +387,11 @@ export function installSaveOptionalSaveExact (d, deps, r, f) {
403
387
  const commands = getCommands(getInstallSaveOptionalSaveExactCommands(deps, r, f))
404
388
  const options = getOptions(directory)
405
389
 
406
- info(commands) // , options)
407
-
408
390
  const {
409
391
  stdout,
410
392
  stderr
411
- } = exec(commands, options, function handleComplete (e, v) {
412
- if (!e) {
413
- resolve(v)
414
- return
415
- }
416
-
417
- reject(e)
393
+ } = exec(commands, options, (e, v) => {
394
+ return (!e) ? resolve(v) : reject(e)
418
395
  })
419
396
 
420
397
  const log = use('install-save-otional-save-exact')
@@ -449,18 +426,11 @@ export function installSaveOptional (d, dependencies, r, f) {
449
426
  const commands = getCommands(getInstallSaveOptionalCommands(dependencies, r, f))
450
427
  const options = getOptions(directory)
451
428
 
452
- info(commands) // , options)
453
-
454
429
  const {
455
430
  stdout,
456
431
  stderr
457
- } = exec(commands, options, function handleComplete (e, v) {
458
- if (!e) {
459
- resolve(v)
460
- return
461
- }
462
-
463
- reject(e)
432
+ } = exec(commands, options, (e, v) => {
433
+ return (!e) ? resolve(v) : reject(e)
464
434
  })
465
435
 
466
436
  const log = use('install-save-otional')
@@ -495,18 +465,11 @@ export function installSaveDevSaveExact (d, deps, r, f) {
495
465
  const commands = getCommands(getInstallSaveDevSaveExactCommands(deps, r, f))
496
466
  const options = getOptions(directory)
497
467
 
498
- info(commands) // , options)
499
-
500
468
  const {
501
469
  stdout,
502
470
  stderr
503
- } = exec(commands, options, function handleComplete (e, v) {
504
- if (!e) {
505
- resolve(v)
506
- return
507
- }
508
-
509
- reject(e)
471
+ } = exec(commands, options, (e, v) => {
472
+ return (!e) ? resolve(v) : reject(e)
510
473
  })
511
474
 
512
475
  const log = use('install-save-dev-save-exact')
@@ -541,18 +504,11 @@ export function installSaveDev (d, deps, r, f) {
541
504
  const commands = getCommands(getInstallSaveDevCommands(deps, r, f))
542
505
  const options = getOptions(directory)
543
506
 
544
- info(commands) // , options)
545
-
546
507
  const {
547
508
  stdout,
548
509
  stderr
549
- } = exec(commands, options, function handleComplete (e, v) {
550
- if (!e) {
551
- resolve(v)
552
- return
553
- }
554
-
555
- reject(e)
510
+ } = exec(commands, options, (e, v) => {
511
+ return (!e) ? resolve(v) : reject(e)
556
512
  })
557
513
 
558
514
  const log = use('install-save-dev')
@@ -587,18 +543,11 @@ export function installSaveProdSaveExact (d, deps, r, f) {
587
543
  const commands = getCommands(getInstallSaveProdSaveExactCommands(deps, r, f))
588
544
  const options = getOptions(directory)
589
545
 
590
- info(commands) // , options)
591
-
592
546
  const {
593
547
  stdout,
594
548
  stderr
595
- } = exec(commands, options, function handleComplete (e, v) {
596
- if (!e) {
597
- resolve(v)
598
- return
599
- }
600
-
601
- reject(e)
549
+ } = exec(commands, options, (e, v) => {
550
+ return (!e) ? resolve(v) : reject(e)
602
551
  })
603
552
 
604
553
  const log = use('install-save-prod-save-exact')
@@ -633,18 +582,11 @@ export function installSaveProd (d, deps, r, f) {
633
582
  const commands = getCommands(getInstallSaveProdCommands(deps, r, f))
634
583
  const options = getOptions(directory)
635
584
 
636
- info(commands) // , options)
637
-
638
585
  const {
639
586
  stdout,
640
587
  stderr
641
- } = exec(commands, options, function handleComplete (e, v) {
642
- if (!e) {
643
- resolve(v)
644
- return
645
- }
646
-
647
- reject(e)
588
+ } = exec(commands, options, (e, v) => {
589
+ return (!e) ? resolve(v) : reject(e)
648
590
  })
649
591
 
650
592
  const log = use('install-save-prod')
@@ -119,13 +119,8 @@ export function installSaveExact (d, p, s, r, f) {
119
119
  const {
120
120
  stdout,
121
121
  stderr
122
- } = exec(commands, options, function handleComplete (e, v) {
123
- if (!e) {
124
- resolve(v)
125
- return
126
- }
127
-
128
- reject(e)
122
+ } = exec(commands, options, (e, v) => {
123
+ return (!e) ? resolve(v) : reject(e)
129
124
  })
130
125
 
131
126
  stdout.on('data', log)
@@ -162,13 +157,8 @@ export function install (d, p, s, r, f) {
162
157
  const {
163
158
  stdout,
164
159
  stderr
165
- } = exec(commands, options, function handleComplete (e, v) {
166
- if (!e) {
167
- resolve(v)
168
- return
169
- }
170
-
171
- reject(e)
160
+ } = exec(commands, options, (e, v) => {
161
+ return (!e) ? resolve(v) : reject(e)
172
162
  })
173
163
 
174
164
  stdout.on('data', log)