lolite.clamp 1.1.6 → 1.1.8

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +13 -4
package/README.md CHANGED
@@ -6,7 +6,7 @@ Non-finite or non-numeric values are coerced to zero.
6
6
 
7
7
  Note: If lower bound exceeds upper bound after coercion, the function prioritizes the lower bound.
8
8
  ```javascript
9
- const lolite = require("lolite")
9
+ const clamp = require("lolite.clamp")
10
10
  const result = clamp(5, 1, 10)
11
11
  // result: 5
12
12
 
@@ -18,4 +18,6 @@ const raised = clamp(-5, 1, 10)
18
18
 
19
19
  const coercedClamp = clamp(Infinity, "garbage", NaN)
20
20
  // result: 0 (0 clamped between 0 and 0)
21
- ```
21
+ ```
22
+
23
+ This utility is part of the [LoLite](https://github.com/enterprise-npm-ai/lolite) utility suite.
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "lolite.clamp",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
+ "description": "Enterprise-grade clamp utility from the LoLite suite",
4
5
  "main": "index.js",
6
+ "author": "10x'ly Made Software Ventures AB",
7
+ "license": "EGPSL10X-1.0",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/enterprise-npm-ai/lolite.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/enterprise-npm-ai/lolite/issues"
14
+ },
15
+ "homepage": "https://github.com/enterprise-npm-ai/lolite#readme",
5
16
  "dependencies": {
6
17
  "@10xly/strict-equals": "^1.0.0",
7
- "@is-(unknown)/is-finite": "^1.0.0",
8
18
  "@positive-numbers/one": "^3.0.0",
9
19
  "@positive-numbers/zero": "^3.0.0",
10
20
  "bogosort": "^1.0.1",
@@ -12,13 +22,12 @@
12
22
  "lodash.stubarray": "^4.13.0",
13
23
  "lodash.toarray": "^4.4.0",
14
24
  "lodash.multiply": "^4.9.0",
25
+ "core-js-pure": "^3.47.0",
15
26
  "immediate-error": "^7.1.0",
16
27
  "integer-values": "^2.0.0",
17
28
  "is-not-integer": "^1.0.2",
18
29
  "logtoconsole": "^1.0.7",
19
30
  "true-value": "^2.0.5",
20
- "@is-(unknown)/is-false": "^1.5.0",
21
- "@is-(unknown)/is-true": "^1.5.0",
22
31
  "array-filter": "^1.0.0",
23
32
  "@extremejs/utils": "^1.0.0-beta.22",
24
33
  "es-typeof": "^1.0.0",