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.
@@ -51,4 +51,7 @@ module.exports = {
51
51
  functions: {
52
52
  setFunctionName: require("set-function-name"),
53
53
  },
54
+ booleans: {
55
+ booleanPro: require("boolean-pro"),
56
+ },
54
57
  }
@@ -0,0 +1,2 @@
1
+
2
+ Wed Jan 28 2026 10:18:32 GMT-0600 (Central Standard Time) Registered argument: {"argument":4294967295,"name":"function_argument_value01","fnName":"isEqToPositiveValue"}
@@ -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
- path.join(getDirname(), REGISTERED_ARGUMENTS_LOG_FILE_PATH),
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.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",