@modernpoacher/deps 2.2.11 → 2.2.13

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.2.11",
3
+ "version": "2.2.13",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
package/src/index.mjs CHANGED
@@ -83,13 +83,13 @@ export function use (key) {
83
83
  export function getInstallSaveExactCommands (deps, r, f) {
84
84
  log('getInstallSaveExactCommands')
85
85
 
86
- const commands = getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(deps)}`)))
86
+ const commands = normalizeCommands(
87
+ getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(deps)}`)))
88
+ )
87
89
 
88
90
  info(commands)
89
91
 
90
- return (
91
- normalizeCommands(commands)
92
- )
92
+ return commands
93
93
  }
94
94
 
95
95
  /**
@@ -106,13 +106,13 @@ export function getInstallSaveExactCommands (deps, r, f) {
106
106
  export function getInstallCommands (deps, r, f) {
107
107
  log('getInstallCommands')
108
108
 
109
- const commands = getRegistryParameter(r, getForceParameter(f, `npm i ${transform(deps)}`))
109
+ const commands = normalizeCommands(
110
+ getRegistryParameter(r, getForceParameter(f, `npm i ${transform(deps)}`))
111
+ )
110
112
 
111
113
  info(commands)
112
114
 
113
- return (
114
- normalizeCommands(commands)
115
- )
115
+ return commands
116
116
  }
117
117
 
118
118
  /**
@@ -129,11 +129,13 @@ export function getInstallCommands (deps, r, f) {
129
129
  export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
130
130
  log('getInstallSaveBundleSaveExactCommands')
131
131
 
132
- const commands = getSaveBundleParameter(getInstallSaveExactCommands(deps, r, f))
133
-
134
- return (
135
- normalizeCommands(commands)
132
+ const commands = normalizeCommands(
133
+ getSaveBundleParameter(getInstallSaveExactCommands(deps, r, f))
136
134
  )
135
+
136
+ info(commands)
137
+
138
+ return commands
137
139
  }
138
140
 
139
141
  /**
@@ -150,11 +152,13 @@ export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
150
152
  export function getInstallSaveBundleCommands (deps, r, f) {
151
153
  log('getInstallSaveBundleCommands')
152
154
 
153
- const commands = getSaveBundleParameter(getInstallCommands(deps, r, f))
154
-
155
- return (
156
- normalizeCommands(commands)
155
+ const commands = normalizeCommands(
156
+ getSaveBundleParameter(getInstallCommands(deps, r, f))
157
157
  )
158
+
159
+ info(commands)
160
+
161
+ return commands
158
162
  }
159
163
 
160
164
  /**
@@ -171,11 +175,13 @@ export function getInstallSaveBundleCommands (deps, r, f) {
171
175
  export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
172
176
  log('getInstallSaveOptionalSaveExactCommands')
173
177
 
174
- const commands = getSaveOptionalParameter(getInstallSaveExactCommands(deps, r, f))
175
-
176
- return (
177
- normalizeCommands(commands)
178
+ const commands = normalizeCommands(
179
+ getSaveOptionalParameter(getInstallSaveExactCommands(deps, r, f))
178
180
  )
181
+
182
+ info(commands)
183
+
184
+ return commands
179
185
  }
180
186
 
181
187
  /**
@@ -192,11 +198,13 @@ export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
192
198
  export function getInstallSaveOptionalCommands (deps, r, f) {
193
199
  log('getInstallSaveOptionalCommands')
194
200
 
195
- const commands = getSaveOptionalParameter(getInstallCommands(deps, r, f))
196
-
197
- return (
198
- normalizeCommands(commands)
201
+ const commands = normalizeCommands(
202
+ getSaveOptionalParameter(getInstallCommands(deps, r, f))
199
203
  )
204
+
205
+ info(commands)
206
+
207
+ return commands
200
208
  }
201
209
 
202
210
  /**
@@ -213,11 +221,13 @@ export function getInstallSaveOptionalCommands (deps, r, f) {
213
221
  export function getInstallSaveDevSaveExactCommands (deps, r, f) {
214
222
  log('getInstallSaveDevSaveExactCommands')
215
223
 
216
- const commands = getSaveDevParameter(getInstallSaveExactCommands(deps, r, f))
217
-
218
- return (
219
- normalizeCommands(commands)
224
+ const commands = normalizeCommands(
225
+ getSaveDevParameter(getInstallSaveExactCommands(deps, r, f))
220
226
  )
227
+
228
+ info(commands)
229
+
230
+ return commands
221
231
  }
222
232
 
223
233
  /**
@@ -234,11 +244,13 @@ export function getInstallSaveDevSaveExactCommands (deps, r, f) {
234
244
  export function getInstallSaveDevCommands (deps, r, f) {
235
245
  log('getInstallSaveDevCommands')
236
246
 
237
- const commands = getSaveDevParameter(getInstallCommands(deps, r, f))
238
-
239
- return (
240
- normalizeCommands(commands)
247
+ const commands = normalizeCommands(
248
+ getSaveDevParameter(getInstallCommands(deps, r, f))
241
249
  )
250
+
251
+ info(commands)
252
+
253
+ return commands
242
254
  }
243
255
 
244
256
  /**
@@ -255,11 +267,13 @@ export function getInstallSaveDevCommands (deps, r, f) {
255
267
  export function getInstallSaveProdSaveExactCommands (deps, r, f) {
256
268
  log('getInstallSaveProdSaveExactCommands')
257
269
 
258
- const commands = getSaveProdParameter(getInstallSaveExactCommands(deps, r, f))
259
-
260
- return (
261
- normalizeCommands(commands)
270
+ const commands = normalizeCommands(
271
+ getSaveProdParameter(getInstallSaveExactCommands(deps, r, f))
262
272
  )
273
+
274
+ info(commands)
275
+
276
+ return commands
263
277
  }
264
278
 
265
279
  /**
@@ -276,11 +290,13 @@ export function getInstallSaveProdSaveExactCommands (deps, r, f) {
276
290
  export function getInstallSaveProdCommands (deps, r, f) {
277
291
  log('getInstallSaveProdCommands')
278
292
 
279
- const commands = getSaveProdParameter(getInstallCommands(deps, r, f))
280
-
281
- return (
282
- normalizeCommands(commands)
293
+ const commands = normalizeCommands(
294
+ getSaveProdParameter(getInstallCommands(deps, r, f))
283
295
  )
296
+
297
+ info(commands)
298
+
299
+ return commands
284
300
  }
285
301
 
286
302
  /**
@@ -41,7 +41,8 @@ import {
41
41
  getDeps
42
42
  } from '#deps/src/common'
43
43
 
44
- const log = debug('@modernpoacher/deps:install')
44
+ const log = debug('@modernpoacher/deps')
45
+ const info = debug('@modernpoacher/deps:info')
45
46
 
46
47
  log(`\`install\` (${VERSION} - ${PLATFORM}) is awake`)
47
48
 
@@ -60,11 +61,13 @@ log(`\`install\` (${VERSION} - ${PLATFORM}) is awake`)
60
61
  export function getInstallSaveExactCommands (p, s, r, f) {
61
62
  log('getInstallSaveExactCommands')
62
63
 
63
- const commands = getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(p)}`))))
64
-
65
- return (
66
- normalizeCommands(commands)
64
+ const commands = normalizeCommands(
65
+ getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(`npm i ${transform(p)}`))))
67
66
  )
67
+
68
+ info(commands)
69
+
70
+ return commands
68
71
  }
69
72
 
70
73
  /**
@@ -82,11 +85,13 @@ export function getInstallSaveExactCommands (p, s, r, f) {
82
85
  export function getInstallCommands (p, s, r, f) {
83
86
  log('getInstallCommands')
84
87
 
85
- const commands = getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, `npm i ${transform(p)}`)))
86
-
87
- return (
88
- normalizeCommands(commands)
88
+ const commands = normalizeCommands(
89
+ getNoSaveParameter(s, getRegistryParameter(r, getForceParameter(f, `npm i ${transform(p)}`)))
89
90
  )
91
+
92
+ info(commands)
93
+
94
+ return commands
90
95
  }
91
96
 
92
97
  /**