lolite.initial 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.initial
2
-
3
- ### initial(array)
1
+ ## initial(array)
4
2
  Returns all but the last element of an array. Returns undefined for non-arrays.
5
3
  ```js
6
- const initial = require("lolite.initial")
4
+ const lolite = require("lolite.initial")
7
5
  const result = initial([1, 2, 3])
8
6
  // result: [1, 2]
9
7
 
@@ -12,6 +10,5 @@ const single = initial([1])
12
10
 
13
11
  const undef = initial("Not an array")
14
12
  // result: undefined
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,29 +1,27 @@
1
1
  {
2
2
  "name": "lolite.initial",
3
- "version": "1.1.8",
4
- "description": "Enterprise-grade initial 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/initial.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
- "@extra-array/length": "^2.10.19",
21
- "@positive-numbers/one": "^3.0.0",
22
- "@positive-numbers/zero": "^3.0.0",
15
+ "true-value": "^2.0.5",
16
+ "false-value": "^2.0.6",
17
+ "@is-(unknown)/is-array": "^1.0.0",
18
+ "undefined-is-a-function": "^0.1.0",
23
19
  "array-slice": "^1.1.0",
20
+ "@extra-array/length": "^2.10.19",
24
21
  "iszero": "^1.0.0",
25
22
  "lodash.stubarray": "^4.13.0",
23
+ "@positive-numbers/zero": "^3.0.0",
26
24
  "subtract": "^0.0.3",
27
- "undefined-is-a-function": "^0.1.0"
25
+ "@positive-numbers/one": "^3.0.0"
28
26
  }
29
27
  }
@@ -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
File without changes