noop-enterprise 2.0.0 → 2.0.1
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,15 +7,25 @@ const REGISTERED_ARGUMENTS_LOG_FILE_PATH = require("../constants/REGISTERED_ARGU
|
|
|
7
7
|
const POSITIVE_VALUE = require("../constants/POSITIVE_VALUE")
|
|
8
8
|
const getDirname = require("../libraries/libraries").pathUtils.getDirname
|
|
9
9
|
const Date = require("../../lib/libraries/libraries").cachedIntrinsics.Date
|
|
10
|
+
const not = require("../../lib/libraries/libraries").negation.not
|
|
11
|
+
const trueValue = require("../../lib/libraries/libraries").booleans.booleanPro.getTrue
|
|
10
12
|
|
|
11
13
|
module.exports = function registerArgument(function_argument_value01) {
|
|
14
|
+
const fullPath = path.join(getDirname(), REGISTERED_ARGUMENTS_LOG_FILE_PATH)
|
|
15
|
+
const directory = path.dirname(fullPath)
|
|
16
|
+
|
|
17
|
+
// ensure the directory structure exists before appending
|
|
18
|
+
if (not(fs.existsSync(directory))) {
|
|
19
|
+
fs.mkdirSync(directory, { recursive: trueValue() })
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
// we cannot register the argument function_argument_value01 because this is the registerArgument function
|
|
13
23
|
fs.appendFileSync(
|
|
14
|
-
|
|
24
|
+
fullPath,
|
|
15
25
|
`${NEWLINE}${construct(Date)} Registered argument: ${stringify(
|
|
16
26
|
function_argument_value01
|
|
17
27
|
)}${NEWLINE}`
|
|
18
28
|
)
|
|
19
29
|
|
|
20
30
|
return POSITIVE_VALUE
|
|
21
|
-
}
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "noop-enterprise",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "noopxrtxthtkvjhvtyvghggfgfhgfhfghfhgfhgfgfujuftj",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"noop",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@positive-numbers/twenty-one": "^3.0.0",
|
|
34
34
|
"@rightpad/concat": "^1.0.0",
|
|
35
35
|
"@rightpad/convert2string": "^1.0.0",
|
|
36
|
+
"boolean-pro": "1.0.0",
|
|
36
37
|
"construct-new-second": "^1.0.0",
|
|
37
38
|
"empty-string": "^1.1.1",
|
|
38
39
|
"es-logical-not-operator": "^1.0.0",
|