lolite.flatten 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.flatten
2
-
3
- ### flatten(array)
1
+ ## flatten(array)
4
2
  Flattens arrays. Returns undefined for non-arrays.
5
3
 
6
4
  ```javascript
7
- const flatten = require("lolite.flatten")
5
+ const lolite = require("lolite.flatten")
8
6
  const flat = flatten([1, [2, [3]]])
9
7
  // flat: [1, 2, 3]
10
8
  const undef = flatten("Not an array")
11
9
  // undef: undefined
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.flatten",
3
- "version": "1.1.8",
4
- "description": "Enterprise-grade flatten 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/flatten.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",
19
- "array-filter": "^1.0.0",
20
- "@10xly/strict-equals": "^1.0.0",
21
- "@not-js/not": "^1.1.0",
22
- "@positive-numbers/one": "^3.0.0",
12
+ "uncurried-intrinsics": "^1.0.2",
13
+ "lodash.stubarray": "^4.13.0",
23
14
  "@positive-numbers/zero": "^3.0.0",
15
+ "@positive-numbers/one": "^3.0.0",
16
+ "undefined-is-a-function": "^0.1.0",
17
+ "while2": "^2.0.2",
24
18
  "construct-new": "^2.0.4",
25
- "lodash.stubarray": "^4.13.0",
19
+ "@10xly/strict-equals": "^1.0.0",
20
+ "@not-js/not": "^1.1.0",
26
21
  "subtract": "^0.0.3",
27
- "uncurried-intrinsics": "^1.0.2",
28
- "undefined-is-a-function": "^0.1.0",
29
- "while2": "^2.0.2"
22
+ "@is-(unknown)/is-true": "^1.5.0",
23
+ "@is-(unknown)/is-false": "^1.5.0",
24
+ "array-filter": "^1.0.0",
25
+ "true-value": "^2.0.5",
26
+ "false-value": "^2.0.6",
27
+ "@is-(unknown)/is-array": "^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) => {
File without changes
File without changes