utilitas 1994.0.13 → 1995.0.2

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/lib/manifest.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1994.0.13",
4
+ "version": "1995.0.2",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
8
8
  "type": "module",
9
9
  "engines": {
10
- "node": ">=19.x"
10
+ "node": ">=20.x"
11
11
  },
12
12
  "author": "Leask Wong <i@leaskh.com>",
13
13
  "license": "MIT",
@@ -25,7 +25,7 @@ const manifest = {
25
25
  "@google-cloud/text-to-speech": "^4.2.2",
26
26
  "@google-cloud/vision": "^3.1.3",
27
27
  "@mozilla/readability": "^0.4.4",
28
- "@sentry/node": "^7.48.0",
28
+ "@sentry/node": "^7.49.0",
29
29
  "@waylaidwanderer/chatgpt-api": "^1.35.0",
30
30
  "acme-client": "^5.0.0",
31
31
  "browserify-fs": "^1.0.0",
@@ -45,7 +45,7 @@ const manifest = {
45
45
  "telesignsdk": "^2.2.3",
46
46
  "twilio": "^4.10.0",
47
47
  "url": "github:Leask/node-url",
48
- "webpack-cli": "^5.0.1",
48
+ "webpack-cli": "^5.0.2",
49
49
  "youtube-transcript": "^1.0.5"
50
50
  }
51
51
  };
package/lib/utilitas.mjs CHANGED
@@ -530,16 +530,14 @@ const renderText = (text, options) => {
530
530
  };
531
531
 
532
532
  const renderBox = (content, options) => {
533
- const [minWidth, defWidth, maxWidth, output, style] = [
534
- 10, 80, process?.stdout?.columns || 1024, [],
535
- boxes[options?.style || 'round']
536
- ];
533
+ const [minWidth, defWidth, maxWidth, output, style]
534
+ = [10, 80, 1024 * 2, [], boxes[options?.style || 'round']];
537
535
  let [width, title] = [~~options?.width, options?.title || ''];
538
536
  assert(content.length, 'Content must not be empty.');
539
537
  assert(style, `Style must be one of ${Object.keys(boxes).join(', ')}.`);
540
538
  assert(
541
539
  !width || (width >= minWidth && width <= maxWidth),
542
- `Width must be between $ and ${maxWidth}.`
540
+ `Width must be between ${minWidth} and ${maxWidth}.`
543
541
  );
544
542
  const innWidth = (width || (width = defWidth)) - 2;
545
543
  const cntWidth = innWidth - 2;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1994.0.13",
4
+ "version": "1995.0.2",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
8
8
  "type": "module",
9
9
  "engines": {
10
- "node": ">=19.x"
10
+ "node": ">=20.x"
11
11
  },
12
12
  "scripts": {
13
13
  "start": "node index.mjs",
@@ -36,7 +36,7 @@
36
36
  "@google-cloud/text-to-speech": "^4.2.2",
37
37
  "@google-cloud/vision": "^3.1.3",
38
38
  "@mozilla/readability": "^0.4.4",
39
- "@sentry/node": "^7.48.0",
39
+ "@sentry/node": "^7.49.0",
40
40
  "@waylaidwanderer/chatgpt-api": "^1.35.0",
41
41
  "acme-client": "^5.0.0",
42
42
  "browserify-fs": "^1.0.0",
@@ -56,7 +56,7 @@
56
56
  "telesignsdk": "^2.2.3",
57
57
  "twilio": "^4.10.0",
58
58
  "url": "github:Leask/node-url",
59
- "webpack-cli": "^5.0.1",
59
+ "webpack-cli": "^5.0.2",
60
60
  "youtube-transcript": "^1.0.5"
61
61
  }
62
62
  }