lolite.identity 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.identity
2
-
3
- ### identity(value)
1
+ ## identity(value)
4
2
  Returns the value passed into the identity function.
5
3
  ```javascript
6
- const identity = require("lolite.identity")
4
+ const lolite = require("lolite.identity")
7
5
  const assert = require("node:assert")
8
6
 
9
7
  console.log(identity(2)) // 2
@@ -11,6 +9,5 @@ console.log(identity()) // undefined
11
9
  console.log(identity(true)) // true
12
10
  console.log(identity(null)) // null
13
11
  console.log(identity("enterprise")) // "enterprise"
14
- ```
15
-
16
- This utility is part of the [LoLite](https://github.com/enterprise-npm-ai/lolite) utility suite.
12
+ ```
13
+
package/package.json CHANGED
@@ -1,26 +1,23 @@
1
1
  {
2
2
  "name": "lolite.identity",
3
- "version": "1.1.8",
4
- "description": "Enterprise-grade identity 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/identity.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",
12
+ "twice-call-wrapper": "^1.2.0",
13
+ "yanoop": "^1.0.0",
21
14
  "@identity-js/identity": "^1.2.1",
22
15
  "literally": "^1.0.0",
23
- "twice-call-wrapper": "^1.2.0",
24
- "yanoop": "^1.0.0"
16
+ "@is-(unknown)/is-true": "^1.5.0",
17
+ "@is-(unknown)/is-false": "^1.5.0",
18
+ "array-filter": "^1.0.0",
19
+ "true-value": "^2.0.5",
20
+ "false-value": "^2.0.6",
21
+ "@10xly/strict-equals": "^1.0.0"
25
22
  }
26
23
  }
@@ -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