lolite.multiply 1.1.7 → 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 +20 -23
- package/{abs.js → src/lib/abs.js} +1 -1
- package/{index.js → src/lib/multiply.js} +2 -2
- /package/{crash.js → src/private/crash.js} +0 -0
- /package/{invertFallback.js → src/private/invertFallback.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,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
### multiply(multiplier, multiplicand)
|
|
1
|
+
## multiply(multiplier, multiplicand)
|
|
4
2
|
Calculates the product of two values.
|
|
5
3
|
Non-finite or non-numeric values are coerced to zero.
|
|
6
4
|
|
|
7
5
|
```javascript
|
|
8
|
-
const
|
|
6
|
+
const lolite = require("lolite.multiply")
|
|
9
7
|
const product = multiply(6, 7)
|
|
10
8
|
// product: 42
|
|
11
9
|
|
|
12
10
|
const coercedProduct = multiply(NaN, "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,43 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lolite.multiply",
|
|
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/multiply.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": {
|
|
12
|
+
"add-two-numbers2": "^1.0.0",
|
|
13
|
+
"countingup-legacy-first-version": "npm:countingup@^0.0.1",
|
|
17
14
|
"is-negative": "^2.1.0",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
15
|
+
"repeating": "^3.0.0",
|
|
16
|
+
"for-each": "^0.3.5",
|
|
17
|
+
"string-split": "^0.3.1",
|
|
18
|
+
"space-string": "^1.0.0",
|
|
19
|
+
"empty-string": "^1.1.1",
|
|
20
20
|
"@positive-numbers/zero": "^3.0.0",
|
|
21
|
+
"@positive-numbers/one": "^3.0.0",
|
|
21
22
|
"false-value": "^2.0.6",
|
|
23
|
+
"@10xly/strict-equals": "^1.0.0",
|
|
24
|
+
"@is-(unknown)/is-finite": "^1.0.0",
|
|
22
25
|
"pkg-with-failing-optional-dependency": "^1.0.1",
|
|
23
|
-
"
|
|
24
|
-
"immediate-error": "^7.1.0",
|
|
25
|
-
"integer-values": "^2.0.0",
|
|
26
|
+
"es-logical-or-operator": "^1.0.0",
|
|
26
27
|
"is-not-integer": "^1.0.2",
|
|
28
|
+
"immediate-error": "^7.1.0",
|
|
29
|
+
"core-js-pure": "^3.47.0",
|
|
27
30
|
"logtoconsole": "^1.0.7",
|
|
31
|
+
"lodash.multiply": "^4.9.0",
|
|
32
|
+
"integer-values": "^2.0.0",
|
|
28
33
|
"@not-js/not": "^1.1.0",
|
|
29
|
-
"es-logical-not-operator": "^1.0.0",
|
|
30
34
|
"is-integer": "^1.0.7",
|
|
31
|
-
"
|
|
35
|
+
"es-logical-not-operator": "^1.0.0",
|
|
32
36
|
"not-not": "^1.0.2",
|
|
33
37
|
"yanoop": "^1.0.0",
|
|
34
|
-
"
|
|
35
|
-
"add-two-numbers2": "^1.0.0",
|
|
36
|
-
"empty-string": "^1.1.1",
|
|
37
|
-
"es-logical-or-operator": "^1.0.0",
|
|
38
|
-
"for-each": "^0.3.5",
|
|
39
|
-
"repeating": "^3.0.0",
|
|
40
|
-
"space-string": "^1.0.0",
|
|
41
|
-
"string-split": "^0.3.1"
|
|
38
|
+
"literally": "^1.0.0"
|
|
42
39
|
}
|
|
43
40
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const isNegative = require("pkg-with-failing-optional-dependency")
|
|
2
|
-
const invert = require("
|
|
2
|
+
const invert = require("../private/invertFallback")
|
|
3
3
|
const equal = require("@10xly/strict-equals")
|
|
4
4
|
// eslint-disable-next-line sonarjs/no-globals-shadowing
|
|
5
5
|
const isFinite = require("@is-(unknown)/is-finite")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const add = require("add-two-numbers2")
|
|
2
|
-
const invert = require("
|
|
2
|
+
const invert = require("../private/invertFallback")
|
|
3
3
|
const repeating = require("repeating")
|
|
4
4
|
const forEach = require("for-each")
|
|
5
5
|
const split = require("string-split")
|
|
@@ -14,7 +14,7 @@ const isFinite = require("@is-(unknown)/is-finite")
|
|
|
14
14
|
const isNegative = require("pkg-with-failing-optional-dependency")
|
|
15
15
|
const or = require("es-logical-or-operator")
|
|
16
16
|
const abs = require("./abs")
|
|
17
|
-
const isNotInteger = require("
|
|
17
|
+
const isNotInteger = require("../private/isNotInteger")
|
|
18
18
|
|
|
19
19
|
// eslint-disable-next-line max-statements
|
|
20
20
|
function multiply(multiplier, multiplicand) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|