lolite.ceil 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 +4 -7
- package/package.json +35 -37
- package/{add.js → src/lib/add.js} +1 -1
- package/{and.js → src/lib/and.js} +1 -1
- package/{isNumber.js → src/lib/isNumber.js} +1 -1
- package/{not.js → src/lib/not.js} +1 -1
- package/{or.js → src/lib/or.js} +1 -1
- package/{subtract.js → src/lib/subtract.js} +1 -1
- /package/{index.js → src/lib/ceil.js} +0 -0
- /package/{floor.js → src/lib/floor.js} +0 -0
- /package/{isFinite.js → src/lib/isFinite.js} +0 -0
- /package/{isFunction.js → src/lib/isFunction.js} +0 -0
- /package/{isNull.js → src/lib/isNull.js} +0 -0
- /package/{isObject.js → src/lib/isObject.js} +0 -0
- /package/{arrayOfAllBooleans.js → src/private/arrayOfAllBooleans.js} +0 -0
- /package/{crash.js → src/private/crash.js} +0 -0
- /package/{isNotInteger.js → src/private/isNotInteger.js} +0 -0
- /package/{multiplyFallback.js → src/private/multiplyFallback.js} +0 -0
package/README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
### ceil(value)
|
|
1
|
+
## ceil(value)
|
|
4
2
|
Round a number up to the nearest whole integer.
|
|
5
3
|
Non-finite or non-numeric values are coerced to zero.
|
|
6
4
|
|
|
7
5
|
```javascript
|
|
8
|
-
const
|
|
6
|
+
const lolite = require("lolite.ceil")
|
|
9
7
|
const positiveResult = ceil(2.1)
|
|
10
8
|
// result: 3
|
|
11
9
|
|
|
@@ -14,6 +12,5 @@ const negativeResult = ceil(-2.1)
|
|
|
14
12
|
|
|
15
13
|
const coercedResult = ceil("garbage")
|
|
16
14
|
// result: 0 (0 ceiled)
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
This utility is part of the [LoLite](https://github.com/enterprise-npm-ai/lolite) utility suite.
|
|
15
|
+
```
|
|
16
|
+
|
package/package.json
CHANGED
|
@@ -1,62 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lolite.ceil",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"author": "10x'ly Made Software Ventures AB",
|
|
3
|
+
"version": "1.1.10",
|
|
4
|
+
"main": "src/lib/ceil.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
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
12
|
+
"construct-new": "^2.0.4",
|
|
13
|
+
"while2": "^2.0.2",
|
|
14
|
+
"iszero": "^1.0.0",
|
|
15
|
+
"countingup": "^0.3.0",
|
|
16
|
+
"@10xly/strict-equals": "^1.0.0",
|
|
17
|
+
"subtract": "^0.0.3",
|
|
18
|
+
"@is-(unknown)/is-finite": "^1.0.0",
|
|
19
|
+
"pkg-with-failing-optional-dependency": "^1.0.1",
|
|
20
|
+
"@positive-numbers/zero": "^3.0.0",
|
|
21
|
+
"@positive-numbers/one": "^3.0.0",
|
|
22
|
+
"false-value": "^2.0.6",
|
|
21
23
|
"is-not-integer": "^1.0.2",
|
|
24
|
+
"immediate-error": "^7.1.0",
|
|
25
|
+
"core-js-pure": "^3.47.0",
|
|
22
26
|
"logtoconsole": "^1.0.7",
|
|
27
|
+
"lodash.multiply": "^4.9.0",
|
|
28
|
+
"integer-values": "^2.0.0",
|
|
23
29
|
"@not-js/not": "^1.1.0",
|
|
24
|
-
"es-logical-not-operator": "^1.0.0",
|
|
25
30
|
"is-integer": "^1.0.7",
|
|
26
|
-
"
|
|
31
|
+
"es-logical-not-operator": "^1.0.0",
|
|
27
32
|
"not-not": "^1.0.2",
|
|
28
33
|
"yanoop": "^1.0.0",
|
|
29
|
-
"
|
|
30
|
-
"@positive-numbers/one": "^3.0.0",
|
|
31
|
-
"@positive-numbers/zero": "^3.0.0",
|
|
32
|
-
"construct-new": "^2.0.4",
|
|
33
|
-
"countingup": "^0.3.0",
|
|
34
|
-
"false-value": "^2.0.6",
|
|
35
|
-
"iszero": "^1.0.0",
|
|
36
|
-
"pkg-with-failing-optional-dependency": "^1.0.1",
|
|
37
|
-
"subtract": "^0.0.3",
|
|
38
|
-
"while2": "^2.0.2",
|
|
39
|
-
"es-intrinsic-cache": "^1.0.1",
|
|
34
|
+
"literally": "^1.0.0",
|
|
40
35
|
"is-not-negative": "^1.0.3",
|
|
41
36
|
"string-split": "^0.3.1",
|
|
42
37
|
"to-str": "^1.0.0",
|
|
38
|
+
"es-intrinsic-cache": "^1.0.1",
|
|
39
|
+
"get-intrinsic": "^1.3.1",
|
|
40
|
+
"add-two-numbers2": "^1.0.0",
|
|
41
|
+
"array-includes": "^3.1.9",
|
|
42
|
+
"object.values": "^1.2.1",
|
|
43
|
+
"map-values": "^1.0.1",
|
|
43
44
|
"true-value": "^2.0.5",
|
|
45
|
+
"for-each": "^0.3.5",
|
|
46
|
+
"important-extremely-useful-classes": "^3.1.0",
|
|
47
|
+
"es-logical-or-operator": "^1.0.0",
|
|
48
|
+
"@is-(unknown)/is-true": "^1.5.0",
|
|
49
|
+
"@is-(unknown)/is-false": "^1.5.0",
|
|
44
50
|
"array-filter": "^1.0.0",
|
|
45
|
-
"
|
|
51
|
+
"is-positive": "^3.1.0",
|
|
46
52
|
"es-typeof": "^1.0.0",
|
|
47
|
-
"
|
|
53
|
+
"@extremejs/utils": "^1.0.0-beta.22",
|
|
54
|
+
"hasown": "^2.0.2",
|
|
48
55
|
"has-symbol-support-x": "^1.4.2",
|
|
49
56
|
"has-tostringtag": "^1.0.2",
|
|
50
|
-
"hasown": "^2.0.2",
|
|
51
57
|
"es-object-atoms": "^1.1.1",
|
|
52
|
-
"
|
|
53
|
-
"es-logical-or-operator": "^1.0.0",
|
|
54
|
-
"for-each": "^0.3.5",
|
|
55
|
-
"important-extremely-useful-classes": "^3.1.0",
|
|
56
|
-
"infinities": "^1.0.1",
|
|
57
|
-
"is-positive": "^3.1.0",
|
|
58
|
-
"map-values": "^1.0.1",
|
|
59
|
-
"object.values": "^1.2.1",
|
|
60
|
-
"add-two-numbers2": "^1.0.0"
|
|
58
|
+
"infinities": "^1.0.1"
|
|
61
59
|
}
|
|
62
60
|
}
|
|
@@ -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("
|
|
21
|
+
const isNotInteger = require("../private/isNotInteger")
|
|
22
22
|
|
|
23
23
|
function add(augend, addend) {
|
|
24
24
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -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("
|
|
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("
|
|
5
|
+
const possibilities = require("../private/arrayOfAllBooleans")
|
|
6
6
|
|
|
7
7
|
function not(value) {
|
|
8
8
|
const result = arrayFilter(possibilities, (maybe) => {
|
package/{or.js → src/lib/or.js}
RENAMED
|
@@ -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("
|
|
8
|
+
const crash_program = require("../private/crash")
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line init-declarations, no-unassigned-vars
|
|
11
11
|
let cdefghijklmnopqrstuvwxyz
|
|
@@ -13,7 +13,7 @@ const number1 = require("@positive-numbers/one")
|
|
|
13
13
|
const falseValue = require("false-value"),
|
|
14
14
|
{ Counter } = countingup
|
|
15
15
|
|
|
16
|
-
const isNotInteger = require("
|
|
16
|
+
const isNotInteger = require("../private/isNotInteger")
|
|
17
17
|
|
|
18
18
|
function subtract(minuend, subtrahend) {
|
|
19
19
|
if (equal(isFinite(minuend), falseValue())) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|