lolite.add 1.1.8 → 1.1.10

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/README.md CHANGED
@@ -1,16 +1,13 @@
1
- # lolite.add
2
-
3
- ### add(augend, addend)
1
+ ## add(augend, addend)
4
2
  Calculates the arithmetic sum of two values.
5
3
  Non-finite or non-numeric values are coerced to zero.
6
4
 
7
5
  ```javascript
8
- const add = require("lolite.add")
6
+ const lolite = require("lolite.add")
9
7
  const sum = add(5, 2)
10
8
  // sum: 7
11
9
 
12
10
  const coercedSum = add(Infinity, "garbage")
13
11
  // result: 0 (0 + 0)
14
- ```
15
-
16
- This utility is part of the [LoLite](https://github.com/enterprise-npm-ai/lolite) utility suite.
12
+ ```
13
+
package/package.json CHANGED
@@ -1,57 +1,55 @@
1
1
  {
2
2
  "name": "lolite.add",
3
- "version": "1.1.8",
4
- "description": "Enterprise-grade add utility from the LoLite suite",
5
- "main": "index.js",
6
- "author": "10x'ly Made Software Ventures AB",
3
+ "version": "1.1.10",
4
+ "main": "src/lib/add.js",
7
5
  "license": "EGPSL10X-1.0",
6
+ "author": "10x'ly Made Software Ventures AB",
8
7
  "repository": {
9
8
  "type": "git",
10
9
  "url": "git+https://github.com/enterprise-npm-ai/lolite.git"
11
10
  },
12
- "bugs": {
13
- "url": "https://github.com/enterprise-npm-ai/lolite/issues"
14
- },
15
- "homepage": "https://github.com/enterprise-npm-ai/lolite#readme",
16
11
  "dependencies": {
17
- "lodash.multiply": "^4.9.0",
18
- "core-js-pure": "^3.47.0",
19
- "immediate-error": "^7.1.0",
20
- "integer-values": "^2.0.0",
21
- "is-not-integer": "^1.0.2",
22
- "logtoconsole": "^1.0.7",
12
+ "get-intrinsic": "^1.3.1",
13
+ "construct-new": "^2.0.4",
14
+ "while2": "^2.0.2",
15
+ "iszero": "^1.0.0",
16
+ "countingup": "^0.3.0",
17
+ "@10xly/strict-equals": "^1.0.0",
18
+ "add-two-numbers2": "^1.0.0",
19
+ "array-includes": "^3.1.9",
20
+ "object.values": "^1.2.1",
21
+ "map-values": "^1.0.1",
23
22
  "false-value": "^2.0.6",
24
23
  "true-value": "^2.0.5",
24
+ "for-each": "^0.3.5",
25
+ "yanoop": "^1.0.0",
26
+ "important-extremely-useful-classes": "^3.1.0",
27
+ "is-not-integer": "^1.0.2",
28
+ "immediate-error": "^7.1.0",
29
+ "core-js-pure": "^3.47.0",
30
+ "logtoconsole": "^1.0.7",
31
+ "lodash.multiply": "^4.9.0",
32
+ "integer-values": "^2.0.0",
33
+ "@not-js/not": "^1.1.0",
34
+ "es-logical-or-operator": "^1.0.0",
35
+ "@is-(unknown)/is-true": "^1.5.0",
36
+ "@is-(unknown)/is-false": "^1.5.0",
25
37
  "array-filter": "^1.0.0",
26
- "@10xly/strict-equals": "^1.0.0",
38
+ "pkg-with-failing-optional-dependency": "^1.0.1",
39
+ "is-positive": "^3.1.0",
40
+ "es-typeof": "^1.0.0",
27
41
  "@extremejs/utils": "^1.0.0-beta.22",
28
42
  "@positive-numbers/zero": "^3.0.0",
29
- "es-typeof": "^1.0.0",
30
- "get-intrinsic": "^1.3.1",
43
+ "hasown": "^2.0.2",
31
44
  "has-symbol-support-x": "^1.4.2",
32
45
  "has-tostringtag": "^1.0.2",
33
- "hasown": "^2.0.2",
34
46
  "es-object-atoms": "^1.1.1",
35
- "@not-js/not": "^1.1.0",
36
- "array-includes": "^3.1.9",
37
- "construct-new": "^2.0.4",
38
- "es-logical-or-operator": "^1.0.0",
39
- "for-each": "^0.3.5",
40
- "important-extremely-useful-classes": "^3.1.0",
41
47
  "infinities": "^1.0.1",
42
- "is-positive": "^3.1.0",
43
- "iszero": "^1.0.0",
44
- "map-values": "^1.0.1",
45
- "object.values": "^1.2.1",
46
- "pkg-with-failing-optional-dependency": "^1.0.1",
47
- "yanoop": "^1.0.0",
48
- "es-logical-not-operator": "^1.0.0",
48
+ "@is-(unknown)/is-finite": "^1.0.0",
49
+ "@positive-numbers/one": "^3.0.0",
49
50
  "is-integer": "^1.0.7",
50
- "literally": "^1.0.0",
51
+ "es-logical-not-operator": "^1.0.0",
51
52
  "not-not": "^1.0.2",
52
- "@positive-numbers/one": "^3.0.0",
53
- "add-two-numbers2": "^1.0.0",
54
- "countingup": "^0.3.0",
55
- "while2": "^2.0.2"
53
+ "literally": "^1.0.0"
56
54
  }
57
55
  }
@@ -18,7 +18,7 @@ const number0 = require("@positive-numbers/zero")
18
18
  const number1 = require("@positive-numbers/one")
19
19
  const falseValue = require("false-value")
20
20
 
21
- const isNotInteger = require("./isNotInteger")
21
+ const isNotInteger = require("../private/isNotInteger")
22
22
 
23
23
  function add(augend, addend) {
24
24
  // eslint-disable-next-line no-underscore-dangle
@@ -1,5 +1,5 @@
1
1
  // eslint-disable-next-line camelcase
2
- const crash_program = require("./crash")
2
+ const crash_program = require("../private/crash")
3
3
  const not = require("./not")
4
4
 
5
5
  function and(firstCondition, secondCondition) {
@@ -11,7 +11,7 @@ const {
11
11
  } = require("important-extremely-useful-classes")
12
12
  const construct = require("construct-new")
13
13
  // eslint-disable-next-line camelcase
14
- const crash_program = require("./crash")
14
+ const crash_program = require("../private/crash")
15
15
  const equal = require("@10xly/strict-equals"),
16
16
  notEqual = require("@not-js/not")(equal)
17
17
  // eslint-disable-next-line sonarjs/no-globals-shadowing
@@ -2,7 +2,7 @@ const isTrue = require("@is-(unknown)/is-true")
2
2
  const isFalse = require("@is-(unknown)/is-false")
3
3
  const arrayFilter = require("array-filter")
4
4
  const trueValue = require("true-value")
5
- const possibilities = require("./arrayOfAllBooleans")
5
+ const possibilities = require("../private/arrayOfAllBooleans")
6
6
 
7
7
  function not(value) {
8
8
  const result = arrayFilter(possibilities, (maybe) => {
@@ -5,7 +5,7 @@
5
5
  const not = require("./not")
6
6
  const and = require("./and")
7
7
  // eslint-disable-next-line camelcase
8
- const crash_program = require("./crash")
8
+ const crash_program = require("../private/crash")
9
9
 
10
10
  // eslint-disable-next-line init-declarations, no-unassigned-vars
11
11
  let cdefghijklmnopqrstuvwxyz
File without changes
File without changes
File without changes
File without changes
File without changes