@modernpoacher/deps 2.2.17 → 2.2.18

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/node/wipe.mjs CHANGED
@@ -8,6 +8,8 @@ import {
8
8
  join
9
9
  } from 'node:path'
10
10
 
11
+ import '#deps/src/common/debug'
12
+
11
13
  import {
12
14
  PLATFORM,
13
15
  BIN
@@ -17,8 +19,6 @@ import {
17
19
  getOptions
18
20
  } from '#deps/src/common/options'
19
21
 
20
- import '#deps/src/common/debug'
21
-
22
22
  import {
23
23
  getArgs,
24
24
  use,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.2.17",
3
+ "version": "2.2.18",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -79,8 +79,8 @@
79
79
  "#deps/src": "./src/index.mjs",
80
80
  "#deps/src/*": "./src/*.mjs",
81
81
  "#deps/src/common": "./src/common/index.mjs",
82
- "#deps/src/common/debug": "./src/common/debug.mjs",
83
82
  "#deps/src/common/*": "./src/common/*/index.mjs",
83
+ "#deps/src/common/debug": "./src/common/debug.mjs",
84
84
  "#deps/src/install": "./src/install/index.mjs",
85
85
  "#where-am-i": "./where-am-i.mjs"
86
86
  }
@@ -322,6 +322,16 @@ function excludeVersionIsExact ([name, version]) {
322
322
  }
323
323
 
324
324
  /**
325
+ * @function getMapToDepsExactVersionFromConfiguration
326
+ *
327
+ * Produces an array of objects from the entries of `packageDependencies` which have
328
+ * exact versions
329
+ *
330
+ * Entries have already been filtered to exclude non-exact versions
331
+ *
332
+ * Each entry is mapped to the same package name in `configurationDependencies` if it
333
+ * appears there. Otherwise, the `packageDependencies` version is used
334
+ *
325
335
  * @param {Record<string, string>} configurationDependencies
326
336
  * @returns {(entry: [name: string, version: string]) => {
327
337
  * name: string,
@@ -330,10 +340,6 @@ function excludeVersionIsExact ([name, version]) {
330
340
  */
331
341
  function getMapToDepsExactVersionFromConfiguration (configurationDependencies) {
332
342
  /**
333
- * We are producing an array of objects from the entries of the `packageDependencies`
334
- *
335
- * Each object in the array represents an entry (key and value) from `packageDependencies`
336
- *
337
343
  * @param {[name: string, version: string]} entry
338
344
  * @returns {{
339
345
  * name: string,
@@ -358,6 +364,14 @@ function getMapToDepsExactVersionFromConfiguration (configurationDependencies) {
358
364
  }
359
365
 
360
366
  /**
367
+ * @function mapToDepsVersion
368
+ *
369
+ * Produces an array of objects from the entries of `packageDependencies` which do not have
370
+ * exact versions
371
+ *
372
+ * Where the version is a pre-release, that version is used. Otherwise the version is
373
+ * set to `latest` to ensure that package is updated
374
+ *
361
375
  * @param {[name: string, version: string]} entry
362
376
  * @returns {{
363
377
  * name: string,