@modernpoacher/deps 2.1.31 → 2.1.33

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,10 +269,13 @@ function rmrf (d = DIRECTORY) {
269
269
  const {
270
270
  stdout,
271
271
  stderr
272
- } = exec(commands, options, (e, v) => {
273
- (!e)
274
- ? resolve(v)
275
- : reject(e)
272
+ } = exec(commands, options, function handleComplete (e, v) {
273
+ if (!e) {
274
+ resolve(v)
275
+ return
276
+ }
277
+
278
+ reject(e)
276
279
  })
277
280
 
278
281
  const log = use('rmrf')
@@ -296,10 +299,13 @@ function npmi (d = DIRECTORY, registry = REGISTRY, force = false) {
296
299
  const {
297
300
  stdout,
298
301
  stderr
299
- } = exec(commands, options, (e, v) => {
300
- (!e)
301
- ? resolve(v)
302
- : reject(e)
302
+ } = exec(commands, options, function handleComplete (e, v) {
303
+ if (!e) {
304
+ resolve(v)
305
+ return
306
+ }
307
+
308
+ reject(e)
303
309
  })
304
310
 
305
311
  const log = use('npmi')
@@ -323,10 +329,13 @@ function deps (d = DIRECTORY, registry = REGISTRY, force = false) {
323
329
  const {
324
330
  stdout,
325
331
  stderr
326
- } = exec(commands, options, (e, v) => {
327
- (!e)
328
- ? resolve(v)
329
- : reject(e)
332
+ } = exec(commands, options, function handleComplete (e, v) {
333
+ if (!e) {
334
+ resolve(v)
335
+ return
336
+ }
337
+
338
+ reject(e)
330
339
  })
331
340
 
332
341
  const log = use('deps')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.1.31",
3
+ "version": "2.1.33",
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
  )
@@ -156,8 +154,6 @@ export function getInstallSaveBundleCommands (deps, r, f) {
156
154
 
157
155
  const commands = getInstallCommands(deps, r, f)
158
156
 
159
- info(commands)
160
-
161
157
  return normalizeCommands(
162
158
  getSaveBundleParameter(commands)
163
159
  )
@@ -179,8 +175,6 @@ export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
179
175
 
180
176
  const commands = getInstallSaveExactCommands(deps, r, f)
181
177
 
182
- info(commands)
183
-
184
178
  return normalizeCommands(
185
179
  getSaveOptionalParameter(commands)
186
180
  )
@@ -202,8 +196,6 @@ export function getInstallSaveOptionalCommands (deps, r, f) {
202
196
 
203
197
  const commands = getInstallCommands(deps, r, f)
204
198
 
205
- info(commands)
206
-
207
199
  return normalizeCommands(
208
200
  getSaveOptionalParameter(commands)
209
201
  )
@@ -225,8 +217,6 @@ export function getInstallSaveDevSaveExactCommands (deps, r, f) {
225
217
 
226
218
  const commands = getInstallSaveExactCommands(deps, r, f)
227
219
 
228
- info(commands)
229
-
230
220
  return normalizeCommands(
231
221
  getSaveDevParameter(commands)
232
222
  )
@@ -248,8 +238,6 @@ export function getInstallSaveDevCommands (deps, r, f) {
248
238
 
249
239
  const commands = getInstallCommands(deps, r, f)
250
240
 
251
- info(commands)
252
-
253
241
  return normalizeCommands(
254
242
  getSaveDevParameter(commands)
255
243
  )
@@ -271,8 +259,6 @@ export function getInstallSaveProdSaveExactCommands (deps, r, f) {
271
259
 
272
260
  const commands = getInstallSaveExactCommands(deps, r, f)
273
261
 
274
- info(commands)
275
-
276
262
  return normalizeCommands(
277
263
  getSaveProdParameter(commands)
278
264
  )
@@ -294,8 +280,6 @@ export function getInstallSaveProdCommands (deps, r, f) {
294
280
 
295
281
  const commands = getInstallCommands(deps, r, f)
296
282
 
297
- info(commands)
298
-
299
283
  return normalizeCommands(
300
284
  getSaveProdParameter(commands)
301
285
  )
@@ -325,15 +309,16 @@ export function installSaveBundleSaveExact (d, deps, r, f) {
325
309
  const commands = getCommands(getInstallSaveBundleSaveExactCommands(deps, r, f))
326
310
  const options = getOptions(directory)
327
311
 
328
- info(commands, options)
329
-
330
312
  const {
331
313
  stdout,
332
314
  stderr
333
- } = exec(commands, options, (e, v) => {
334
- (!e)
335
- ? resolve(v)
336
- : reject(e)
315
+ } = exec(commands, options, function handleComplete (e, v) {
316
+ if (!e) {
317
+ resolve(v)
318
+ return
319
+ }
320
+
321
+ reject(e)
337
322
  })
338
323
 
339
324
  const log = use('install-save-bundle-save-exact')
@@ -368,15 +353,16 @@ export function installSaveBundle (d, deps, r, f) {
368
353
  const commands = getCommands(getInstallSaveBundleCommands(deps, r, f))
369
354
  const options = getOptions(directory)
370
355
 
371
- info(commands, options)
372
-
373
356
  const {
374
357
  stdout,
375
358
  stderr
376
- } = exec(commands, options, (e, v) => {
377
- (!e)
378
- ? resolve(v)
379
- : reject(e)
359
+ } = exec(commands, options, function handleComplete (e, v) {
360
+ if (!e) {
361
+ resolve(v)
362
+ return
363
+ }
364
+
365
+ reject(e)
380
366
  })
381
367
 
382
368
  const log = use('install-save-bundle')
@@ -411,15 +397,16 @@ export function installSaveOptionalSaveExact (d, deps, r, f) {
411
397
  const commands = getCommands(getInstallSaveOptionalSaveExactCommands(deps, r, f))
412
398
  const options = getOptions(directory)
413
399
 
414
- info(commands, options)
415
-
416
400
  const {
417
401
  stdout,
418
402
  stderr
419
- } = exec(commands, options, (e, v) => {
420
- (!e)
421
- ? resolve(v)
422
- : reject(e)
403
+ } = exec(commands, options, function handleComplete (e, v) {
404
+ if (!e) {
405
+ resolve(v)
406
+ return
407
+ }
408
+
409
+ reject(e)
423
410
  })
424
411
 
425
412
  const log = use('install-save-otional-save-exact')
@@ -454,15 +441,16 @@ export function installSaveOptional (d, dependencies, r, f) {
454
441
  const commands = getCommands(getInstallSaveOptionalCommands(dependencies, r, f))
455
442
  const options = getOptions(directory)
456
443
 
457
- info(commands, options)
458
-
459
444
  const {
460
445
  stdout,
461
446
  stderr
462
- } = exec(commands, options, (e, v) => {
463
- (!e)
464
- ? resolve(v)
465
- : reject(e)
447
+ } = exec(commands, options, function handleComplete (e, v) {
448
+ if (!e) {
449
+ resolve(v)
450
+ return
451
+ }
452
+
453
+ reject(e)
466
454
  })
467
455
 
468
456
  const log = use('install-save-otional')
@@ -497,15 +485,16 @@ export function installSaveDevSaveExact (d, deps, r, f) {
497
485
  const commands = getCommands(getInstallSaveDevSaveExactCommands(deps, r, f))
498
486
  const options = getOptions(directory)
499
487
 
500
- info(commands, options)
501
-
502
488
  const {
503
489
  stdout,
504
490
  stderr
505
- } = exec(commands, options, (e, v) => {
506
- (!e)
507
- ? resolve(v)
508
- : reject(e)
491
+ } = exec(commands, options, function handleComplete (e, v) {
492
+ if (!e) {
493
+ resolve(v)
494
+ return
495
+ }
496
+
497
+ reject(e)
509
498
  })
510
499
 
511
500
  const log = use('install-save-dev-save-exact')
@@ -540,15 +529,16 @@ export function installSaveDev (d, deps, r, f) {
540
529
  const commands = getCommands(getInstallSaveDevCommands(deps, r, f))
541
530
  const options = getOptions(directory)
542
531
 
543
- info(commands, options)
544
-
545
532
  const {
546
533
  stdout,
547
534
  stderr
548
- } = exec(commands, options, (e, v) => {
549
- (!e)
550
- ? resolve(v)
551
- : reject(e)
535
+ } = exec(commands, options, function handleComplete (e, v) {
536
+ if (!e) {
537
+ resolve(v)
538
+ return
539
+ }
540
+
541
+ reject(e)
552
542
  })
553
543
 
554
544
  const log = use('install-save-dev')
@@ -583,15 +573,16 @@ export function installSaveProdSaveExact (d, deps, r, f) {
583
573
  const commands = getCommands(getInstallSaveProdSaveExactCommands(deps, r, f))
584
574
  const options = getOptions(directory)
585
575
 
586
- info(commands, options)
587
-
588
576
  const {
589
577
  stdout,
590
578
  stderr
591
- } = exec(commands, options, (e, v) => {
592
- (!e)
593
- ? resolve(v)
594
- : reject(e)
579
+ } = exec(commands, options, function handleComplete (e, v) {
580
+ if (!e) {
581
+ resolve(v)
582
+ return
583
+ }
584
+
585
+ reject(e)
595
586
  })
596
587
 
597
588
  const log = use('install-save-prod-save-exact')
@@ -626,15 +617,16 @@ export function installSaveProd (d, deps, r, f) {
626
617
  const commands = getCommands(getInstallSaveProdCommands(deps, r, f))
627
618
  const options = getOptions(directory)
628
619
 
629
- info(commands, options)
630
-
631
620
  const {
632
621
  stdout,
633
622
  stderr
634
- } = exec(commands, options, (e, v) => {
635
- (!e)
636
- ? resolve(v)
637
- : reject(e)
623
+ } = exec(commands, options, function handleComplete (e, v) {
624
+ if (!e) {
625
+ resolve(v)
626
+ return
627
+ }
628
+
629
+ reject(e)
638
630
  })
639
631
 
640
632
  const log = use('install-save-prod')
@@ -119,10 +119,13 @@ export function installSaveExact (d, p, s, r, f) {
119
119
  const {
120
120
  stdout,
121
121
  stderr
122
- } = exec(commands, options, (e, v) => {
123
- (!e)
124
- ? resolve(v)
125
- : reject(e)
122
+ } = exec(commands, options, function handleComplete (e, v) {
123
+ if (!e) {
124
+ resolve(v)
125
+ return
126
+ }
127
+
128
+ reject(e)
126
129
  })
127
130
 
128
131
  stdout.on('data', log)
@@ -159,10 +162,13 @@ export function install (d, p, s, r, f) {
159
162
  const {
160
163
  stdout,
161
164
  stderr
162
- } = exec(commands, options, (e, v) => {
163
- (!e)
164
- ? resolve(v)
165
- : reject(e)
165
+ } = exec(commands, options, function handleComplete (e, v) {
166
+ if (!e) {
167
+ resolve(v)
168
+ return
169
+ }
170
+
171
+ reject(e)
166
172
  })
167
173
 
168
174
  stdout.on('data', log)