@modernpoacher/deps 2.1.29 → 2.1.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.1.29",
3
+ "version": "2.1.31",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -69,7 +69,7 @@
69
69
  "cross-env": "^7.0.3",
70
70
  "eslint": "8.57.1",
71
71
  "eslint-config-standard": "^17.1.0",
72
- "husky": "^9.1.6",
72
+ "husky": "^9.1.7",
73
73
  "mocha": "^10.8.2"
74
74
  },
75
75
  "imports": {
@@ -253,13 +253,13 @@ export function awkGitRemoteShowOriginHead (d = DIRECTORY) {
253
253
 
254
254
  return (
255
255
  new Promise((resolve, reject) => {
256
- const command = 'git remote show origin | awk \'/HEAD branch/ {print $NF}\''
256
+ const commands = 'git remote show origin | awk \'/HEAD branch/ {print $NF}\''
257
257
  const options = getOptions(directory)
258
258
 
259
259
  const {
260
260
  stdout,
261
261
  stderr
262
- } = exec(command, options, (e, v = '') => {
262
+ } = exec(commands, options, (e, v = '') => {
263
263
  (!e)
264
264
  ? resolve(trim(v))
265
265
  : reject(e)
@@ -321,13 +321,13 @@ export function gitRevParseAbbrevRefHead (d = DIRECTORY) {
321
321
 
322
322
  return (
323
323
  new Promise((resolve, reject) => {
324
- const command = 'git rev-parse --abbrev-ref HEAD'
324
+ const commands = 'git rev-parse --abbrev-ref HEAD'
325
325
  const options = getOptions(directory)
326
326
 
327
327
  const {
328
328
  stdout,
329
329
  stderr
330
- } = exec(command, options, (e, v = '') => {
330
+ } = exec(commands, options, (e, v = '') => {
331
331
  (!e)
332
332
  ? resolve(trim(v))
333
333
  : reject(e)
package/src/index.mjs CHANGED
@@ -47,6 +47,7 @@ import {
47
47
  } from '#deps/src/common'
48
48
 
49
49
  const log = debug('@modernpoacher/deps')
50
+ const info = debug('@modernpoacher/deps:info')
50
51
 
51
52
  log(`\`deps\` (${VERSION} - ${PLATFORM}) is awake`)
52
53
 
@@ -85,6 +86,8 @@ export function getInstallSaveExactCommands (deps, r, f) {
85
86
  const c = transform(deps)
86
87
  const commands = `npm i ${c}`
87
88
 
89
+ info(commands)
90
+
88
91
  return normalizeCommands(
89
92
  getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(commands)))
90
93
  )
@@ -107,6 +110,8 @@ export function getInstallCommands (deps, r, f) {
107
110
  const c = transform(deps)
108
111
  const commands = `npm i ${c}`
109
112
 
113
+ info(commands)
114
+
110
115
  return normalizeCommands(
111
116
  getRegistryParameter(r, getForceParameter(f, commands))
112
117
  )
@@ -128,6 +133,8 @@ export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
128
133
 
129
134
  const commands = getInstallSaveExactCommands(deps, r, f)
130
135
 
136
+ info(commands)
137
+
131
138
  return normalizeCommands(
132
139
  getSaveBundleParameter(commands)
133
140
  )
@@ -149,6 +156,8 @@ export function getInstallSaveBundleCommands (deps, r, f) {
149
156
 
150
157
  const commands = getInstallCommands(deps, r, f)
151
158
 
159
+ info(commands)
160
+
152
161
  return normalizeCommands(
153
162
  getSaveBundleParameter(commands)
154
163
  )
@@ -170,6 +179,8 @@ export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
170
179
 
171
180
  const commands = getInstallSaveExactCommands(deps, r, f)
172
181
 
182
+ info(commands)
183
+
173
184
  return normalizeCommands(
174
185
  getSaveOptionalParameter(commands)
175
186
  )
@@ -191,6 +202,8 @@ export function getInstallSaveOptionalCommands (deps, r, f) {
191
202
 
192
203
  const commands = getInstallCommands(deps, r, f)
193
204
 
205
+ info(commands)
206
+
194
207
  return normalizeCommands(
195
208
  getSaveOptionalParameter(commands)
196
209
  )
@@ -212,6 +225,8 @@ export function getInstallSaveDevSaveExactCommands (deps, r, f) {
212
225
 
213
226
  const commands = getInstallSaveExactCommands(deps, r, f)
214
227
 
228
+ info(commands)
229
+
215
230
  return normalizeCommands(
216
231
  getSaveDevParameter(commands)
217
232
  )
@@ -233,6 +248,8 @@ export function getInstallSaveDevCommands (deps, r, f) {
233
248
 
234
249
  const commands = getInstallCommands(deps, r, f)
235
250
 
251
+ info(commands)
252
+
236
253
  return normalizeCommands(
237
254
  getSaveDevParameter(commands)
238
255
  )
@@ -254,6 +271,8 @@ export function getInstallSaveProdSaveExactCommands (deps, r, f) {
254
271
 
255
272
  const commands = getInstallSaveExactCommands(deps, r, f)
256
273
 
274
+ info(commands)
275
+
257
276
  return normalizeCommands(
258
277
  getSaveProdParameter(commands)
259
278
  )
@@ -275,6 +294,8 @@ export function getInstallSaveProdCommands (deps, r, f) {
275
294
 
276
295
  const commands = getInstallCommands(deps, r, f)
277
296
 
297
+ info(commands)
298
+
278
299
  return normalizeCommands(
279
300
  getSaveProdParameter(commands)
280
301
  )
@@ -304,6 +325,8 @@ export function installSaveBundleSaveExact (d, deps, r, f) {
304
325
  const commands = getCommands(getInstallSaveBundleSaveExactCommands(deps, r, f))
305
326
  const options = getOptions(directory)
306
327
 
328
+ info(commands, options)
329
+
307
330
  const {
308
331
  stdout,
309
332
  stderr
@@ -345,6 +368,8 @@ export function installSaveBundle (d, deps, r, f) {
345
368
  const commands = getCommands(getInstallSaveBundleCommands(deps, r, f))
346
369
  const options = getOptions(directory)
347
370
 
371
+ info(commands, options)
372
+
348
373
  const {
349
374
  stdout,
350
375
  stderr
@@ -386,6 +411,8 @@ export function installSaveOptionalSaveExact (d, deps, r, f) {
386
411
  const commands = getCommands(getInstallSaveOptionalSaveExactCommands(deps, r, f))
387
412
  const options = getOptions(directory)
388
413
 
414
+ info(commands, options)
415
+
389
416
  const {
390
417
  stdout,
391
418
  stderr
@@ -427,6 +454,8 @@ export function installSaveOptional (d, dependencies, r, f) {
427
454
  const commands = getCommands(getInstallSaveOptionalCommands(dependencies, r, f))
428
455
  const options = getOptions(directory)
429
456
 
457
+ info(commands, options)
458
+
430
459
  const {
431
460
  stdout,
432
461
  stderr
@@ -468,6 +497,8 @@ export function installSaveDevSaveExact (d, deps, r, f) {
468
497
  const commands = getCommands(getInstallSaveDevSaveExactCommands(deps, r, f))
469
498
  const options = getOptions(directory)
470
499
 
500
+ info(commands, options)
501
+
471
502
  const {
472
503
  stdout,
473
504
  stderr
@@ -509,6 +540,8 @@ export function installSaveDev (d, deps, r, f) {
509
540
  const commands = getCommands(getInstallSaveDevCommands(deps, r, f))
510
541
  const options = getOptions(directory)
511
542
 
543
+ info(commands, options)
544
+
512
545
  const {
513
546
  stdout,
514
547
  stderr
@@ -550,6 +583,8 @@ export function installSaveProdSaveExact (d, deps, r, f) {
550
583
  const commands = getCommands(getInstallSaveProdSaveExactCommands(deps, r, f))
551
584
  const options = getOptions(directory)
552
585
 
586
+ info(commands, options)
587
+
553
588
  const {
554
589
  stdout,
555
590
  stderr
@@ -591,6 +626,8 @@ export function installSaveProd (d, deps, r, f) {
591
626
  const commands = getCommands(getInstallSaveProdCommands(deps, r, f))
592
627
  const options = getOptions(directory)
593
628
 
629
+ info(commands, options)
630
+
594
631
  const {
595
632
  stdout,
596
633
  stderr