@ivuorinen/config-checker 1.1.7 → 1.1.9
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/lib/config-checker.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint no-console: "off", n/no-process-exit: "off" -- CLI app that gives users feedback */
|
|
2
2
|
|
|
3
|
-
const fs = require('fs')
|
|
4
|
-
const path = require('path')
|
|
3
|
+
const fs = require('node:fs')
|
|
4
|
+
const path = require('node:path')
|
|
5
5
|
// noinspection NpmUsedModulesInstalled
|
|
6
|
-
const process = require('process')
|
|
6
|
+
const process = require('node:process')
|
|
7
7
|
const configurationPaths = require('./configuration-paths')
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Checks for the existence of a configuration file.
|
|
11
|
-
* @param {string} moduleName
|
|
12
|
-
* @param {string} pathPrefix
|
|
11
|
+
* @param {string} moduleName The name of the module to check for.
|
|
12
|
+
* @param {string} pathPrefix The prefix to add to the path.
|
|
13
13
|
* @returns {string[]} - The paths to the configuration files.
|
|
14
14
|
*/
|
|
15
15
|
const configChecker = (moduleName, pathPrefix = '') => {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const path = require('path')
|
|
1
|
+
const path = require('node:path')
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
* Returns an array of configuration paths.
|
|
7
|
-
* @param {string} moduleName
|
|
5
|
+
* @param {string} moduleName The name of the module to check for.
|
|
8
6
|
* @returns {string[]} - The paths to the configuration files.
|
|
9
7
|
*/
|
|
10
8
|
const configurationPaths = moduleName => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ivuorinen/config-checker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Checks the commonly used configuration locations for configuration files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"check-config",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bugs": {
|
|
40
40
|
"url": "https://github.com/ivuorinen/base-configs/issues"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "afea47bfc17ecae32df959b72bf0daaf6c74bf1f"
|
|
43
43
|
}
|