lolite.first 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,14 +1,11 @@
1
- # lolite.first
2
-
3
- ### first(array)
1
+ ## first(array)
4
2
  alias: head(array)
5
3
 
6
4
  Get the first element of an array. Returns undefined for non-arrays.
7
5
  ```javascript
8
- const first = require("lolite.first")
6
+ const lolite = require("lolite.first")
9
7
  const testArray = [0, 1, 2]
10
8
  console.log(first(testArray)) // 0
11
9
  console.log(lolite.head(testArray)) // 0
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,31 +1,29 @@
1
1
  {
2
2
  "name": "lolite.first",
3
- "version": "1.1.8",
4
- "description": "Enterprise-grade first 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/first.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
- "@10xly/strict-equals": "^1.0.0",
21
- "@identity-js/identity": "^1.2.1",
22
- "literally": "^1.0.0",
23
- "twice-call-wrapper": "^1.2.0",
24
- "yanoop": "^1.0.0",
25
- "@rightpad/concat": "^1.0.0",
26
- "capitalize": "^2.0.4",
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",
27
19
  "functions-have-names": "^1.2.3",
20
+ "capitalize": "^2.0.4",
21
+ "@rightpad/concat": "^1.0.0",
28
22
  "to-str": "^1.0.0",
29
- "undefined-is-a-function": "^0.1.0"
23
+ "twice-call-wrapper": "^1.2.0",
24
+ "yanoop": "^1.0.0",
25
+ "@identity-js/identity": "^1.2.1",
26
+ "literally": "^1.0.0",
27
+ "@10xly/strict-equals": "^1.0.0"
30
28
  }
31
29
  }
@@ -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) => {
@@ -0,0 +1,5 @@
1
+ const [TRUE] = require("../private/arrayOfAllBooleans")
2
+ const constant = require("./constant"),
3
+ stubTrue = constant(TRUE)
4
+
5
+ module.exports = stubTrue
package/stubTrue.js DELETED
@@ -1,5 +0,0 @@
1
- const [TRUE] = require("./arrayOfAllBooleans")
2
- const constant = require("./constant"),
3
- stubTrue = constant(TRUE)
4
-
5
- module.exports = stubTrue
File without changes
File without changes
File without changes
File without changes