@visulima/fmt 1.1.14 → 1.1.15

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,3 +1,13 @@
1
+ ## @visulima/fmt [1.1.15](https://github.com/visulima/visulima/compare/@visulima/fmt@1.1.14...@visulima/fmt@1.1.15) (2025-03-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * updated @visulima/packem and other dev deps, for better bundling size ([e940581](https://github.com/visulima/visulima/commit/e9405812201594e54dd81d17ddb74177df5f3c24))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * updated dev dependencies ([487a976](https://github.com/visulima/visulima/commit/487a976932dc7c39edfc19ffd3968960ff338066))
10
+
1
11
  ## @visulima/fmt [1.1.14](https://github.com/visulima/visulima/compare/@visulima/fmt@1.1.13...@visulima/fmt@1.1.14) (2025-01-25)
2
12
 
3
13
  ### Bug Fixes
package/README.md CHANGED
@@ -132,6 +132,7 @@ If you would like to help take a look at the [list of issues](https://github.com
132
132
  The visulima fmt is open-sourced software licensed under the [MIT][license-url]
133
133
 
134
134
  [typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
135
+
135
136
  [typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
136
137
  [license-image]: https://img.shields.io/npm/l/@visulima/fmt?color=blueviolet&style=for-the-badge
137
138
  [license-url]: LICENSE.md "license"
package/dist/index.cjs CHANGED
@@ -517,7 +517,7 @@ const format = /* @__PURE__ */ __name((fmt, arguments_ = [], options = {}) => {
517
517
  if (fmt.codePointAt(index) === CHAR_PERCENT && index + 1 < fmt.length) {
518
518
  lastPosition = lastPosition > -1 ? lastPosition : 0;
519
519
  const c = fmt.codePointAt(index + 1);
520
- if (c === undefined) {
520
+ if (c === void 0) {
521
521
  ++a;
522
522
  break;
523
523
  }
@@ -550,7 +550,7 @@ const format = /* @__PURE__ */ __name((fmt, arguments_ = [], options = {}) => {
550
550
  case CHAR_O:
551
551
  case CHAR_o:
552
552
  case CHAR_j: {
553
- if (a >= arguments_.length || arguments_[a] === undefined) {
553
+ if (a >= arguments_.length || arguments_[a] === void 0) {
554
554
  break;
555
555
  }
556
556
  if (lastPosition < index) {
@@ -651,7 +651,7 @@ const build = /* @__PURE__ */ __name((options = {}) => {
651
651
  throw new TypeError(`Formatter for %${key} is not a function`);
652
652
  }
653
653
  const c = key.codePointAt(0);
654
- if (c === undefined) {
654
+ if (c === void 0) {
655
655
  throw new Error(`${key}.codePointAt(0) failed to return a value, please report this issue`);
656
656
  }
657
657
  formatters[c] = formatterFunction;
package/dist/index.mjs CHANGED
@@ -513,7 +513,7 @@ const format = /* @__PURE__ */ __name((fmt, arguments_ = [], options = {}) => {
513
513
  if (fmt.codePointAt(index) === CHAR_PERCENT && index + 1 < fmt.length) {
514
514
  lastPosition = lastPosition > -1 ? lastPosition : 0;
515
515
  const c = fmt.codePointAt(index + 1);
516
- if (c === undefined) {
516
+ if (c === void 0) {
517
517
  ++a;
518
518
  break;
519
519
  }
@@ -546,7 +546,7 @@ const format = /* @__PURE__ */ __name((fmt, arguments_ = [], options = {}) => {
546
546
  case CHAR_O:
547
547
  case CHAR_o:
548
548
  case CHAR_j: {
549
- if (a >= arguments_.length || arguments_[a] === undefined) {
549
+ if (a >= arguments_.length || arguments_[a] === void 0) {
550
550
  break;
551
551
  }
552
552
  if (lastPosition < index) {
@@ -647,7 +647,7 @@ const build = /* @__PURE__ */ __name((options = {}) => {
647
647
  throw new TypeError(`Formatter for %${key} is not a function`);
648
648
  }
649
649
  const c = key.codePointAt(0);
650
- if (c === undefined) {
650
+ if (c === void 0) {
651
651
  throw new Error(`${key}.codePointAt(0) failed to return a value, please report this issue`);
652
652
  }
653
653
  formatters[c] = formatterFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/fmt",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "Util.format-like string formatting utility.",
5
5
  "keywords": [
6
6
  "anolilab",