@thi.ng/strings 3.3.18 → 3.3.20

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-23T22:46:54Z
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
- # ![strings](https://media.thi.ng/umbrella/banners-20220914/thing-strings.svg?41f4988c)
3
+ # ![@thi.ng/strings](https://media.thi.ng/umbrella/banners-20220914/thing-strings.svg?41f4988c)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/strings.svg)](https://www.npmjs.com/package/@thi.ng/strings)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/strings.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.
@@ -136,14 +136,11 @@ ES module import:
136
136
 
137
137
  For Node.js REPL:
138
138
 
139
- ```text
140
- # with flag only for < v16
141
- node --experimental-repl-await
142
-
143
- > const strings = await import("@thi.ng/strings");
139
+ ```js
140
+ const strings = await import("@thi.ng/strings");
144
141
  ```
145
142
 
146
- Package sizes (gzipped, pre-treeshake): ESM: 4.64 KB
143
+ Package sizes (brotli'd, pre-treeshake): ESM: 4.29 KB
147
144
 
148
145
  ## Dependencies
149
146
 
@@ -195,7 +192,7 @@ fmt("eur", 1.2345, 0.25)
195
192
 
196
193
  ## Authors
197
194
 
198
- Karsten Schmidt
195
+ - [Karsten Schmidt](https://thi.ng)
199
196
 
200
197
  If this project contributes to an academic publication, please cite it as:
201
198
 
@@ -210,4 +207,4 @@ If this project contributes to an academic publication, please cite it as:
210
207
 
211
208
  ## License
212
209
 
213
- &copy; 2015 - 2022 Karsten Schmidt // Apache Software License 2.0
210
+ &copy; 2015 - 2022 Karsten Schmidt // Apache License 2.0
package/api.d.ts CHANGED
@@ -4,8 +4,8 @@ import type { Fn, Fn2, FnU } from "@thi.ng/api";
4
4
  * https://en.wikipedia.org/wiki/Byte_order_mark
5
5
  */
6
6
  export declare const BOM = "\uFEFF";
7
- export declare type Stringer<T> = (x: T, ...xs: any[]) => string;
8
- export declare type FnS = FnU<string>;
7
+ export type Stringer<T> = (x: T, ...xs: any[]) => string;
8
+ export type FnS = FnU<string>;
9
9
  export interface WordWrapOpts {
10
10
  /**
11
11
  * Target line width for word wrapping.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/strings",
3
- "version": "3.3.18",
3
+ "version": "3.3.20",
4
4
  "description": "Various string formatting & utility functions",
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,18 +34,18 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.5.0",
38
- "@thi.ng/errors": "^2.2.4",
39
- "@thi.ng/hex": "^2.3.0",
40
- "@thi.ng/memoize": "^3.1.17"
37
+ "@thi.ng/api": "^8.6.0",
38
+ "@thi.ng/errors": "^2.2.6",
39
+ "@thi.ng/hex": "^2.3.2",
40
+ "@thi.ng/memoize": "^3.1.19"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.33.5",
44
- "@thi.ng/testament": "^0.3.5",
43
+ "@microsoft/api-extractor": "^7.33.7",
44
+ "@thi.ng/testament": "^0.3.7",
45
45
  "rimraf": "^3.0.2",
46
46
  "tools": "^0.0.1",
47
- "typedoc": "^0.23.20",
48
- "typescript": "^4.8.4"
47
+ "typedoc": "^0.23.22",
48
+ "typescript": "^4.9.4"
49
49
  },
50
50
  "keywords": [
51
51
  "ansi",
@@ -200,5 +200,5 @@
200
200
  "thi.ng": {
201
201
  "year": 2015
202
202
  },
203
- "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
203
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
204
204
  }
package/units.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Stringer } from "./api.js";
2
- declare type UnitDefs = [number, string, number?][];
2
+ type UnitDefs = [number, string, number?][];
3
3
  export declare const units: (exp: UnitDefs, base: string, prec?: number) => Stringer<number>;
4
4
  export declare const bits: Stringer<number>;
5
5
  export declare const bytes: Stringer<number>;