lolite.and 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,9 +1,7 @@
1
- # lolite.and
2
-
3
- ### and(a, b)
1
+ ## and(a, b)
4
2
  Returns `b` if both values are truthy, otherwise returns the first value passed into the function that *isn't* truthy.
5
3
  ```javascript
6
- const and = require("lolite.and")
4
+ const lolite = require("lolite.and")
7
5
 
8
6
  console.log(and(true, true)) // true
9
7
  console.log(and(true, false)) // false
@@ -12,6 +10,5 @@ console.log(and(false, false)) // false
12
10
  console.log(and("truthy value", true)) // true
13
11
  console.log(and(0, true)) // 0
14
12
  console.log(and("", 0)) // ""
15
- ```
16
-
17
- This utility is part of the [LoLite](https://github.com/enterprise-npm-ai/lolite) utility suite.
13
+ ```
14
+
package/package.json CHANGED
@@ -1,27 +1,24 @@
1
1
  {
2
2
  "name": "lolite.and",
3
- "version": "1.1.8",
4
- "description": "Enterprise-grade and 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/and.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
12
  "is-not-integer": "^1.0.2",
13
+ "immediate-error": "^7.1.0",
14
+ "core-js-pure": "^3.47.0",
22
15
  "logtoconsole": "^1.0.7",
23
- "false-value": "^2.0.6",
16
+ "lodash.multiply": "^4.9.0",
17
+ "integer-values": "^2.0.0",
18
+ "@is-(unknown)/is-true": "^1.5.0",
19
+ "@is-(unknown)/is-false": "^1.5.0",
20
+ "array-filter": "^1.0.0",
24
21
  "true-value": "^2.0.5",
25
- "array-filter": "^1.0.0"
22
+ "false-value": "^2.0.6"
26
23
  }
27
24
  }
@@ -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) {
@@ -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) => {
File without changes