@npmcli/config 8.3.2 → 8.3.3

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.
@@ -7,7 +7,7 @@ const { join } = require('node:path')
7
7
  const isWindows = process.platform === 'win32'
8
8
 
9
9
  // used by cafile flattening to flatOptions.ca
10
- const { readFileSync } = require('fs')
10
+ const { readFileSync } = require('node:fs')
11
11
  const maybeReadFile = file => {
12
12
  try {
13
13
  return readFileSync(file, 'utf8')
@@ -61,7 +61,7 @@ const editor = process.env.EDITOR ||
61
61
  const shell = isWindows ? process.env.ComSpec || 'cmd'
62
62
  : process.env.SHELL || 'sh'
63
63
 
64
- const { networkInterfaces } = require('os')
64
+ const { networkInterfaces } = require('node:os')
65
65
  const getLocalAddresses = () => {
66
66
  try {
67
67
  return Object.values(networkInterfaces()).map(
@@ -2012,11 +2012,14 @@ const definitions = {
2012
2012
  If you ask npm to install a package and don't tell it a specific version,
2013
2013
  then it will install the specified tag.
2014
2014
 
2015
- Also the tag that is added to the package@version specified by the \`npm
2016
- tag\` command, if no explicit tag is given.
2015
+ It is the tag added to the package@version specified in the
2016
+ \`npm dist-tag add\` command, if no explicit tag is given.
2017
2017
 
2018
2018
  When used by the \`npm diff\` command, this is the tag used to fetch the
2019
2019
  tarball that will be compared with the local files by default.
2020
+
2021
+ If used in the \`npm publish\` command, this is the tag that will be
2022
+ added to the package submitted to the registry.
2020
2023
  `,
2021
2024
  flatten (key, obj, flatOptions) {
2022
2025
  flatOptions.defaultTag = obj[key]
package/lib/index.js CHANGED
@@ -13,7 +13,7 @@ const {
13
13
  unlink,
14
14
  stat,
15
15
  mkdir,
16
- } = require('fs/promises')
16
+ } = require('node:fs/promises')
17
17
 
18
18
  const fileExists = (...p) => stat(resolve(...p))
19
19
  .then((st) => st.isFile())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/config",
3
- "version": "8.3.2",
3
+ "version": "8.3.3",
4
4
  "files": [
5
5
  "bin/",
6
6
  "lib/"