lolite.nor 1.1.8 → 1.1.14
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 +13 -14
- package/{and.js → src/lib/and.js} +1 -1
- package/{index.js → src/lib/nor.js} +1 -1
- package/{not.js → src/lib/not.js} +1 -1
- package/{or.js → src/lib/or.js} +1 -1
- package/{crash.js → src/private/crash.js} +4 -3
- /package/{arrayOfAllBooleans.js → src/private/arrayOfAllBooleans.js} +0 -0
- /package/{multiplyFallback.js → src/private/multiplyFallback.js} +0 -0
package/README.md
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
### nor(a, b)
|
|
1
|
+
## nor(a, b)
|
|
4
2
|
Returns the negation of the result of `or(a, b)`, where the `a` and `b` passed into `or` are the same `a` and `b` the user provides for `nor`.
|
|
5
3
|
```javascript
|
|
6
|
-
const
|
|
4
|
+
const lolite = require("lolite.nor")
|
|
7
5
|
|
|
8
6
|
console.log(nor(false, false)) // true
|
|
9
7
|
console.log(nor(true, false)) // false
|
|
10
8
|
console.log(nor(false, true)) // false
|
|
11
9
|
console.log(nor(true, true)) // false
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
This utility is part of the [LoLite](https://github.com/enterprise-npm-ai/lolite) utility suite.
|
|
10
|
+
```
|
|
11
|
+
|
package/package.json
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lolite.nor",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"author": "10x'ly Made Software Ventures AB",
|
|
3
|
+
"version": "1.1.14",
|
|
4
|
+
"main": "src/lib/nor.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
|
-
"
|
|
12
|
+
"@is-(unknown)/is-true": "^1.5.0",
|
|
13
|
+
"@is-(unknown)/is-false": "^1.5.0",
|
|
19
14
|
"array-filter": "^1.0.0",
|
|
15
|
+
"true-value": "^2.0.5",
|
|
16
|
+
"false-value": "^2.0.6",
|
|
17
|
+
"is-not-integer": "^1.0.2",
|
|
18
|
+
"immediate-error": "^11.0.1",
|
|
19
|
+
"setTimeout": "^0.4.9",
|
|
20
|
+
"logtoconsole": "^1.0.7",
|
|
20
21
|
"lodash.multiply": "^4.9.0",
|
|
21
|
-
"core-js-pure": "^3.47.0",
|
|
22
|
-
"immediate-error": "^7.1.0",
|
|
23
22
|
"integer-values": "^2.0.0",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
23
|
+
"fizzbuzz-enterprise": "^1.0.0",
|
|
24
|
+
"@rightpad/concat": "^1.0.0"
|
|
26
25
|
}
|
|
27
26
|
}
|
|
@@ -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
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
const createcrashdump = require("is-not-integer")
|
|
2
2
|
const { ErrorType, immediateError } = require("immediate-error")
|
|
3
|
-
|
|
4
|
-
const setTimeout = require("core-js-pure/actual/set-timeout")
|
|
3
|
+
const setTimeout = require("setTimeout")
|
|
5
4
|
const { log } = require("logtoconsole")
|
|
6
5
|
const multiply = require("./multiplyFallback")
|
|
7
6
|
const { positiveFive, positiveOneHundred, positiveTwo } = require("integer-values")
|
|
7
|
+
const newline = require("fizzbuzz-enterprise/source/main/constants/strings/delimiters/Newline")
|
|
8
|
+
const concat = require("@rightpad/concat")
|
|
8
9
|
|
|
9
10
|
// eslint-disable-next-line camelcase
|
|
10
11
|
function crash_program() {
|
|
11
|
-
log("[lolite] SOMETHING WENT WRONG,
|
|
12
|
+
log(concat("[lolite] SOMETHING WENT WRONG, PROGRAM IS ABOUT TO CRASH, A CRASH DUMP FILE WILL PROBABLY BE GENERATED", newline, "~ PLEASE FILE ISSUE ON GITHUB REPO: ", newline, "https://github.com/enterprise-npm-ai/lolite"))
|
|
12
13
|
setTimeout(() => {
|
|
13
14
|
createcrashdump()
|
|
14
15
|
setTimeout(() => {
|
|
File without changes
|
|
File without changes
|