@thi.ng/strings 3.3.3 → 3.3.6

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-04-07T14:17:30Z
3
+ - **Last updated**: 2022-07-19T15:36:12Z
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
@@ -143,7 +143,7 @@ node --experimental-repl-await
143
143
  > const strings = await import("@thi.ng/strings");
144
144
  ```
145
145
 
146
- Package sizes (gzipped, pre-treeshake): ESM: 4.63 KB
146
+ Package sizes (gzipped, pre-treeshake): ESM: 4.64 KB
147
147
 
148
148
  ## Dependencies
149
149
 
package/currency.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Stringer } from "./api.js";
2
- export declare const currency: (sym: string, pre?: boolean | undefined, prec?: number | undefined) => Stringer<number>;
2
+ export declare const currency: (sym: string, pre?: boolean, prec?: number) => Stringer<number>;
3
3
  export declare const chf: Stringer<number>;
4
4
  export declare const eur: Stringer<number>;
5
5
  export declare const gbp: Stringer<number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/strings",
3
- "version": "3.3.3",
3
+ "version": "3.3.6",
4
4
  "description": "Various string formatting & utility functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,18 +34,18 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.5",
38
- "@thi.ng/errors": "^2.1.5",
39
- "@thi.ng/hex": "^2.1.5",
40
- "@thi.ng/memoize": "^3.1.5"
37
+ "@thi.ng/api": "^8.3.8",
38
+ "@thi.ng/errors": "^2.1.8",
39
+ "@thi.ng/hex": "^2.1.8",
40
+ "@thi.ng/memoize": "^3.1.8"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.19.4",
44
- "@thi.ng/testament": "^0.2.5",
43
+ "@microsoft/api-extractor": "^7.25.0",
44
+ "@thi.ng/testament": "^0.2.9",
45
45
  "rimraf": "^3.0.2",
46
46
  "tools": "^0.0.1",
47
- "typedoc": "^0.22.13",
48
- "typescript": "^4.6.2"
47
+ "typedoc": "^0.22.17",
48
+ "typescript": "^4.7.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": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
203
+ "gitHead": "108a6357b77d457912d30681d7cc5603ae995209\n"
204
204
  }
package/pad-left.d.ts CHANGED
@@ -6,13 +6,13 @@ export declare const padLeft: (n: number, ch?: string | number) => (x: any, leng
6
6
  /**
7
7
  * Zero-padded 2 digit formatter.
8
8
  */
9
- export declare const Z2: (x: any, length?: number | undefined) => string;
9
+ export declare const Z2: (x: any, length?: number) => string;
10
10
  /**
11
11
  * Zero-padded 3 digit formatter.
12
12
  */
13
- export declare const Z3: (x: any, length?: number | undefined) => string;
13
+ export declare const Z3: (x: any, length?: number) => string;
14
14
  /**
15
15
  * Zero-padded 4 digit formatter.
16
16
  */
17
- export declare const Z4: (x: any, length?: number | undefined) => string;
17
+ export declare const Z4: (x: any, length?: number) => string;
18
18
  //# sourceMappingURL=pad-left.d.ts.map
package/stringify.d.ts CHANGED
@@ -8,5 +8,5 @@ import type { Stringer } from "./api.js";
8
8
  * @param all -
9
9
  * @param indent -
10
10
  */
11
- export declare const stringify: (all?: boolean, indent?: number | undefined) => Stringer<any>;
11
+ export declare const stringify: (all?: boolean, indent?: number) => Stringer<any>;
12
12
  //# sourceMappingURL=stringify.d.ts.map
package/truncate.d.ts CHANGED
@@ -3,5 +3,5 @@ export declare const truncate: (n: number, suffix?: string) => Stringer<string>;
3
3
  /**
4
4
  * Alias for {@link truncate}
5
5
  */
6
- export declare const truncateRight: (n: number, suffix?: string | undefined) => Stringer<string>;
6
+ export declare const truncateRight: (n: number, suffix?: string) => Stringer<string>;
7
7
  //# sourceMappingURL=truncate.d.ts.map