lolite.or 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.or
2
-
3
- ### or(a,b)
1
+ ## or(a,b)
4
2
  Returns `a` if `a` is truthy, else returns `b`.
5
3
  ```javascript
6
- const or = require("lolite.or")
4
+ const lolite = require("lolite.or")
7
5
 
8
6
  console.log(or(true, false)) // true
9
7
  console.log(or(false, true)) // true
@@ -12,6 +10,5 @@ console.log(or(false, false)) // false
12
10
  console.log(or(0, true)) // true
13
11
  console.log(or(0, "truthy value")) // "truthy value"
14
12
  console.log(or("truthy value", false)) // "truthy value"
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.or",
3
- "version": "1.1.8",
4
- "description": "Enterprise-grade or 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/or.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
- "false-value": "^2.0.6",
18
- "true-value": "^2.0.5",
12
+ "@is-(unknown)/is-true": "^1.5.0",
13
+ "@is-(unknown)/is-false": "^1.5.0",
19
14
  "array-filter": "^1.0.0",
20
- "lodash.multiply": "^4.9.0",
21
- "core-js-pure": "^3.47.0",
22
- "immediate-error": "^7.1.0",
23
- "integer-values": "^2.0.0",
15
+ "true-value": "^2.0.5",
16
+ "false-value": "^2.0.6",
24
17
  "is-not-integer": "^1.0.2",
25
- "logtoconsole": "^1.0.7"
18
+ "immediate-error": "^7.1.0",
19
+ "core-js-pure": "^3.47.0",
20
+ "logtoconsole": "^1.0.7",
21
+ "lodash.multiply": "^4.9.0",
22
+ "integer-values": "^2.0.0"
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) => {
@@ -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