@thi.ng/text-canvas 2.4.20 → 2.4.22

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-30T22:27:38Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![text-canvas](https://media.thi.ng/umbrella/banners-20220914/thing-text-canvas.svg?770105b3)
3
+ # ![@thi.ng/text-canvas](https://media.thi.ng/umbrella/banners-20220914/thing-text-canvas.svg?770105b3)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/text-canvas.svg)](https://www.npmjs.com/package/@thi.ng/text-canvas)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/text-canvas.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -35,7 +35,7 @@ This project is part of the
35
35
 
36
36
  ## About
37
37
 
38
- Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML).
38
+ Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)
39
39
 
40
40
  ## Status
41
41
 
@@ -63,11 +63,8 @@ ES module import:
63
63
 
64
64
  For Node.js REPL:
65
65
 
66
- ```text
67
- # with flag only for < v16
68
- node --experimental-repl-await
69
-
70
- > const textCanvas = await import("@thi.ng/text-canvas");
66
+ ```js
67
+ const textCanvas = await import("@thi.ng/text-canvas");
71
68
  ```
72
69
 
73
70
  Package sizes (brotli'd, pre-treeshake): ESM: 5.06 KB
@@ -490,7 +487,7 @@ setInterval(() => {
490
487
 
491
488
  ## Authors
492
489
 
493
- Karsten Schmidt
490
+ - [Karsten Schmidt](https://thi.ng)
494
491
 
495
492
  If this project contributes to an academic publication, please cite it as:
496
493
 
@@ -505,4 +502,4 @@ If this project contributes to an academic publication, please cite it as:
505
502
 
506
503
  ## License
507
504
 
508
- &copy; 2020 - 2022 Karsten Schmidt // Apache Software License 2.0
505
+ &copy; 2020 - 2022 Karsten Schmidt // Apache License 2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/text-canvas",
3
- "version": "2.4.20",
3
+ "version": "2.4.22",
4
4
  "description": "Text based canvas, drawing, tables with arbitrary formatting (incl. ANSI/HTML)",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -21,7 +21,7 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
@@ -34,24 +34,24 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.5.1",
38
- "@thi.ng/arrays": "^2.4.4",
39
- "@thi.ng/checks": "^3.3.4",
40
- "@thi.ng/errors": "^2.2.5",
41
- "@thi.ng/geom-clip-line": "^2.2.0",
42
- "@thi.ng/math": "^5.3.15",
43
- "@thi.ng/strings": "^3.3.19",
44
- "@thi.ng/text-format": "^1.2.11",
45
- "@thi.ng/transducers": "^8.3.25"
37
+ "@thi.ng/api": "^8.6.1",
38
+ "@thi.ng/arrays": "^2.4.6",
39
+ "@thi.ng/checks": "^3.3.5",
40
+ "@thi.ng/errors": "^2.2.6",
41
+ "@thi.ng/geom-clip-line": "^2.2.2",
42
+ "@thi.ng/math": "^5.3.17",
43
+ "@thi.ng/strings": "^3.3.21",
44
+ "@thi.ng/text-format": "^1.2.13",
45
+ "@thi.ng/transducers": "^8.3.27"
46
46
  },
47
47
  "devDependencies": {
48
- "@microsoft/api-extractor": "^7.33.5",
49
- "@thi.ng/testament": "^0.3.6",
48
+ "@microsoft/api-extractor": "^7.33.7",
49
+ "@thi.ng/testament": "^0.3.7",
50
50
  "rimraf": "^3.0.2",
51
51
  "tools": "^0.0.1",
52
52
  "tslib": "^2.4.1",
53
- "typedoc": "^0.23.20",
54
- "typescript": "^4.8.4"
53
+ "typedoc": "^0.23.22",
54
+ "typescript": "^4.9.4"
55
55
  },
56
56
  "keywords": [
57
57
  "4bit",
@@ -139,5 +139,5 @@
139
139
  ],
140
140
  "year": 2020
141
141
  },
142
- "gitHead": "5178ea1d7f4b2de86cf5101bdd73f6567518c0bd\n"
142
+ "gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
143
143
  }
package/table.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Border, TableOpts } from "./api.js";
2
2
  import { Canvas } from "./canvas.js";
3
- declare type RawCell = {
3
+ type RawCell = {
4
4
  body: string;
5
5
  format?: number;
6
6
  height?: number;
7
7
  hard?: boolean;
8
8
  wrap?: boolean;
9
9
  };
10
- declare type Cell = {
10
+ type Cell = {
11
11
  body: string[];
12
12
  format?: number;
13
13
  height?: number;